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 using a 80C515! Now i'm using µVision2 to make my programs. But from time to time i have undefinably problems with my progs. Changing some variable declarations solve that. My memory usage is about 60%. Is this a known problem? How can i solve this? Robert
You really don't give sufficient details for anyone to be able to answer your questions. What are those "problems", what exactly are the "changes to some declarations" you made, and how exactly did those changes help, i.e. what were the effects? uVision 1 vs. uVision 2 almost certainly has nothing to do with this. It's behaviour of the compiled code that seems to differ, so it'll be the difference in compiler versions, not IDE versions, that's causing this.
"it'll be the difference in compiler versions, not IDE versions, that's causing this." Or it might be nothing to do with the tools at all - it could be entirely down to your code and/or target hardware. As Hans-Bernhard says, there is no way to give any meaningful answer from the scanty details provided.
I can't count the many times I have heard "the new compiler version is defective" and almost invariably it has been the case that some program error was hidden due to some timing or location that had changed which, according to K&R, is not a "compiler error". The thing I found most frequently as the cause has been an int shared between main and an ISR where main did not disable interrupts when accessing it. Erik
"...many times I have heard 'the new compiler version is defective' and almost invariably it has been the case that some program error..." In this case, he doesn't even say that it worked in uVision-1 - just that messing with his code "mysteriously" makes it work! Definitely smells like a software and/or hardware problem, rather than a tool problem. Meanwhile, we await further details...
my program works, but when i put additionally code to my program (the additionally code works quite well) mystirious "errors" are generated. The compiler generates no errors and warnings, but when i put the hex-file an my 80c515 and send some values of variables to my display, different variables have false values.
"my program works, but when i put additionally code to my program (the additionally code works quite well) mystirious "errors" are generated." Welcome to the world of programming! Is there anyone anywhere who has not had this experience? "My code was working, I changed it, now it doesn't work! :-(" Time to get out the Debugger