I’ve been reading on this all evening:
const module_bounds_t module_bootloader = { 0x4000, 0x8000000, 0x8004000, MODULE_FUNCTION_BOOTLOADER, 0, MODULE_STORE_MAIN };
const module_bounds_t module_system_part1 = { 0x40000, 0x8020000, 0x8060000, MODULE_FUNCTION_SYSTEM_PART, 1, MODULE_STORE_MAIN };
const module_bounds_t module_system_part2 = { 0x40000, 0x8060000, 0x80A0000, MODULE_FUNCTION_SYSTEM_PART, 2, MODULE_STORE_MAIN};
const module_bounds_t module_user = { 0x20000, 0x80A0000, 0x80C0000, MODULE_FUNCTION_USER_PART, 1, MODULE_STORE_MAIN};
const module_bounds_t module_factory = { 0x20000, 0x80E0000, 0x8100000, MODULE_FUNCTION_USER_PART, 1, MODULE_STORE_FACTORY};
const module_bounds_t* module_bounds[] = { &module_bootloader, &module_system_part1, &module_system_part2, &module_user, &module_factory };
const module_bounds_t module_ota = { 0x40000, 0x80C0000, 0x8100000, MODULE_FUNCTION_NONE, 0, MODULE_STORE_SCRATCHPAD};
So if I understand well, there is
256k for part 1 and almost everything is used.
256k for part 2
128k for user
128k for default app?? What is this exactly? OTA and listening mode? Is there a way to shrink that? How can I build this part and resize. I can do it for part 1 and part 2 in /modules/part… doing a make clean all.
I tried to change the part 1 size by changing the values in the code and by modifying the make files and it seens to work but there is almost no free space in part 1 so the make failed with app size too big…
and 256k for module_ota. This is only for OTA upgrades so we can store the upgrade temporary before we can validate and load it on the device?
Maybe this could be a solution for me because I have an external flash memory that I’m already loading the firmware to temporary…
Thanks!