I’m looking to extend my logging capability beyond the space allocated for the emulated EE and SRAM.
After reviewing the memory map, I was thinking about using the space allocated for OTA firmware. I’m okay with loosing logged data when an upgrade is required. I’d have to add some guards to prevent writing (logging) while an image is being transferred or upgrade is in progresses.
Is this a crazy idea that should not be attempted?
Awesome! “best effort” is exactly what I was hoping for. So I could subscribe to a system call from functions provided from system/inc/system_event.h ?
for example: system_subscribe_event(firmware_update_pending, myStopLoggingFunction, NULL);
To start logging again, can I assume after a reset and when my application code starts running, the OTA flash space if free to use? or should I also subscribe to firmware_update to resume logging?