This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

code of protocol stack which part of the Protocol I can modify?

Hi there, I need to add more the function based on Bluetooth, and I need the better security of the function. However, I do not want others read flash data freely and I hope only through my certification could the protocol stack jump to the bootloader address or modified the bootloader address. Can you provide the code of protocol stack? Which part of the code could I modified if I add the security certification? By the way, I don’t need to modify the communication part of the Bluetooth. Any help would be greatly appreciated!

Parents
  • Hi,

    In order to prevent the flash to be read, you should enable readback protection. You can enable readback protection of the device by writing '00' to the APPROTECT register.

    Our nrfjprog command line tool can for instance do this when programming the firmware:

    nrfjprog -f nrf52 --rbp ALL && nrfjprog --pinreset -f nrf52
    

    Note that the only way to 'reopen/unlock' the device is to issue an ERASEALL command over the SWD programming lines, which first clears your RAM, then erases all your FLASH content.

Reply
  • Hi,

    In order to prevent the flash to be read, you should enable readback protection. You can enable readback protection of the device by writing '00' to the APPROTECT register.

    Our nrfjprog command line tool can for instance do this when programming the firmware:

    nrfjprog -f nrf52 --rbp ALL && nrfjprog --pinreset -f nrf52
    

    Note that the only way to 'reopen/unlock' the device is to issue an ERASEALL command over the SWD programming lines, which first clears your RAM, then erases all your FLASH content.

Children
No Data
Related