cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585OIY6QTR ADC reading garbage values

Francis_Fu
Associate II

I am planning to do an aging test which need capture the voltage of a net, but i found STM32U585OIY6QTR report a value about 40 while the actual voltage of ADC channel is close to VREF.

Then i write a simple ADC demo to verify ADC configuration, and run my code on B-U585I-IOT02A board(based on STM32U585AII6Q), it report a correct value, but the same code report a wrong value on my board.I use ADC1  CHANNEL2(GPIOC GPIO_PIN_1) on both board.

The only difference between B-U585I-IOT02A and my hardware is the different VREF i think(B-U585I-IOT02A use 3.3V, but my board use 2.5V).

Is there any difference on ADC usage between STM32U585AII6Q and STM32U585OIY6QTR?

You can find my ioc file and code in attachment, can anyone help me check my configuration?

Image20260316112201.pngImage20260316112207.png

 

20 REPLIES 20
jiangfan
ST Employee

OK, in the end it turns out that the issue was due to TrustZone security (TZEN = 1). The issue description is in line with behavior of TrustZone not properly treated.