C16xU and C165UTAH Devices
Due to hardware restrictions on the C161U, C165H, and C165UTAH, OCDS debugging is only fully supported when the application code resides in off-chip RAM.
Using the Infineon EASY UTAH Board
On the Infineon EASY UTAH board you need to set Jumper JP7 ON to use the LPT/OCDS interface (Wiggler). When Jumper JP7 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 EASY UTAH board is available in the folder: ..\C166\Examples\Boards\Infineon EASY UTAH.
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 TRST and RESET are open collector outputs on KEIL ULINK with 10KOhm pull-up resistor to 3,3V (VCC).
OCDS Driver for C16xU/H/UTAH - Settings
When you have selected Use: OCDS Driver for C16xU/H/UTAH under Project — Options for Target — Debug you can open the Settings dialog. The Settings dialog of the OCDS Driver for C16xU/H/UTAH allows you to configure 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.
For Infineon C161U, C165H, C165UTAH devices the µVision Debugger needs a small monitor program on the target system to support read/write access to the program counter (PC $). You can enter the start address of this monitor here. This monitor requires the DEBUG TRAP 8 (interrupt vector address 0x20 .. 0x23) and about 100 bytes of code. You need to reserve the DEBUG TRAP 8 (address range 0x20 - 0x23) of in your application with the Linker/Locater RESERVE directive. Under µVision the range 0x20 - 0x23 can be entered under Project - Options for Target - L166 Misc - Reserve.
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 or monitor code into external memory devices it is required to initialize the external BUS system. This dialog section allows you to enter values for the SYSCON, BUSCONx and ADDRSELx registers. This registers will be directly initialized with OCDS commands to enable external memory devices.
Known Problems with OCDS on C161U, C165H, C165UTAH Devices
of your data.