section 'rodata' would not fit in region 'FLASH'

Hello 
There are multiple tickets regarding this but I could not find the one that specifically handles my case

In my case when MCUboot is enable the flash is overflowed by 28680 bytes

Without MCUboot enabled my app takes 54.9% of flash


Memory region Used Size Region Size %age Used
FLASH: 575684 B 1 MB 54.90%
RAM: 155796 B 256 KB 59.43%
IDT_LIST: 0 GB 2 KB 0.00%

Does this mean that my app is just too big and I cannot use MCUboot ( and DFU ) ?

Or can it  be trimmed somehow?

Thanks

Andy

Parents
  • Hi Andy

    This would generally point to that there is no more Flash memory available in the nRF52840, yes. There are quite a few memory footprint optimizations you can do in order to minimize the flash/RAM usage of your application, so I'd recommend taking a look here if you have made these optimizations first. If you're still not able to make room for it, please post the memory regions you have after making them. 

    Also, the memory report app in the VS code NCS extension shows the size and percentage of memory each symbol uses on your device, so that might be useful if you're trying to cut down on size as well.

    Best regards,

    Simon

Reply
  • Hi Andy

    This would generally point to that there is no more Flash memory available in the nRF52840, yes. There are quite a few memory footprint optimizations you can do in order to minimize the flash/RAM usage of your application, so I'd recommend taking a look here if you have made these optimizations first. If you're still not able to make room for it, please post the memory regions you have after making them. 

    Also, the memory report app in the VS code NCS extension shows the size and percentage of memory each symbol uses on your device, so that might be useful if you're trying to cut down on size as well.

    Best regards,

    Simon

Children
Related