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

nRF9160 increasing available FLASH Region Size for code

Hi,

In preparation for FOTA which would double the flash space requirement, I noticed the Region Size for FLASH is only 429568 and I would have assumed it was the 1MB advertised for the chip. Is there a project configuration value to increase this? I'm using tag 1.4.0.

Memory region Used Size Region Size %age Used
FLASH: 244496 B 429568 B 56.92%
SRAM: 78760 B 128 KB 60.09%
IDT_LIST: 184 B 2 KB 8.98%

Thanks!

Parents
  • Hi,

     

    Judging by the flash region size, it seems that you already have support for mcuboot, with a primary and secondary partition (which are both similar in size).

    If you go into your build folder catalog in cmd / terminal, and write "ninja rom_report", it should give you a ascii layout of the whole flash. Here's an example from aws_fota sample:

    +------------------------------------------+
    | 0x0: mcuboot (0xc000)                    |
    | 0xc000: EMPTY_0 (0x4000)                 |
    +---0x10000: mcuboot_primary (0x77000)-----+
    | 0x10000: mcuboot_pad (0x200)             |
    +---0x10200: mcuboot_primary_app (0x76e00)-+
    | 0x10200: spm (0xc000)                    |
    | 0x1c200: app (0x6ae00)                   |
    | 0x87000: mcuboot_secondary (0x77000)     |
    | 0xfe000: settings_storage (0x2000)       |
    +------------------------------------------+
    

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Judging by the flash region size, it seems that you already have support for mcuboot, with a primary and secondary partition (which are both similar in size).

    If you go into your build folder catalog in cmd / terminal, and write "ninja rom_report", it should give you a ascii layout of the whole flash. Here's an example from aws_fota sample:

    +------------------------------------------+
    | 0x0: mcuboot (0xc000)                    |
    | 0xc000: EMPTY_0 (0x4000)                 |
    +---0x10000: mcuboot_primary (0x77000)-----+
    | 0x10000: mcuboot_pad (0x200)             |
    +---0x10200: mcuboot_primary_app (0x76e00)-+
    | 0x10200: spm (0xc000)                    |
    | 0x1c200: app (0x6ae00)                   |
    | 0x87000: mcuboot_secondary (0x77000)     |
    | 0xfe000: settings_storage (0x2000)       |
    +------------------------------------------+
    

     

    Kind regards,

    Håkon

Children
No Data
Related