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
  • 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 can think of 47 reasons, so if youy want an answer, you need to be more specific.

    e.g. C or assembler
    e.g. any ISRs coded
    e.g. any interrupts enabled
    e.g. what is the instruction where this happens

    etc

    more words, does not make you appear stupid, it makes a relvant answer possible

    Erik

    on second thought, its 49 resasons

Reply
  • 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 can think of 47 reasons, so if youy want an answer, you need to be more specific.

    e.g. C or assembler
    e.g. any ISRs coded
    e.g. any interrupts enabled
    e.g. what is the instruction where this happens

    etc

    more words, does not make you appear stupid, it makes a relvant answer possible

    Erik

    on second thought, its 49 resasons

Children
More questions in this forum