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
How can you add variables after downloading?
Note that the C8051F580 is not a C251
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.
Presumably, just don't just add variables - that would be pointless without also adding code to use those variables.
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 ...
www.avrfreaks.net/.../2418156
Wow. You are a Mr Smarty-Pants. lol.
was your port to the SiLabs part thoroughly tested and debugged before you started adding/changing stuff ?
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
this is discussed in parallel on the SiLabs forum
of course I use those variables in mine code
I have seen that when I have to many variables the program wont run. so debugging is also impossible.
I have declarede arrays of 1000 bytes no problem.
I shall look to the amound of variables and try to decrease those.
Hallo Erik
can you send me a link to this topic of Silicon? thanks
Go on. You started that topic - surely you know where it is?
Again, note that the name is Silicon Labs. (if that's too much for you to type, just say "SiLabs").
View all questions in Keil forum