Problem with self programming after enabling read out protection
Hi
I've implemented a bootloader that receives, cache and upgrades my main program.
When RDP (read out protection) is not enabled everything works as expected with no problem.
If I enable RDP. And if I upload the same program as the one already on the chip theres no problem. (I combine program and bootloader together and upload them).
But if I upload a changed version of program, after uploads finishes ( and restarts ) it breaks and stops working.
I'm sure bootloader is working since its alright without RDP enabled. and uploaded program should not be corrupted since I verify once after writing.
The only things that change between two version of program, I think, is size of program and starting address.
Does enabling RDP freezes the starting address or something? any Idea?
I'm using SM32f103RE.
Thanks.
