Hello
I Always used Atmel AT89C51RE2 but there the production stopped we changed over to Silicon C8051F580 processor.
now I am facing problems with the memory. when I add variables after downloading the program wont run. the compiler give Program Size: data=78.3 xdata=172 code=10749
so to mine point there is enough space. maybe something with parameters?
with regards
Jos
what do you mean? when I add variables after downloading HOW?. when I add variables to my sode the program wont run.
porting toa 589, you, typically missed a set of SFRPAGE
was your port to the SiLabs part thoroughly tested and debugged before you started adding/changing stuff ?
Presumably, just don't just add variables - that would be pointless without also adding code to use those variables.
Wow. You are a Mr Smarty-Pants. lol.
www.avrfreaks.net/.../2418156
So, as well as the memory allocation, you need to look at that code.
As already noted, use the debugger.
Add printfs and/or other instrumentation to see what your code is doing.
Carefully compare before & after the changes ...
when I add variables after downloading the program wont run.
Probably means something like:
When I've added variables to the project and rebuilt then the download won't run.
Maybe my having a wife who speaks English as a second language makes it easier for me to translate such sentences on the fly (?)
Anyway, obvious area to look is memory allocation. So examination of map files and regular debugging would be a sensible path to follow.
How can you add variables after downloading?
Note that the C8051F580 is not a C251
Maybe time to break out the documentation and the debugger, and figure out what the processor is objecting too?
Take a listing file, walk the code, add diagnostics.
View all questions in Keil forum