2009年4月28日星期二

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

UVISION DEBUGGER: ACCESS VIOLATION 0X00C000 WITH XC16X
UVISION DEBUGGER: ACCESS VIOLATION 0X00C000 WITH XC16X

Information in this article applies to:

* uVision Version 3

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 ...\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.

没有评论:

发表评论

标签