AnsweredAssumed Answered

I can't download a program to MK64FN1M0VLQ12 by Jlink

Question asked by 周 亮 on Jun 1, 2018

Hi

I have some problems need to be solved.I couldn't download my program to my controller.I am using MK64FN1M0VLQ12 ,keil uv5 and jlink V8.

The followings are my  circuit diagram and some configuration settings in keil.

The circuit diagram is too big,so I  captured the relevant part.If you need more circuit ,please let me know.

The configuration settings in keil:

 

 

 

Load "E:\\MQX软件学习\\wdwMQX4.1\\mqx\\examples\\wdwkzq\\build\\uv4\\wdwkzq_frdmk64f\\Int Flash Debug\\hello.axf"
* JLink Info: Device "ARM9" selected.
Set JLink Project File to "E:\MQX软件学习\wdwMQX4.1\mqx\examples\wdwkzq\build\uv4\wdwkzq_frdmk64f\JLinkSettings.ini"
* JLink Info: Device "MK64FN1M0XXX12" selected.

JLink info:
------------
DLL: V6.14a, compiled Feb 27 2017 18:41:26
Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
Hardware: V8.00
S/N : 304439649
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFULL

* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: AP-IDR: 0x24770011, Type: AHB-AP
* JLink Info: AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl 0 @ E00FF000
* JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
* JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
* JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
* JLink Info: ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
* JLink Info: ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
* JLink Info: ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
* JLink Info: ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB
* JLink Info: ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF
ROMTableAddr = 0xE00FF000

Target info:
------------
Device: MK64FN1M0xxx12
VTarget = 3.338V
State of Pins:
TCK: 0, TDI: 1, TDO: 0, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 4000 kHz

***JLink Error: Can not read register 15 (R15) while CPU is running
***JLink Error: Can not read register 20 (CFBP) while CPU is running
***JLink Error: CPU is not halted
***JLink Error: Can not read register 15 (R15) while CPU is running
Erase Failed!
Error: Flash Download failed - "Cortex-M4"
Flash Load finished at 15:45:09

Outcomes