2025-05-19 5:18 AM
Hi, we are evaluating STM32L4A6VGT6TR, with our new product prototype. We are only suppling one 3.3V to the MCU as it requires. We have already included discharge circuit, and we can see this 3.3V rail will be completely discharged within 0.288s. However, the MCU cannot every time come up again (loading firmware), if we power cycle within 3 seconds. If we wait for 10 seconds before we turn on the power again, it seems to work OK. We are not sure if we are missing any special requirement regarding power cycle, power sequence about power supply, or critical pins, such as reset. Do you have any inspiration what that could be? Thanks
2025-05-19 5:32 AM
> However, the MCU cannot every time come up again (loading firmware), ...
How do you determine that ?
Make sure you connect all BOOT pins to Vcc or GND with pull-up / pull-down resistors to insure a user firmware startup. Else you might inadvertently end up in the ROM bootloader.
2025-05-19 5:52 AM
MCU does not function as it is supposed to. Fan, LED, etc. don't come up at all.
Is it only one BOOT pin with this package? We do connect it to gnd with pull-down res.
2025-05-19 6:38 AM
Have you instrumented to see what's happening in this "not working" state?
Can you connect the debugger:
2025-05-19 6:42 AM
MCU probably starts, with BOOT0 pulled low should go to FLASH code, get some LED/GPIO action early in Reset_Handler.
Would suggest instrumenting while(1) loops like Error_Handler(), HardFault_Handler() and perhaps Default_Handler(), in case things get stuck there, or clocks/PLL don't start as anticipated.
Run from default HSI/MSI without PLL or HSE, see if behaviour changes.
2025-05-19 7:05 AM
Hi,
>we can see this 3.3V rail will be completely discharged within 0.288s
Is VDD really down to ~ 0 V at the cpu ?
Just try : connect a 470 Ohm from VDD to GND , to full discharge it on power off.
2025-05-19 7:09 AM
> Is it only one BOOT pin with this package? We do connect it to gnd with pull-down res.
The more relevant information you give upfront, the more precise the answers are.
Such restart issues are almost impossible to debug directly.
As per recommendations of Tesla deLorean, instrument the startup code, including the clock setup.
Work you way back if you don't see output on the scope.