I am having trouble starting a debugger with secondary jtag on LPC2106. I have included a proper set of instructions in 'Startup.s' to enable the secondary jtag:
; Pin definitions PINSEL1 EQU 0xE002C004 ; PINSEL1 Address PINSEL1_Val EQU 0x55400000 ; Secondary JTAG LDR R0, =PINSEL1 LDR R1, =PINSEL1_Val STR R1, [R0]
This works fine for a simple test program, such as 'blinky', but not for more advanced application which uses RL-ARM RTX kernel. Such an application requires SWI_Handler from RealView Real-Time Library so I added the following code to 'Startup.s':
IMPORT SWI_Handler Undef_Handler B Undef_Handler ;SWI_Handler B SWI_Handler ; Part of RTL
This however causes the communication over jtag to break for some reason and the debugger cannot start. As soon as I remove imported SWI_Handler the debugger starts working. Of course, the application now hangs on SWI_Handler. Any thoughts why this is happening and what might be the solution to the problem?
There's been no reply to this. Are there any problems using RTX with the secondary jtag on the LPC2106? Is anybody doing this now?