BOSSA icon indicating copy to clipboard operation
BOSSA copied to clipboard

lock region documentation to avoid overwriting the last 16kB or so.

Open helmut64 opened this issue 7 years ago • 1 comments

I have problems to understand the lock option. I like to use BOSSA in an Arduino Zero D21 environment. When Downloading the sketch it erases the entire flash (after the bootloader).

I like to protect (or not to erase) the last remaining 16 kB (of the 256kB D21 flash). I removed already the -e option in the platforms.txt but BOSSA ist still erasing the entire Flash.

Will the lock region be of any help? Do I need to add this feature to BOSSA?

Thank you for your advise.

helmut64 avatar Sep 26 '18 20:09 helmut64

I believe I found out how it works. I can lock 16 regions (0-15), each being 1/16 of the Flash memory. I may can lock the last region (15) in the Arduino platforms.txt bossac command line, in my Sketch I unlock 15 to allow to write into it. With the next Sketch Download it get locked again before erasing.

helmut64 avatar Sep 27 '18 20:09 helmut64