Hello,
Is it possible, using OpenOCD, to protect flash sectors using level 2 ?
When you do a “flash protect 0 0 7 on”, it is implementing a level 1 flash sector protection or a level 2 ?
Thanks,
Guf
Hello,
Is it possible, using OpenOCD, to protect flash sectors using level 2 ?
When you do a “flash protect 0 0 7 on”, it is implementing a level 1 flash sector protection or a level 2 ?
Thanks,
Guf
the standard str9 driver implements level 1 protection.
you have to use the str9xpec driver to use level 2 and option bytes etc
you can also program using the str9xpec driver but it is faster to use str9x driver.
Cheers
Spen
Just to be sure, using “flash protect 0 0 7 on” with str9xpec will implement level 2 protection ? (or is it another console command)
Thanks
yes it is.
as mentioned in the docs before using any cmds you have to enable turbo mode - this simply disconnects the arm core from the jtag chain.
str9xpec enable_turbo 0
flash protect 0 0 7 on
str9xpec disable_turbo 0
then reset the core.
config for standard reset - may vary depending on device.
flash bank str9xpec 0x00000000 0x00080000 0 0 0
flash bank str9xpec 0x00080000 0x00008000 0 0 0
Cheers
Spen