SWD problem on MKE04

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SWD problem on MKE04

跳至解决方案
4,469 次查看
lucaag
Contributor III

Hello everybody.

 

I'm facing a problem when trying to connect to a new board which is mounting a MKE04 kinetis microcontroller.

I've already posted another question regarding the reset pin connection, but the problem could also be done to something in the setting of CW environment.

 

In paticular, when I try to program the device through the SWD I get these messages:

 

 

INF: CMD>RE

 

INF: Initializing.

 

INF: Target has been RESET and is active.

 

INF: CMD>CM C:\Freescale\CW MCU v10.6.4\MCU\bin\Plugins\support\arm\gdi\P&E\ke04z128m4_pflash_pipeline.arp

 

INF: Initializing.

 

INF: Error loading .ARP file : C:\Freescale\CW MCU v10.6.4\MCU\bin\Plugins\support\arm\gdi\P&E\ke04z128m4_pflash_pipeline.arp. Set PC and Run Error.

 

ERR: Error loading programming algorithm - load aborted.

 

ERR: Error occured during Flash programming.

 

INF: WARNING - NO RESET SCRIPT FILE HAS BEEN CONFIGURED TO RUN!!!

 

INF: TO MODIFY THE RESET SCRIPT SETTINGS, USE THE FOLLOWING MENU OPTION:

 

INF: CONFIGURATION -> AUTOMATED SCRIPT OPTIONS

 

I was convinced it was an HW problem, but I'm not so sure. As reference I post part of the schematic.

 

Any help really appreciated

 

Thank you in advance,

 

Luca

标签 (1)
0 项奖励
回复
1 解答
4,277 次查看
lucaag
Contributor III

SOLVED

Hello and many thanks to kind people who answered to me.

It was a problem on the board: I've used the NMI pin as output as its alternate function capability, but being tied down it was blocking the CPU programming.

Thanks,

LUCA

在原帖中查看解决方案

0 项奖励
回复
4 回复数
4,278 次查看
lucaag
Contributor III

SOLVED

Hello and many thanks to kind people who answered to me.

It was a problem on the board: I've used the NMI pin as output as its alternate function capability, but being tied down it was blocking the CPU programming.

Thanks,

LUCA

0 项奖励
回复
4,277 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Luca,

About the hardware problem on your another question, the hardware expert will help you .

Here i can help you check the configure On cw.

On cw , please select Use SWD option :

pastedImage_0.png

Please also take a screenshot about the configuration on your side .

Hope it helps

Alice

4,277 次查看
lucaag
Contributor III

Thank you very much Alice, you're very kind.

I attach some screenshot of my configuration, and the error message that

CW gives back.

I double checked the HW and everything seems to be ok. I see the reset

pin moving before I connect the programmer, but since it starts, I see

the signal stable. I've also verified the CLK end DATA arrive on the

board connector.

Where do I find the SWD option in CW environement?

The project has been created with the standar wizard, using the option

of "Bareboard Project"

Thank you in advance,

Luca

Il 23/05/2016 05:12, Alice_Yang ha scritto:

>

NXP Community

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

>

SWD problem on MKE04

reply from Alice_Yang

<https://community.freescale.com/people/Alice_Yang?et=watches.email.thread>

in /CodeWarrior Development Tools/ - View the full discussion

<https://community.freescale.com/message/652871?et=watches.email.thread#comment-652871>

>

0 项奖励
回复
4,277 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Luca,

I recommend you first create one simple project to test ,

and please check here :

pastedImage_0.png

BR

Alice

0 项奖励
回复