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

Bootloader for nRF51422 ?

Hello Everybody,

I need to write a boot loader for nRF51422. Any suggestion for it, reference site ,sample code for quick reference ?

thanks and regards Robin Singh

Parents
  • Hi Robin,

    have you looked at the bootloader example from the nRF51822 SDK? It cannot be used directly on the nRF51422 yet, but it might serve as a reference for you. It includes two ways of transferring the updated image, serial transfer (UART) and over-the-air (BLE).

    The nRF51422 SoftDevice is being updated to offer the same bootloader functionality as the nRF51822 one. Once that happens, the nRF51822 bootloader example will be directly applicable. When this update is released you might have to get a updated silicon revision of the nRF51422 though..

    Audun

  • Hi Robin, the softdevice memory area is write protected. Attempting a write in this area should trigger a HardFault. Since you cannot delete it, all interrupts will come to the softdevice vector table. I'm not exactly sure what you mean when saying that your application always comes back to the softdevice vector table, because this is the normal behavior.

    You should be able to write to the application space in either Handler or Thread mode though.

    I suggest trying to read out the memory you've written using nrfjprog (command line utility accompanying nRFgo Studio). See nrfjprog --help, and look for the --memrd option. This should help verify that your updated image is actually written to flash as you intend.

Reply
  • Hi Robin, the softdevice memory area is write protected. Attempting a write in this area should trigger a HardFault. Since you cannot delete it, all interrupts will come to the softdevice vector table. I'm not exactly sure what you mean when saying that your application always comes back to the softdevice vector table, because this is the normal behavior.

    You should be able to write to the application space in either Handler or Thread mode though.

    I suggest trying to read out the memory you've written using nrfjprog (command line utility accompanying nRFgo Studio). See nrfjprog --help, and look for the --memrd option. This should help verify that your updated image is actually written to flash as you intend.

Children
No Data
Related