hi am using 89c55 and wrote a code in c which acquires data from a serial device performs calculations and the gives an alarm when an abnormality is detected. when i compiled i got as Program Size: data=9.0 xdata=7569 code=4140. i used large memory model.it works well when i checked with keil simulator but when i burnt into my uc i don see any output. iam new to uc's should i add any eeproms before burning?? please help me out. thanks in advance.
regards, deepthi
.Is it true that the particular UC should have flash memory of size >= HEX file size??
the size of the HEX file is no indication of the size of the program at hand. if you want to be sure, you must generate a .bin file using 'fromelf'. such a file such can be programmed directly onto flash, hence: if that one is smaller than the storing media, you are in business! you can also have a look at the map file, of course.
That's true.
For further details, including the hex file format, see: http://www.keil.com/support/docs/3250.htm
"if you want to be sure, you must generate a .bin file"
Not at all - the C51 tools tell you the image size directly!
"using 'fromelf'"
The C51 tools don't use ELF - so I doubt that 'fromelf' will help?
" if that one is smaller than the storing media, you are in business!"
Not quite - you need both the Code storage area and the data storage area to be of adequate size before the program will run correctly...
Andy, I have a terrible headache today - something made me see "ARM" toolchain instead of C51! I apologize to the OP.