ARM Technical Support Knowledge Articles

DEBUGGING WITH START ADDRESS OTHER THAN 0

Applies to: MON51 Target Monitor

Answer


Information in this article applies to:


QUESTION

I have the following configuration on my target system:

The application code downloads properly, but it starts executing at address 0 and my program hangs.

Is there a way to configure execution to start at 0x8000?

ANSWER

Yes, you can configure the program start address by using a debugger initialization file. The following steps explain how to do this.

  1. Generate a file, for example with the name MON51.INI and the following content:
    PC = 0x8000   // Set start address to 0x8000
    g, main       // run till entry of 'main'
    
  2. Set the following configuration in the uVision dialog page Project - Options for Target - Debug:
    • Enable Load Application at Startup
    • Disable Run to main ()
    • Enter the Initialization File MON51.INI that you have just created.

When you now start the debugger, it will load the application, set the Program Counter (PC) to 0x8000 and run your application until the main entry.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 09:36:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential