Hello,
as you already mentioned, there seems to be some difference when you are flashing your application via WLAN instead of USB.
The reported Out-Of-Memory error seems to be only the result of some erroneous content read from the flash.
The memory test that you have done is just verifying the SDRAM - it does not check the flash memory.
Can you upload and compare somehow the content of the entire flash that you have created in both cases? Are the two binaries really identical?
Best regards,
Manfred.