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

bootload flush and flushing address rodata too large to fit flash memory

hello Nordic

i am using nrf52832, sdk 16.0 s132 v7.0.1

i used the secure_uart_bootload example, the start flash in the example starts at 64000, though in this link the memory layout looks different (should start at 78000)

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader.html&anchor=lib_bootloader_memory

when i flashed the bootload with the dsk default configs then my app would not run at all. 

when i tried to change the start address to 78000 i got a compilation error of the bootloader saying 'rodata is too large to fit FLASH memory'

how can i know how much space the bootloader will need to update my app, also how much space my app will take .. also in RAM ??

(my app is build on the central bla_app_blinky example)

hope to read from you soon 

 best regards

Ziv

Parents
  • Hello Ziv,

    I just flashed the unmodified uart bootloader for nRF52832 from SDK 16, and this is what it looks like. Screenshot from nRF Connect for Desktop -> Programmer:

    It starts at 0x0007 8000.

    Are you sure it starts at 0x64000? If so, what changes did you initally do? What compiler did you use? Can you please try with an unmodified SDK?

  • hi Edvin

    when opening the .emProject file with an editor (like notepad++), i can see the following lines:

    linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x80000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x10000;FLASH_START=0x64000;FLASH_SIZE=0x1a000;RAM_START=0x20000008;RAM_SIZE=0xfff8"

    i am using the secure_bootloader_uart_mbr_pxa_100400_debug example (also wonder why there is a normal example and a debug example ?) 

    but even if i flash the release example and not the debug (starts at 78000) i can flash the bootloader but i can not run my app after that .. why is that ??

    best regards

    Ziv

Reply
  • hi Edvin

    when opening the .emProject file with an editor (like notepad++), i can see the following lines:

    linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x80000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x10000;FLASH_START=0x64000;FLASH_SIZE=0x1a000;RAM_START=0x20000008;RAM_SIZE=0xfff8"

    i am using the secure_bootloader_uart_mbr_pxa_100400_debug example (also wonder why there is a normal example and a debug example ?) 

    but even if i flash the release example and not the debug (starts at 78000) i can flash the bootloader but i can not run my app after that .. why is that ??

    best regards

    Ziv

Children
No Data
Related