ARM Technical Support Knowledge Articles

ACCESS VIOLATION 0X00C000 WITH XC16X

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I am using the Infineon XC161, XC164, or XC167 devices together and debug my application using the uVision3 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 ...C166ExamplesXC16x 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

Article last edited on: 2005-02-14 14:59:27

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