Crash on power on with no error raised

When I load the firmware, the firmware starts running fine.

but once I power off then on tue device the firmware crashes at a certain point while in the main loop with no error raised, just stops running the loop and stops receiving any events

the device is turned on by pressing a button, the button closes a line which enables the external voltage regulator and hence the SoC is powered and starts. Once starting a pin used to enable the external voltage regulator is also set high to ensure the SoC remains powered even when the button is released

the powering seems to work fine as th SoC is powered after button is released, but the system crashes shortly after with no error raised

I simulated that ON OFF behavior using only the bsp example. it run well there, but on my firmware it crashes 

is there a way I can at least get some error exception raised to know exactly what triggers the crash

thanks

  • If the SoC resets then you can probably check the reset reason register.

    If the SoC doesn't reset, then you should do the debugging and see where it gets halts.

    What are specs of the external voltage regulator you are using? Are there any ripples on the voltage line?

    Power supply supervisor might kick in if there are issues coming from the external voltage regulator.

    Regards,

    Naeem

Related