2018-01-02 01:59 PM
Hi there,
Setup:
STM32F334R8 on a NUCLEO-F334R8 on a custom PCB with power supply, CAN tranceiver, I2C slaves and RS232 Tranceiver.
uVision5 Toolchain and STM32CubeMX
Problem: I want to read out the internal temperature of the MCU, but the reading of ADC1->DR is always 0x0FFF
Stuff I tried: Every piece of code from the internet ..., the project that comes with the Cube FW F3, reading out Vref and Vbat. But the value always stays the same.
Now the weird part: When I remove the Nucleo board from my PCB (more specifically PA3 - configured as USART_RX), select U5V on JB5 (power from USB not external), the value suddenly drops and keeps changing within the LSB. After converting the value to celsius, the temperature is legit. I started a new project with nothing but ADC1 (no USART), the behavior is still the same.
Question: Is it normal that internal measurements and USART on PA3 on a NUCLEO-F334R8 won't work together? According to the schematics nothing should interfere with Vref or Avdd (looking at you, SB61).
Any Tips?
#usart-rx #internal-temperature-sensor #nucleo-f334r82018-01-10 09:42 AM
What voltage are you driving the USART RX pin at?
2018-01-10 12:42 PM
I had to use the ADC - DMA solution to make my boards stable.
I am getting all the A/D values 18 I think..
2018-01-10 01:35 PM
Thanks for your reply!
I am using the MAX3232 with a 5.0V supply.