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.
Hi. I'm trying to get started in 8051 programming with this Atmel chip and Keil uVision2 (Eval version) I'm new in programming microcontrollers. I'd like to make it simple and use internal FLASH and RAM, but I don't know how. When I set "Use internal ROM" in Target configuration, I get the "L120" error message. Reading the .M51 file of my proyect, I notice that the compiler is realy using low CODE addresses that should fit in the 8K flash, but it don't finish the compilation.
Can you help me?
thank you very much.
The linker really use the low CODE address,because it must.If you want to use the inner Flash instead of external flash,just route /EA pin in your board to HIGH.It is a hardware subject.
And keep in mind,the EVAL version has a 2K OFFSET and 2K code limit,so it may not perfect fit your Getting Started project.Read the mannual about the limit.
The code lenght is less than 2K. If the compiler starts at 2k, the program should fit perfectly. When I build it, an L120 error appears. It's pointing to the C51S.lib, not to my program.
Why?
Regards.