can i use dfu secure bootloder for nrf51822 QxxAA ? if yes please help me how ?
can i use dfu secure bootloder for nrf51822 QxxAA ? if yes please help me how ?
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
Best regards
Bjørn
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
Best regards
Bjørn