Keil Logo

XC164CM program cannot run under debug mode of uVision3

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Owen Senmeis
Posted
4-Oct-2009 15:42 GMT
Toolset
C166
New! XC164CM program cannot run under debug mode of uVision3

Hello,

I'm using uVision3 and ULINK to develop programs for XC164CM.

While compiling a program there is a warning:

*** WARNING L5: SECTION LOCATED OUTSIDE CLASS AREA SECTION: ?ND0?DLLMAIN
CLASS: NDATA0

This code is still downloaded into the device, but cannot run in debug mode with this error:

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

The referred line is:

0000C000 0000      ADD      R0,R0

My project uses two CAN interfaces. I don't know if this is the reason.

Best Regards,
Senmeis

Read-Only
Author
Reinhard Keil
Posted
5-Oct-2009 11:11 GMT
Toolset
C166
New! RE: XC164CM program cannot run under debug mode of uVision3

These are two un-related problems.

WARNING L5: is caused by the fact that you run out of memory in your target system (or that a CLASS is incorrectly defined).

error 65: access violation occurs because you are running in the simulation mode. Most likely you must configure the simulator as explained here: http://www.keil.com/support/docs/2896.htm

For debugging with ULINK however you need to select the correct target driver.

Read-Only
Author
Owen Senmeis
Posted
6-Oct-2009 08:52 GMT
Toolset
C166
New! RE: XC164CM program cannot run under debug mode of uVision3

To be honest, at first I didn't think this warning is so important. But the application doesn't work even everything looks fine besides this warning (A CAN message is expected to be transmitted after power up). So I made a change in
'Options for Target -> Target'
from
'Small: 'near' functions and data'
to
'HCompact: 'huge' data, 'near' funcs'.
This time the application works! The warning now is changed to

*** WARNING L5: SECTION LOCATED OUTSIDE CLASS AREA SECTION: ?HD0?DLLMAIN CLASS: HDATA0

Could anybody tell me why this setting is so important and if I can ignore this L5 warning?

Thanks
Senmeis

Read-Only
Author
Reinhard Keil
Posted
6-Oct-2009 08:56 GMT
Toolset
C166
New! RE: XC164CM program cannot run under debug mode of uVision3

Start reading here: http://www.keil.com/support/man/docs/l166/l166_memory.htm

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  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.