OCDS debugging is fully supported on Infineon XC16x devices.
Using the Infineon XC16Board
On the Infineon XC16Board you need to set Jumper JP501 ON to use the LPT/OCDS interface (Wiggler). When Jumper JP501 is OFF the OCDS connector is enabled and you can connect the XC16Board to the Keil ULINK.
An example application that is configured for OCDS debugging with the Infineon XC16Board is available in the folder: ..\C166\EXAMPLES\BOARDS\Infineon XC16Board. For running this example application, you should set the DIP switches on the XC16Board to the following settings:
Using an OCDS Connector
An OCDS connector can be easily added to user hardware. The OCDS interface allows application debugging and programming of on-board Flash ROM devices. The Infineon XC16x device should be wired to the OCDS connector pins as described in the following table.
The pins TMS, TDO, TDI, TCK, BRKIN, BRKOUT may share I/O Port pins on some XC16x device variants. The pins TRST and RESET are open collector outputs on KEIL ULINK with 10KOhm pull-up resistor to 3,3V (VCC).
OCDS Driver for XC16x — Settings
When you have selected Use: OCDS Driver for XC16x under Project — Options for Target — Debug you can open the Settings dialog. The Settings dialog of the OCDS Driver for XC16x allows configuration of device specific options.
Select LPT Printer Port or Keil ULINK (USB Adapter). If your computer has multiple ULINK adapters connected you need to select the serial number of the ULINK interface you want to use for debugging.
These controls improve the performance of the µVision Debugger during target debugging by caching target memory areas in the PC memory. By default, these options are enabled to get maximum performance.
To download application code into external memory devices it is required to initialize the External BUS Controller on the XC16x device. This dialog section allows you to enter values for the EBCMODx, TCONCSx and FCONCSx registers. This registers will be directly initialized with OCDS commands to enable external memory devices.
Known Problems with OCDS on XC16x Devices
Related Knowledgebase Articles
of your data.