Greetings,
We’re working with the Freescale MKW30 processor (MKW30Z160xxx4) and are attempting to use JLink to flash firmware onto it; however there’s a bug in the J-Link definitions for the processor with regards to the amount of FLASH present on the chip.
The processor comes with 160K of FLASH (128K + 32K contiguous) – hence the “160” in the part number; however Your website lists the part as having 128K, and also the JLink driver fails to write anything beyond 128K. The JLINK_DownloadFile function fails with "JLINK_ERR_WRITE_TARGET_MEMORY_FAILED”; and the JLink log shows:
SEGGER J-Link V5.00k DLL Log
DLL Compiled: Jul 31 2015 15:48:52
Logging started @ 2015-08-07 16:54
T36B8 000:760 JLINK_Halt()
T36B8 000:933 JLINK_WriteMem(0x00000000, 0x0300 Bytes, ...) - Data: 00 F4 FF 1F 05 9F 01 00 ... - In flash
T36B8 000:934 JLINK_WriteMem(0x00000400, 0x19CFA Bytes, ...) - Data: FF FF FF FF FF FF FF FF ... - In flash
T36B8 000:934 JLINK_WriteMem(0x0001FFFC, 0x8004 Bytes, ...) - Data: 00 00 00 00 FF FF FF FF ... - 0x0001FFFC - 0x0001FFFF in flash
It’s refusing to believe there’s any flash beyond 0x1FFFF (128K), truncating the write, and failing the call.
Many thanks,
- Malcolm
We’re working with the Freescale MKW30 processor (MKW30Z160xxx4) and are attempting to use JLink to flash firmware onto it; however there’s a bug in the J-Link definitions for the processor with regards to the amount of FLASH present on the chip.
The processor comes with 160K of FLASH (128K + 32K contiguous) – hence the “160” in the part number; however Your website lists the part as having 128K, and also the JLink driver fails to write anything beyond 128K. The JLINK_DownloadFile function fails with "JLINK_ERR_WRITE_TARGET_MEMORY_FAILED”; and the JLink log shows:
SEGGER J-Link V5.00k DLL Log
DLL Compiled: Jul 31 2015 15:48:52
Logging started @ 2015-08-07 16:54
T36B8 000:760 JLINK_Halt()
T36B8 000:933 JLINK_WriteMem(0x00000000, 0x0300 Bytes, ...) - Data: 00 F4 FF 1F 05 9F 01 00 ... - In flash
T36B8 000:934 JLINK_WriteMem(0x00000400, 0x19CFA Bytes, ...) - Data: FF FF FF FF FF FF FF FF ... - In flash
T36B8 000:934 JLINK_WriteMem(0x0001FFFC, 0x8004 Bytes, ...) - Data: 00 00 00 00 FF FF FF FF ... - 0x0001FFFC - 0x0001FFFF in flash
It’s refusing to believe there’s any flash beyond 0x1FFFF (128K), truncating the write, and failing the call.
Many thanks,
- Malcolm