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

How to configure application properly?

I am using Keil uVision version 5.40. I load the application in my target board using
Keil ULINK2 Debugger. I can jump to my startup code. When I get to the following instruction:

bx __main()

I cannot single step into Keil's __main(). When I try stepping into it, code starts running.
When I hit stop execution, I end up in the following filename (RT_Agent.c):

void _sys_exit (int return_code) {
  /* Endless loop. */
  while (1);
}

My guess is I'm not configuring my application properly.

Please advise!

Parents Reply Children
  • My co-worker made changes to my startup code, RTX_config.c, and uVision project file.

    I still can't make it to my main().

    I stepped through Keil's __main(). There is following software interrupt instruction:

    SWI #AB

    #AB ? never saw numbers that high in software interrupts.

    I think there is no handler for this software interrupt number so I consistently get
    stuck at while(1)