- Tue Feb 02, 2016 9:00 am
#40263
I don't think adding ram, which is not directly addressable, is the solution.
If you keep being bitten by the watchdog, that means you take too much time in your code before returning to the system. The watchdog is already quite tolerant, long before the watchdog bites, the WLAN subsystem will already give up.
The interesting thing is that you can do quite a bit with 4096 bytes of memory and returning to the system in time. I have just finished an OTA firmware update system where sectors of 4k are read, erased, written and read again (verify) and that be done all in time.
A Q&D workaround might be to double the CPU clock frequency to 160 MHz.
Otherwise you will have to optimise the code or slice the operation and have it called piece by piece by a background task (always the preferred way). You should never perform lengthy operations in callbacks, and certainly not in interrupts handlers.