Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years ago.
Unreasonable filesize after compulation?
The problem I have is that the file I get after compiling becoming too big to fit to my memory. The blinky example generates a HEX file of 239kb.
I have tried compiling different files with the same result.
(I am new to mbed and might very well have done something wrong)
Thankful for help!
Edit: I have a nRF51 Dongle with PCA10031 board and nRF51422 chip
6 years ago.
Most mbed systems use a .bin file which should be the exact size of the binary data.
It looks like the Nordic nRF51-Dongle is different in that it uses a .hex for programming. A hex file is a text file rather than raw binary data, it's going to be several times larger than the binary data. I'm not quite sure why it's so much larger than the compiler reports, that seems excessive, but I get the same result here.
I don't have the same board as you here so I can't test it further but I don't think you've done anything wrong with your setup.
P.S. In future posts it helps if you say which mbed board you are using in your post.