I'm working with an STM32L. I'm trying to build my application such that:
- In the lower areas of program space, about 8KB (it will be less) is dedicated to a simple boot loader. This checks if there's a real user application further down programming space and launches the most recent one
- The rest of program space is chopped in half.
The idea is that when I need to update the main application, I write to one half or the other of program space. After verification, some place in the chip will be updated so the boot loader knows which half to launch.
So I'm trying to compile the program such that it doesn't matter which half of the program space its on. i.e., I do not want two copies of the program that need to go to a particular half. Is this possible?
This method is more or less an anti-bricking schema when updating. This is desirable as one of the requirements is that it needs to be updated via an optical interface (there's no changing this)
Please sign in to leave a comment.