Keil Logo

µVISION DEBUGGER: Simulating XC16x Interrupt Vectors at 0XC00000


Information in this article applies to:

  • Keil C166 Version 4.24 or higher

QUESTION

I need to simulate the interrupts for the Infineon XC16x (XC164, XC161, XC167) devices from internal code space with the vector table located at 0xC00000.

It appears that the simulator always assumes code execution from off-chip memory so the program counter does not start at 0xC00000. Additionally, the vector table seems to work only at base address 0 instead of a base address of 0xC00000.

How can I configure the simulator for external memory?

ANSWER

You must use the Options for Target - Debug - Use Simulator - Settings dialog to configure the startup behaviour for the XC16x devices. To simulate a single-chip system you must set the following options under Startup Configuration:

  • SMOD: Configuration for Program Memory: Set interrupt vector table to 0xC00000.
  • EA#: Enable: Set reset location to 0xC00000.

The startup configuration is saved to the project file so you need configure it only once.

MORE INFORMATION

  • Infineon XC16x System Unit User's Guide

SEE ALSO

Last Reviewed: Tuesday, February 23, 2021


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.