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

DFU sdk 12.2.0 (s130) nrf51822 QxxAA

can i use dfu secure bootloder for nrf51822 QxxAA ? if yes please help me how ?

Parents
  • Hi Mohsen, In order to compile the Secure bootloader for a nRF51 variant with 16kB RAM you need to adjust the size of the RAM section and lower the RAM start address.

    The SoftDevice returns the application ram base address in the app_ram_base parameter given to sd_ble_enable. Thus, if you debug the Secure Bootloader and set a breakpoint after sd_ble_enable and add a watch to app_ram_base, you will see that the application RAM start address can be set to 0x200025E0 and the size can be set to 0x1A20.

    If your using GCC, you need to modify the secure_dfu_gcc_nrf51.ld (linker script) and modify the RAM section to

    RAM (rwx) :  ORIGIN = 0x200025E0, LENGTH = 0x1A20
    

    If you're using Keil, then you need to edit the memory settings under "Options for target", see the screenshot below

    image description

    Best regards

    Bjørn

Reply
  • Hi Mohsen, In order to compile the Secure bootloader for a nRF51 variant with 16kB RAM you need to adjust the size of the RAM section and lower the RAM start address.

    The SoftDevice returns the application ram base address in the app_ram_base parameter given to sd_ble_enable. Thus, if you debug the Secure Bootloader and set a breakpoint after sd_ble_enable and add a watch to app_ram_base, you will see that the application RAM start address can be set to 0x200025E0 and the size can be set to 0x1A20.

    If your using GCC, you need to modify the secure_dfu_gcc_nrf51.ld (linker script) and modify the RAM section to

    RAM (rwx) :  ORIGIN = 0x200025E0, LENGTH = 0x1A20
    

    If you're using Keil, then you need to edit the memory settings under "Options for target", see the screenshot below

    image description

    Best regards

    Bjørn

Children
No Data
Related