Уже четвертые сутки пытаюсь начать работать с IAR, J-Link, Kinetis K60.
- IAR for ARM v6.3;
- J-Link, я так понял, копия. На плате обнаружил маркировку «W-Link V8.0» (at91sam7s64);
- МК – Kinetis K60P144M100SF2 (маркировка на плате PK60N512VLQ100). Плата подготовлена с JTAG.
Поставил IAR, установил Setup_JLinkARM_V450m.exe с официального сайта. Ищу в example projects», в папках IAR. Запускаю проект hello_world_k60_tower. Пробегаюсь по настройкам проекта аналогично этому http://www.segger.com/IDE_Integration_IAR.html. Далее жмякую на «Download and Debug». В ответ получаю несколько сообщений об ошибке:
- Failed to get CPU status after 4 retries/ Retry ?
- Fatal error: Session aborted!
- Failed to load flash loader C:Progr…FlashK60Xxxx.flash
- The debugging session could not be started. Either the debugger initialization failed, or else the file "… hello_world_k60_tower.out" was corrupt or of an unsupported format.
Debug Log:
Код
Mon Jul 30, 2012 00:08:39: Loaded macro file: C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armconfigflashloaderFreescaleFlashK60Xxxx.mac
Mon Jul 30, 2012 00:08:39: JLINK command: ProjectFile = C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armexamplesFreescaleKinetishello_worldsettingshello_world_k60_tower_FLASH_128
KB_PFLASH.jlink, return = 0
Mon Jul 30, 2012 00:08:39: Device "MK60DN512XXX10" selected (512 KB flash, 128 KB RAM).
Mon Jul 30, 2012 00:08:39: JLINK command: device = MK60DN512xxx10, return = 0
Mon Jul 30, 2012 00:08:39: DLL version: V4.51j, compiled Jul 24 2012 22:40:14
Mon Jul 30, 2012 00:08:39: Firmware: J-Link ARM V8 compiled Jul 20 2012 16:33:52
Mon Jul 30, 2012 00:08:39: JTAG speed is initially set to: 32 kHz
Mon Jul 30, 2012 00:08:39: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:08:39: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:08:39: Hardware reset with strategy 0 was performed
Mon Jul 30, 2012 00:08:39: Initial reset was performed
Mon Jul 30, 2012 00:08:39: Could not measure total IR len. TDO is constant high.
...
Mon Jul 30, 2012 00:08:40: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:08:40: ----- Prepare hardware for Flashloader -----
Mon Jul 30, 2012 00:08:40: Could not measure total IR len. TDO is constant high.
...
Mon Jul 30, 2012 00:10:37: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:11:45: Fatal error: Session aborted!
Mon Jul 30, 2012 00:11:45: Failed to load flash loader: C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armconfigflashloaderFreescaleFlashK60Xxxx.out
Mon Jul 30, 2012 00:11:45: Failed to load flash loader: C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armconfigflashloaderFreescaleFlashK60Xxxx.flash
Mon Jul 30, 2012 00:08:39: JLINK command: ProjectFile = C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armexamplesFreescaleKinetishello_worldsettingshello_world_k60_tower_FLASH_128
KB_PFLASH.jlink, return = 0
Mon Jul 30, 2012 00:08:39: Device "MK60DN512XXX10" selected (512 KB flash, 128 KB RAM).
Mon Jul 30, 2012 00:08:39: JLINK command: device = MK60DN512xxx10, return = 0
Mon Jul 30, 2012 00:08:39: DLL version: V4.51j, compiled Jul 24 2012 22:40:14
Mon Jul 30, 2012 00:08:39: Firmware: J-Link ARM V8 compiled Jul 20 2012 16:33:52
Mon Jul 30, 2012 00:08:39: JTAG speed is initially set to: 32 kHz
Mon Jul 30, 2012 00:08:39: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:08:39: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:08:39: Hardware reset with strategy 0 was performed
Mon Jul 30, 2012 00:08:39: Initial reset was performed
Mon Jul 30, 2012 00:08:39: Could not measure total IR len. TDO is constant high.
...
Mon Jul 30, 2012 00:08:40: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:08:40: ----- Prepare hardware for Flashloader -----
Mon Jul 30, 2012 00:08:40: Could not measure total IR len. TDO is constant high.
...
Mon Jul 30, 2012 00:10:37: Could not measure total IR len. TDO is constant high.
Mon Jul 30, 2012 00:11:45: Fatal error: Session aborted!
Mon Jul 30, 2012 00:11:45: Failed to load flash loader: C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armconfigflashloaderFreescaleFlashK60Xxxx.out
Mon Jul 30, 2012 00:11:45: Failed to load flash loader: C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0armconfigflashloaderFreescaleFlashK60Xxxx.flash
Что говорит при запуске jlink.exe
Код
SEGGER J-Link Commander V4.36f ('?' for help)
Compiled Oct 22 2011 15:21:57
DLL version V4.51j, compiled Jul 24 2012 22:40:14
Firmware: J-Link ARM V8 compiled Jul 20 2012 16:33:52
Hardware: V8.00
S/N: 11111118
VTarget = 3.222V
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
****** Error: Could not read AHB-AP Id. Could not connect to target.
No device found on SWD.
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
****** Error: Could not read AHB-AP Id. Could not connect to target.
No device found on SWD.
J-Link>
Compiled Oct 22 2011 15:21:57
DLL version V4.51j, compiled Jul 24 2012 22:40:14
Firmware: J-Link ARM V8 compiled Jul 20 2012 16:33:52
Hardware: V8.00
S/N: 11111118
VTarget = 3.222V
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
****** Error: Could not read AHB-AP Id. Could not connect to target.
No device found on SWD.
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
****** Error: Could not read AHB-AP Id. Could not connect to target.
No device found on SWD.
J-Link>
Каждый раз перед строкой "****** Error: Could not read AHB-AP Id. Could not connect to target." Вываливается окошко с сообщением:
"Secured Kinetis device detected/ For debugger connection the device needce to be unsecured. Do you want to unsecure the device?
Note:Unsecuring will trigger a mass erase of the internal flash."
Вышел на ето, но мне ет чет не помогло

B еще на J-Link есть "сдвоенный диод" Ready/Error. И при подачи питания с платы, начинает предательски мигать красным (я так понимаю что эт ерор).
В общем много и долго ковырялся (4 дня), ни как могу понять в чем проблема

И что самое интересное, что когда мне все эт вручали, все вроде нормально работало

Очень прошу помощи.