nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LD script for example "secure bootloader ble" seems to overstep flash memory.

The linker script for the example code "Secure bootloader ble" for pca10040 have the FLASH section defined as:

FLASH (rx) : ORIGIN = 0x78000, LENGTH = 0x6000

According the the datasheet the flash memory ends at address 80 000. So it seems to me that the linker script is going beyond the real flash memory region. Is there something I'm missing?

Regards,
Andreas Öhman

Parents
  • Hello,

    I see what you are thinking, but remember that these numbers are hexadecimal. 

    0x0007 8000 + 0x0000 6000 = 0x0007 E000, so in fact, it is not using the entire flash (the last two pages, 0x0007 E000->0x0007 EFFF and 0x0007 F000->0x0007 FFFF are used for persistent storage for bootloader settings).

    Best regards,

    Edvin

Reply
  • Hello,

    I see what you are thinking, but remember that these numbers are hexadecimal. 

    0x0007 8000 + 0x0000 6000 = 0x0007 E000, so in fact, it is not using the entire flash (the last two pages, 0x0007 E000->0x0007 EFFF and 0x0007 F000->0x0007 FFFF are used for persistent storage for bootloader settings).

    Best regards,

    Edvin

Children
No Data
Related