2020-04-22 07:11 AM
Hi,
my STM32L496 Controller ist booting only into the internal bootloader. BOOT0 Pin is low, a valid program is on 0x08000000 and if I set the PC and SR with the values I found on 0x0800.0000 and 0x080.00004 the controller does it's job. What could be wrong?
Where can I find a description what does the controller do while booting?
creetings and stay healthy
Josef
2020-04-22 07:39 AM
To run the internal bootloader, BOOT0 needs to be high at reset, not low.
2020-04-22 07:50 AM
2020-04-22 07:54 AM
> my STM32L496 Controller ist booting only
*shrug*
"ist" is quite close to both is and isn't. Suppose I guessed the wrong one.
2020-04-23 03:06 AM
Does cycling the power make a difference? If I've downloaded a program to my STM32L4 chips, and used a switch to change the state of BOOT0, the program doesn't start after a reset. I have to cycle the power to get the program to run (refer to https://community.st.com/s/question/0D50X0000AwYH76SQG/nucleo64-nrst-not-enough-for-entering-bootloader-only-power-cycle). Not sure why it does it, and it is bloody annoying, but I've learnt to live with it....
2020-04-23 03:59 AM
Hi,
that's it. But I don't understand it. I can repeat the behavior when I clear the flash and start the controller after cycling the power.
Do you have any idea why this is so?
best regards
Josef
2020-04-23 06:10 AM
Check the option bytes. In particular, the nBOOT0 and nBOOT1 bits. You may have overridden the default behavior and told it to boot into system memory regardless of the state of BOOT0.
2020-04-30 02:09 AM
Hi TDK,
look at the answer from gregstm and my response!
2020-10-05 01:30 AM
Hi,
After 5 month I have the same problem with a new design.
A resolution for the problem is to change the option bytes and after that to set it to their default values. The controller then is working well. Is It possible that there is an error in the chip?
best regards
Josef
2020-10-05 06:32 AM
It's unlikely the chip has a fatal flaw such as ignoring the value on the BOOT0 pin during startup. Probably something else going on.