Keil Logo

µVISION DEBUGGER: CHANGING RESET VECTOR ADDRESS


Information in this article applies to:

  • µVision Version 2

QUESTION

I have relocated my program to start at an address other than 0000h. My program starts at 8000h.

When I start the µVision Debugger, I get the following error message:

ERROR 65: Access Violation at C:0X000.
No read/execute permission.

How can I simulate my program?

ANSWER

The µVision Simulator accurately simulates the MCU including the reset vector and all interrupt vectors.

If you relocate the reset vector and interrupt vectors, you must somehow let the simulator know about this.

The easiest way to do this is to create a small assembly program that redirects the reset and interrupt vectors and add it to your project. For example:

cseg at 0
LJMP    08000h

cseg at 3
LJMP    08003h

cseg at 0B
LJMP    0800Bh
.
.
.

As a quick fix, you can simply enter $=0x8000 in the Command Window when you start the debugger. Note that you may wish to uncheck the Go Till Main checkbox under Project Options -> Debug Tab.

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Saturday, November 18, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.