Hello, when debugging an XC167CI Step CA with Keil uLink I have the following problem: if there is a SRST instruction in the code of the XC167CI, then µVision Debugger jumps to 0xFFFFFF instead of 0x000000, disassembly window shows then all instructions at odd addresses. After pressing RST, disassembly shows correctly instructions located at 0xC00000 (start of internal flash), but DPPs are displayed with their current value, not with the reset values mentioned in datasheet. When trying to Run the code after this reset, only jumps to 0xFFFFFF are done. The only way to continue debugging is to stop the debugger and then start it again. How can this problem be solved? Regards, Roland
I tried out the following: Keil Blinky-Example for Infineon XC16-Board, Target: OCDS XC16x-Board. 1.) Code modified with for-loop (10 steps) instead of while(1), after that _trap_(0) instruction => LED should blink 10 times, then performing a software reset. a) Debugging with uLink: LED blinks 10 times, then µVision Debugger jumps to 0xFFFFFF instead of 0x000000, disassembly window shows then all instructions at odd addresses. RSTOUT pin is active. Debugging has to be stopped and restarted to be able to start the blinking again. b) Debugging with On-Board-Wiggler: LED blinks 10 times, then RSTOUT pin is active. Debugging has to be stopped and restarted to be able to start the blinking again. 2.) Code modified with for-loop (10 steps) instead of while(1), after that ENWDT instruction followed by while(1) to wait for a watchdog reset. => LED should blink 10 times, then performing a watchdog timer reset. Debugging does the same as described above at a) and b) RSTOUT gets active, program stops and debugging mode has to be stopped and restarted. Why is it not possible to perform SRST or watchdog timer resets during OCDS debugging? Roland
I had the same problem with PC jumping to 0xFFFFFF sometimes while debugging. Then even a HW reset didn't seem to correct the problem. The solution was to update to PK166 V5.05 (on Keil's advise) and use the "ULINK Driver for XC16x). best regards, Roman