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
  • __main is created by the compiler.

    Rubbish.

    It's where ram is initialized.

    Could certainly be phrased better.

    It eventually calls main().

    You're getting betterThat's more like it.

    But... I couldn't step into either, the application just started running.

    It is so simple to do. Select the disassembly window and single step there.

Reply
  • __main is created by the compiler.

    Rubbish.

    It's where ram is initialized.

    Could certainly be phrased better.

    It eventually calls main().

    You're getting betterThat's more like it.

    But... I couldn't step into either, the application just started running.

    It is so simple to do. Select the disassembly window and single step there.

Children