hello, I have made a program in assembly language (using keil) . After creating the hex file for the project in Intel hex format the size is coming around 348 bytes. However when I am loading this file in my programmer for burning the size is coming to be 118 bytes. how do i fix this?? Programmer is mini-usb interface universal programmer( locally made)
"how do i fix this??"
Why do you assume there is anything to fix?
Why do you feel that the hex file must have identical size to the amount of binary bytes consumed by the program when loaded into your processor?
I did not mean that HEX file after being burned in the microcontroller is consuming less space. The problem is that hex file that is being loaded in PROGRAMMER for burning is of smaller size. If this is also normal ,could you please explain thank you
Not sure I (quite) understand what you're saying?
What, exactly, do you mean by, "hex file that is being loaded in PROGRAMMER" as distinct from, "hex file on computer"?
Often (generally?), PROGRAMMERS don't store the hex file - just the binary that it represents.
How do you obtain the sizes of these two "files"?
Have you compared the contents of the two files - maybe one contains some "padding"?
Remember that Windows reports the size occupied by the file on the disk - which may be larger than the content of the file (because disk space is allocated in "chunks")...
The GUI terminal of my programmer has an option load ,where the hex file to be burned is selected .Although I cant see or open the file but the display window of programmer says Load successful 118 bytes
The chunk size for the hex file on system is displayed to be 1 kb,but when check the properties it comes out be 348 bytes.I hav tried deleting all the white spaces.
View all questions in Keil forum