Keil™, An ARM® Company

Technical Support

C166: DO PERIPHERALS STOP WITH ULINK DEBUGGING


Information in this article applies to:

  • C166 Version 5.05 or higher

QUESTION

I am using the Keil ULINK USB-JTAG/OCDS Adapter for debugging of an Infineon XC16x devices. In my program I have several peripherals running. Do this peripherals (such as timer or A/D converter) stop when I reach a breakpoint?

ANSWER

By default the peripherals do not stop when you reach a breakpoint. However the Infineon XC16x devices provide a OCDS Debug Peripheral Suspend Configuration OPSEN register. The OPSEN register is a protected register that must be either initialized before the EINIT instruction or by using a Security Level Command Register.

The START_V2.A66 CPU startup code version 5.06 or higher provides at setup for the OPSEN register.

RESTRICTIONS

  • Registers which belong to a suspended peripheral cannot be written when the CPU is stopped. So it is not possible to modify such a register in the peripheral dialog or command line of the µVision debugger.
  • Peripherals and Peripheral registers do not changed when single stepping through the application. When single stepping you will not notice any modifications on peripherals that stop during debugging. For example, it is impossible to step over initialization code for peripherals.
  • Peripherals do not stop when you use the Debug - Stop Running command from the debugger.

MORE INFORMATION

  • ULINK OCDS Interface User's Guide, Debugging, Target Debug Options

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Last Reviewed: Saturday, May 28, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure