STM32L562QEI6 does not start up at power on
- January 27, 2022
- 5 replies
- 3454 views
Hi All,
I have a start up problem with the STM32L562QEI6.
While using the STM32CubeIDE debugger, the code runs fine but without the ST-LINK/V2 connected, the board remains "dead" after applying the power supply.
When I manually pull the nRST pin down before applying 3V3 and then release it, the board remains "dead". If I then pull it down a second time and release it, the board starts as expected.
So it looks like the first reset puts it in some (boot?) mode in which my code is not executed.
Some facts:
- nRST is connected to a 100nF capacitor (and the STLINK debug connector)
- nBoot0 is pulled down with a 2K resistor
- All power pins (VDD, VDDIO, VDDA, VDDUSB, VBAT) are connected to the same 3.3V supply
- The power supply ramps up with a straight line to 3.3V in 0.8 ms
- The nRST pin ramps up in accordance with the connected capacitor (RC curve) in about 10ms
- (see attached screen dump, yellow = power supply, purple = nRST)
- I have tried different settings for BOR, from 1.7V to 2.5V without no change
The current board is a migration from a previous version which is exactly the same except for the processor which used to be an STM32L433CCU6. All equivalent pins are connected in the same way.
With the 'L433' variant, we never did have any startup problem.
The only two differences are :
- STM32L562QEI6 instead of STM32L433CCU6
- Development with STM32CubeIDE instead of IAR EWARM
Both variants use the STM32 HAL drivers.
As you may understand, I'm out of ideas. It is probably a minor detail that I'm missing.....
Any help is highly appreciated !
Jeroen