按以上建议操作后能识别到设备了,但是下载还是会出错,这是上电后第一次下载:
Wed Jun 11, 2014 14:45:18: Loading the I-jet/JTAGjet driver
Wed Jun 11, 2014 14:45:19: Probe: CMSISDAP S/N 020002003E153E67C3EAC39F mapped to a number 31380.
Wed Jun 11, 2014 14:45:19: Connecting Cortex-M core ID = 0x4770031 on DAP port 0
Wed Jun 11, 2014 14:45:19: Debug resources: 2 instruction comparators, 2 data watchpoints.
Wed Jun 11, 2014 14:45:19: Emulation layer version 3.42
Wed Jun 11, 2014 14:45:19: Emulation layer status 0x0
Wed Jun 11, 2014 14:45:19: CPU status - IN RESET
Wed Jun 11, 2014 14:45:19:
Wed Jun 11, 2014 14:45:19: LowLevelReset(system, delay 200)
Wed Jun 11, 2014 14:45:20: CPU status OK
Wed Jun 11, 2014 14:45:20: Loaded debugee: F:\MKL02\kl02-frdm-demo\build\iar\KL02_Freedom_Demo\FLASH_32KB\Exe\KL02_Freedom_Demo_tower.out
Wed Jun 11, 2014 14:45:23: The downloaded program doesn't seem to match the expected memory layout of the target system:
Wed Jun 11, 2014 14:45:23: Some C variables are placed outside known memory areas:
Wed Jun 11, 2014 14:45:23: count_mseg @ 0x20000310, char
Wed Jun 11, 2014 14:45:23: LOCK @ 0x20000336, unsigned char
Wed Jun 11, 2014 14:45:23: base_time125m @ 0x2000032C, uint16
Wed Jun 11, 2014 14:45:23: core_clk_khz @ 0x2000031C, int
Wed Jun 11, 2014 14:45:23: mcg_clk_hz @ 0x20000314, int
Wed Jun 11, 2014 14:45:23: and more...
Wed Jun 11, 2014 14:45:23: No C variables are placed in memory designated as RAM.
Wed Jun 11, 2014 14:45:23: Memory is specified as follows:
Wed Jun 11, 2014 14:45:23: 0x00000000 - 0x000003FF ROM/Flash
Wed Jun 11, 2014 14:45:23: 0x00000400 - 0x0000043F Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0x00000440 - 0x00001FFF ROM/Flash
Wed Jun 11, 2014 14:45:23: 0x1FFFFF00 - 0x200002FF RAM
Wed Jun 11, 2014 14:45:23: 0x40000000 - 0x4007FFFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0x400FF000 - 0x400FFFFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0x44000000 - 0x5FFFFFFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0xE0000000 - 0xE00FFFFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0xF0000000 - 0xF0000FFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0xF0001000 - 0xF0001FFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0xF0002000 - 0xF0002FFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0xF0003000 - 0xF0003FFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: 0xF8000000 - 0xFFFFFFFF Uncached/SFR
Wed Jun 11, 2014 14:45:23: C Variables range from 0x00000000 to 0x20000336
Wed Jun 11, 2014 14:45:23: Download error at 0x00000000: downloading into non-writable memory.
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000000
Wed Jun 11, 2014 14:45:23: Write failed at 0x000000FF
Wed Jun 11, 2014 14:45:23: Write failed at 0x000001FE
Wed Jun 11, 2014 14:45:23: Write failed at 0x000002FD
Wed Jun 11, 2014 14:45:23: Write failed at 0x000003FC
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000400
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000401
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000402
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000403
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000404
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000405
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000406
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000407
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000408
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000409
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000040A
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000040B
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000040C
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000040D
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000040E
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000050D
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000060C
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000070B
Wed Jun 11, 2014 14:45:23: Write failed at 0x0000080A
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000909
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000A08
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000B07
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000C06
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000D05
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000E04
Wed Jun 11, 2014 14:45:23: Write failed at 0x00000F03
Wed Jun 11, 2014 14:45:23: Write failed at 0x00001002
Wed Jun 11, 2014 14:45:23: Write failed at 0x00001101
Wed Jun 11, 2014 14:45:23: Write failed at 0x00001200
Wed Jun 11, 2014 14:45:23: Write failed at 0x000012FF
Wed Jun 11, 2014 14:45:23: Write failed at 0x000013FE
Wed Jun 11, 2014 14:45:23: Write failed at 0x000014FD
Wed Jun 11, 2014 14:45:23: Write failed at 0x000015FC
Wed Jun 11, 2014 14:45:23: Write failed at 0x000016FB
Wed Jun 11, 2014 14:45:23: Write failed at 0x000017FA
Wed Jun 11, 2014 14:45:23: Write failed at 0x000018F9
Wed Jun 11, 2014 14:45:23: Write failed at 0x000019F8
Wed Jun 11, 2014 14:45:23: Write failed at 0x00001AF7
Wed Jun 11, 2014 14:45:23: Write failed at 0x00001BF6
Wed Jun 11, 2014 14:45:23: Write failed at 0x00001CF5
Wed Jun 11, 2014 14:45:23: Verification error at 0x00000000: mem = 0xFF, file = 0xF8
Wed Jun 11, 2014 14:45:23: Download completed but verification failed.
Wed Jun 11, 2014 14:45:23: LowLevelReset(software, delay 200)
Wed Jun 11, 2014 14:45:23: Calling reset script: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\config\debugger\Freescale\KinetisKL.ProbeScript@SoftwareReset
Wed Jun 11, 2014 14:45:24: Target reset
Wed Jun 11, 2014 14:45:24: There were 1 error and 51 warnings during the initialization of the debugging session.
|