Keil Logo

µVISION DEBUGGER: ACCESS VIOLATION 0X00C000 WITH XC16X


Information in this article applies to:

  • µVision Version 3

QUESTION

I am using the Infineon XC161, XC164, or XC167 devices together and debug my application using the µVision3 Debugger/Simulator. I want to use on-chip ROM and XRAM, I have selected this option in the dialog Project - Options for Target. On my new project, when I run the debugger in the simulator mode I get the error:

*** error 65: access violation: addr=0x0000C000

The debugging works perfectly using the HELLO example project in the folder ...\C166\Examples\XC16x Devices. What can be wrong?

ANSWER

You need to configure the device startup options in the dialog: Options for Target - Debug - Use Simulator - Settings to control the startup behaviour for the XC16x devices. The EA# bit needs to be set to 1 (as is the case with the real device). This dialog allows you to set the startup BUS configuration of your device the same way you configure the BUS system using pull-up resistors on the config pins. In addition, you need to set SMOD: Configuration for Program Memory in this dialog.

SEE ALSO

FORUM THREADS

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

Last Reviewed: Monday, February 14, 2005


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.