Hy there,
when trying to implement OAD into my project, I run into a flash size problem: My original firmware, which covers about 2/3 of the final features, uses 69,6k for the stack and 47,4k for the application.
App:
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH 00000000 0000cfff 0000bdb2 0000124d R X
FLASH_LAST_PAGE 0001f000 00001000 00000058 00000fa8 R X
Stack:
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH 0000d000 00012000 0001163c 000009c4 R X
When I want to implement OAD in SBP manner, I lose flash page 0 and need to run OS from flash rather than from ROM. Is that correct? With this setup, the flash size is not large enough.
program will not fit into available memory. placement with alignment fails for section ".cinit" size 0x9ee . Available memory ranges:
FLASH size: 0xafff unused: 0x1 max hole: 0x1
FLASH_LAST_PAGE size: 0x1000 unused: 0x8 max hole: 0x4
Is this different for Sensor Tag OAD sample? Can I run the OS from ROM there? (see here for differences between SBP and Sensortag OAD). When including the ROM into my build it consumes 4,8k in flash, is that possible?
What other possibilities do you see to save flash?
Best regards
Harald