We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I tried to build my code with keil uVision3 and at the time of linking there was some error. I wanted to generate hex file for AT89S51(4k flash ROM. I selected the following options in output. *Use in-built memory *XTAL(MHz) = 12 *Memory model: Small *Code ROM size: Small(2k or less) Like I said there was trouble linking. I changed code ROM size to compact and hex file generated successfully. I want to know if the hex code built with different code ROM size is compatible with my uC. Also. Why should I enter the crystal frequency in the options. Code remains the same irrespective of clock frequency. Isn't it?
"Code ROM Size" has to do with whether short or long jumps are used.
Have neve been below 2k and thus never 'seen' that one (which would probably create errors if above (ajmp/acall) reach
Erik