move resources out of code… images on SD card?
there’s also a tons of technique to reduce code size so unless you already invest a lot of effort to do it does no harm to do it…
And just to be crystal clear for anyone who comes along after this discussion for looking at the error code, this statement is incorrect. This error code is typically because the firmware on the device and your code deployment is not in a consistent state that can’t execute your code. That’s most often caused by a mismatch in your project’s netmf version and the firmware version deployed on the hardware, but can also be a linker step that’s resulting in an error - the cause of that error in this thread was that the size of the deployment meant certain parts of the code were not deployed, couldn’t be linked, and the app failed to start.