Hi Deepak,
Yes I do use J-link to program the K60.
But I am not able to program even at POR,
I had already had tried the jlink which shows the following log.
SEGGER J-Link Commander V4.56 ('?' for help)
Compiled Oct 22 2012 19:40:24
DLL version V4.56, compiled Oct 22 2012 19:40:04
Firmware: J-Link ARM V8 compiled Sep 20 2012 13:27:01
Hardware: V8.00
S/N: 58009589
Feature(s): JFlash
VTarget = 3.287V
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
Info: Found SWD-DP with ID 0x2BA01477
No device found on SWD.
Did not find any core.
Failed to identify target. Trying again with slow (4 kHz) speed.
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
Info: Found SWD-DP with ID 0x2BA01477
No device found on SWD.
Did not find any core.
J-Link>
The procedure which cause this issue is a bit difficult to explain but I will try to do so:
-I am writing a custom bootloader(bare metal) for a application running on K60 (based on MQX)
-I programmed the main application on the board.
-Then I programmed the bootloader which just jumps to the address of main application.
- I have used the appropriate linker files.
- When I ran the bootloader the code successfully jumped to the correct address and ran main application.
- But I am not been able to reprogram/or communicate the board with via JTAG.
- I get unable to get CPU status error.
in bootloader code I just tried to toggle a LED connected on PA4 but accidentally assigned the PA0 which is SWD_CLK as GPIO.
by :
PORTA_PCR0 = 0x00000100;
instead of
//PORTA_PCR4 = 0x00000100;
That is why I was suspecting it to be cause of the problem.
Does it explain my problem
Thanks and regards
Nikhil