2026-03-15 8:19 PM - edited 2026-03-16 11:46 PM
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?
Solved! Go to Solution.
2026-04-01 11:20 PM
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.