cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L082, address in bootloader to skip bank2/bank1 dual boot checks

NSury.14
Associate

Module: STM32L0 Discovery kit LoRa, Sigfox, low-power wireless , B-L072Z-LRWAN1   

We tried to start the DFU mode on the STM32L082 in this module by software. Using the BOOT0 pin everything runs fine, and the device boots up in DFU mode and we can program it. But if we jump into the bootloader code from Software using the address stored in 0x1ff00004, then the system bootloader always runs in dual bank bootloader mode, just as the BFB2 option bit was set, but it isn’t. So we would have to delete the stack pointer in our application code to create an invalid stack pointer and thus properly start the bootloader, if we do that, then the DFU device comes up. But The bootloader activation gets very difficult that way because we’d have to swap banks to change the Flash content and so forth. So the question is: Is there an address in the bootloader that we can jump from our application code so that the bank2/bank1 dual boot checks (check if the stack pointer is valid) is NOT done and the DFU is directly started?

0 REPLIES 0