AnsweredAssumed Answered

issue with KL04 and P&E Multilink

Question asked by vinod karuvat on Dec 6, 2013

Hello Friends,

 

I am using the KL04 chip on a customied board. The pins used for programming/debugging are - pin32 - SWDio,pin 31 - RESET and pin 30 - SWDCLK.

I am using the Code Warrior 10.5. But, its not programming. I am getting the following messages -

 

"

 

Executing Initialization File: 
C:\Users\TOSHIBA\Desktop\kl05\KL05-SC\klxx-sc-baremetal\build\cw\LED_Blink/Proje
ct_Settings/Debugger/init_kinetis.tcl
thread break: Stopped, 0x0, 0x0, cpuARMLittle, LED_Blink.elf (state, tid, pid,
cpu, target)
radix x
cmdwin::eclipse::config hexprefix 0x
cmdwin::eclipse::config MemIdentifier p
cmdwin::eclipse::config MemWidth 32
cmdwin::eclipse::config MemAccess 32
cmdwin::eclipse::config MemSwap off
cmdwin::reg User\/System Mode Registers/LR = 0xFFFFFFFF
cmdwin::reg Breakpoint Unit Registers/BP_COMP0 = 0x0
cmdwin::reg Breakpoint Unit Registers/BP_COMP1 = 0x0
cmdwin::reg Core Debug Registers/DEMCR = 0x1000001
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION0 = 0x0
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION1 = 0x0

Starting 3rd party flash programming...
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry :
SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_ERR_NONFATAL
INF: Copyright 2012 P&E Microcomputer Systems,Inc.
INF: Command Line :"C:\Freescale\CW MCU v10.5\eclipse\..\MCU\bin\de.exe" -noni
-language en -ORBendPoint giop:tcp:127.0.0.1: -ORBtraceLevel 0
INF: CMD>RE
INF: Initializing.
INF: Target has been RESET and is active.
INF: CMD>CM C:\Freescale\CW MCU
v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\kl05z32m4_pflash_pipeline.arp
INF: Initializing.
INF: Initialized.
INF: ;version 1.03, 07/17/2013, Copyright P&E Microcomputer Systems,
www.pemicro.com [mk_32k_n_pflash_m0]
INF: ;device freescale, kl05z32m4, 1x32x8k, desc=pflash_pipeline
INF: ;begin_cs device=$00000000, length=$00008000, ram=$20000000
INF: Loading programming algorithm ...
INF: Error loading .ARP file : C:\Freescale\CW MCU
v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\kl05z32m4_pflash_pipeline.arp at
address 1FFFFC00
ERR: Error loading programming algorithm - load aborted.
ERR: Error occured during Flash programming.

Executing Initialization File:
C:\Users\TOSHIBA\Desktop\kl05\KL05-SC\klxx-sc-baremetal\build\cw\LED_Blink/Proje
ct_Settings/Debugger/init_kinetis.tcl
radix x
cmdwin::eclipse::config hexprefix 0x
cmdwin::eclipse::config MemIdentifier p
thread break: Stopped, 0x0, 0x0, cpuARMLittle, LED_Blink.elf (state, tid, pid,
cpu, target)
cmdwin::eclipse::config MemWidth 32
cmdwin::eclipse::config MemAccess 32
cmdwin::eclipse::config MemSwap off
cmdwin::reg User\/System Mode Registers/LR = 0xFFFFFFFF
cmdwin::reg Breakpoint Unit Registers/BP_COMP0 = 0x0
cmdwin::reg Breakpoint Unit Registers/BP_COMP1 = 0x0
cmdwin::reg Core Debug Registers/DEMCR = 0x1000001
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION0 = 0x0
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION1 = 0x0

Starting 3rd party flash programming...
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry :
SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_ERR_NONFATAL
INF: Copyright 2012 P&E Microcomputer Systems,Inc.
INF: Command Line :"C:\Freescale\CW MCU v10.5\eclipse\..\MCU\bin\de.exe" -noni
-language en -ORBendPoint giop:tcp:127.0.0.1: -ORBtraceLevel 0
INF: CMD>RE
INF: Initializing.
INF: Target has been RESET and is active.
INF: CMD>CM C:\Freescale\CW MCU
v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\kl05z32m4_pflash_pipeline.arp
INF: Initializing.
INF: Initialized.
INF: ;version 1.03, 07/17/2013, Copyright P&E Microcomputer Systems,
www.pemicro.com [mk_32k_n_pflash_m0]
INF: ;device freescale, kl05z32m4, 1x32x8k, desc=pflash_pipeline
INF: ;begin_cs device=$00000000, length=$00008000, ram=$20000000
INF: Loading programming algorithm ...
INF: Error loading .ARP file : C:\Freescale\CW MCU
v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\kl05z32m4_pflash_pipeline.arp at
address 1FFFFC00
ERR: Error loading programming algorithm - load aborted.
ERR: Error occured during Flash programming.

Executing Initialization File:
C:\Users\TOSHIBA\Desktop\kl05\KL05-SC\klxx-sc-baremetal\build\cw\LED_Blink/Proje
ct_Settings/Debugger/init_kinetis.tcl
radix x
cmdwin::eclipse::config hexprefix 0x
cmdwin::eclipse::config MemIdentifier p
thread break: Stopped, 0x0, 0x0, cpuARMLittle, LED_Blink.elf (state, tid, pid,
cpu, target)
cmdwin::eclipse::config MemWidth 32
cmdwin::eclipse::config MemAccess 32
cmdwin::eclipse::config MemSwap off
cmdwin::reg User\/System Mode Registers/LR = 0xFFFFFFFF
cmdwin::reg Breakpoint Unit Registers/BP_COMP0 = 0x0
cmdwin::reg Breakpoint Unit Registers/BP_COMP1 = 0x0
cmdwin::reg Core Debug Registers/DEMCR = 0x1000001
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION0 = 0x0
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION1 = 0x0

Starting 3rd party flash programming...
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry :
SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_ERR_NONFATAL
INF: Copyright 2012 P&E Microcomputer Systems,Inc.
INF: Command Line :"C:\Freescale\CW MCU v10.5\eclipse\..\MCU\bin\de.exe" -noni
-language en -ORBendPoint giop:tcp:127.0.0.1: -ORBtraceLevel 0
INF: CMD>RE
INF: Initializing.
INF: Target has been RESET and is active.
INF: CMD>CM C:\Freescale\CW MCU
v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\kl05z32m4_pflash_pipeline.arp
INF: Initializing.
INF: Initialized.
INF: ;version 1.03, 07/17/2013, Copyright P&E Microcomputer Systems,
www.pemicro.com [mk_32k_n_pflash_m0]
INF: ;device freescale, kl05z32m4, 1x32x8k, desc=pflash_pipeline
INF: ;begin_cs device=$00000000, length=$00008000, ram=$20000000
INF: Loading programming algorithm ...
INF: Error loading .ARP file : C:\Freescale\CW MCU
v10.5\MCU\bin\Plugins\support\arm\gdi\P&E\kl05z32m4_pflash_pipeline.arp at
address 1FFFFC00
ERR: Error loading programming algorithm - load aborted.
ERR: Error occured during Flash programming."

Then I did the same experiment using Keil. Here I am getting Error 18


Programming Address $00000000Error during programming.


Error 18 during scripting.     

The $0000000 is the ON-CHIP IROM1 area. How do i manipulate that.

Kindly help me out.,



Vinod.



Outcomes