This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problems µVision 1 <-> µVision 2

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

Parents
  • 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

Reply
  • 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

Children
  • "...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