2018-06-22 11:49 PM
Hello
I am using stm32l152rc controller and I am trying to load a code using a dfusedemo application and during that time my flash is on RDP level 1.
With help of msp my code jump to location 0x1FF00000 which is location of system boot loader.
So, My question is how can I load a new code?
here I am attached some screen short which can help to identify my problem.
thanks,
Swapnil Champaneria
#system-bootloader #st-dfuse #rdp-level-1Solved! Go to Solution.
2018-07-05 08:13 AM
You don't want to use the BOOTx pins, or your design doesn't permit you too?
The RDP level effects the behaviour of the boot loader by locking it down. If you want different behaviour you are going to need to implement your own loader/DFU functionality, and perhaps erase/write individual sectors rather than bulk-erase.
Also as noted earlier you are setting the MSP incorrectly.
2018-06-24 10:56 AM
You don't want to set the stack pointer to an address in ROM, the stack needs to be in RAM, per the *content* of the vector.
You might have to provide your own access methods for a part in RDP 1 as the system loader locks down certain functionality.
2018-07-05 06:31 AM
sir,
Actually I'm using internal boot loader (system boot loader) with help of software because i don't want to use Boot 0 and Boot 1 pin to access that. Without RDP level 1 it's worked fine but when I apply RDP level 1 it won't work properly.
when I'm trying to decrees the RDP level 1 to 0 my flash was erased so I can't access boot loader (system boot loader) with help of software.
thanks regards
2018-07-05 08:13 AM
You don't want to use the BOOTx pins, or your design doesn't permit you too?
The RDP level effects the behaviour of the boot loader by locking it down. If you want different behaviour you are going to need to implement your own loader/DFU functionality, and perhaps erase/write individual sectors rather than bulk-erase.
Also as noted earlier you are setting the MSP incorrectly.
2018-07-09 12:34 AM
You don't want to use the BOOTx pins, or your design doesn't permit you too?
sir,
actually i don't won't to use BOOTx pins, and thanks to notify regarding MSP, without it my code work same, just in my case i have to jump on system boot loader location.