Im making an application and trying to create OTA (over the air update or infield update) to do this, i use the cellular radio module to create a (passive) FTP connection and receive the HEX file from the server (about 650kb). As soon as i open the passive connection, the carbage collector kicks in and thats running for about 2-3minutes. This results in a broken connection by the FTP after some time and no response from the debugger what so ever. After the GC is done, i only got about 25kb data.
Why is the GC running for 2-3minutes (and doing so every 10seconds or something…). And how can i fix this