I tried to reduced my hex file's size while converting to zip but it doesn't get size under 256KB due to which I am getting an error: Data size exceeds the limit.
Below are the screenshots for reference.
I need help to resolve this problem,




I tried to reduced my hex file's size while converting to zip but it doesn't get size under 256KB due to which I am getting an error: Data size exceeds the limit.
Below are the screenshots for reference.
I need help to resolve this problem,




It doesn't work that way. You need to reduce your code size, not attempt to compress the hex file.
Try compiling with size optimizations, disable logging, etc.
It doesn't work that way. You need to reduce your code size, not attempt to compress the hex file.
Try compiling with size optimizations, disable logging, etc.
I don't have any project whose size is small all are bigger than 400 KB. What i should do?
Try compiling with size optimizations, disable logging, etc.
If you definitely can't reduce your code size, then you will need to get a SoC variant with larger flash.
What is SoC variant with larger flash?
Mm I just noticed that you're developing on an NRF51. That series only has SoCs with up-to-256 KB of Flash. The NRF52 series has SoCs with up to 1 MB of Flash.
Anyway, I'm not sure how are you even programming a 400 KB image onto a 256 KB memory.