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

Is this KeilC's compiler issue? A program flow will jump fly away

Hello, there:

I had my project builded with 0 error as well as 0 warning. Then I tried to simulate it with dScope. When I push step by step to trace my flow, I found the flow will jump flying away to elsewhere, returning back after finishing some instruction.

I downloaded it to my 8051, and it can't work. I tried to change optomize level, it will have some different result, but still the problem it's there were.

Would someone please help me to solve this problem.

Thanks a lot.
Morris

Parents
  • "If it does, there's something wrong with your new modules"

    So go back to the working version, and carefully add modules one at a time;
    Check, Test, & Inspect thoroughly at each stage.

    Thus you can narrow down precisely where the error was introduced.

    If you've added so much code that you're now on the edge of overflowing your code space, that could possibly be a cause...

Reply
  • "If it does, there's something wrong with your new modules"

    So go back to the working version, and carefully add modules one at a time;
    Check, Test, & Inspect thoroughly at each stage.

    Thus you can narrow down precisely where the error was introduced.

    If you've added so much code that you're now on the edge of overflowing your code space, that could possibly be a cause...

Children
No data