2023-07-07 01:59 AM
Hello,
is it possible to enable/disable the "readout protection via SWD/JTAG mode for BlueNRG devices? Is it possible with openocd?
BR Sebastian
2023-07-07 05:02 AM - edited 2023-07-07 05:07 AM
Readout Protection is used to protect the flash from being read out. Deactivating it therefore only makes sense if the flash is completely deleted.
This is why it is written in the data sheets or the reference manual: Disable readout protection: Perform a mass erase of the user flash.
OpenOCD: TN1347, section 6.3 describes the settings and usage together with the RF-Flasher utility.
Does it answer your questions?
Regards
/Peter
2023-07-07 05:44 AM
Not just yet. Is there a command for openocd to enable the "readout protection"? Or for the RF-Flasher command line?
BR Sebastian
2023-07-07 10:47 AM - edited 2023-07-07 10:48 AM
Well, not really a command but depending on the particular device some data you have to write to a special location. Details can be found in the data sheet or reference manual, if you search for “readout protection”.
2023-07-09 07:12 PM
To the qeustion: yes for BlueNRG-1/2, partially yes for BlueNRG-LP.
Perform the actions according to your needs.
For BlueNRG-1/2, both can be done via SWD/openocd:
For BlueNRG-LP, readout protection can be disabled via SWD/openocd
AN5471: The BlueNRG-LP, BlueNRG-LPS UART bootloader protocol
2023-07-10 12:54 AM
Thanks.
I got it working with the RF-Flasher Launcher.
I also got it to run passing the command to UART. But how should it work in SWD mode and openocd?