cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L562QEI6 does not start up at power on

jeroen
Associate III

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

13 REPLIES 13

I can even tie it directly to GND without any change. In fact, I already monitored this pin on the scope at the same time as Vdd and nRST and it is always at e few mV max.

then only debuger to problem can help seems as hardfault or other while 1 error

Solved this one. I had inadvertedly activated the Security Trustzone and ended up in a state that seems to disable programming via the IDE but not via the cube Programmer..

jeroen
Associate III

Problem solved. The source of the problem was the (windowed) watchdog. By disabling it, the firmware executes as expected.

I still have to find out what happens exactly since I need the watchdog to function. But that's another issue...