Unable to program KL25Z with PE Multilink

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to program KL25Z with PE Multilink

4,819 Views
jaluna
Contributor II

Dear friends,

we need help with our first KL25Z128 custom board, we are unable to program using the "PE Multilink Universal". For the CPU, we have based our design in the FRDM-KL25Z (see attached sch, please). We can program the  FRDM-KL25Z using the Multilink (J6 header) but not our board. Any help will be appreciated.

As difference, note:

- we don't have mounted external clock

- reset pin, 0.1 uF instead (also tested with1 uF)

The progammer have the following lines connected, as the FRDM-KL25Z:

- VCC

- GND

- SWD_DIO_TGTMCU

- RST_TGTMCU

- SWD_CLK_TGTMCU

Thank you,

Juan A Luna

Labels (1)
Tags (2)
19 Replies

3,494 Views
jaluna
Contributor II

More info:

When I plug the Multilink to my board (that have only the mcu and power) the voltage to Reset pin goes low permanently.

Regards,

Juan A


0 Kudos
Reply

3,495 Views
jaluna
Contributor II

I'm using a custom connector, the same that have worked fine with the FRDM board.

5 lines: TVCC, GND, /RESET, TMS and TCK (names in Port G)

Thank you

0 Kudos
Reply

3,495 Views
jaluna
Contributor II

Dear all,

We have received a new PE Multilink Universal. Now we can program the FRDM-KL25Z but only if the jumper J11 is joined!!! We have verified that we cannot program FRDM-KL25Z if we remove the jumper (the track has been cutted in bottom). So the question is how to translate this programing scenario to our custom board (that of course, don't have opensda) ?

Ok, I have checked  the sch, is normal!

But we still unable to program our custom board.

Any help will be appreciated. Must be a hadware issue.


Regards,

Juan A


0 Kudos
Reply

3,495 Views
LuisCasado
NXP Employee
NXP Employee

Hi Juan,

J11 is explained in the FRDM board User Manual:

http://cache.freescale.com/files/32bit/doc/user_guide/FRDMKL25ZUM.zip?fpsp=1

 

5.2.1 Debug Interface

 

  For your custom hardware, you only have to ignore the openSDA circuit. Implement the figure 5 of the FRDM UM, connecting PIN 4 to  SWD_CLK, PIN 2 to  SWD_DIO and pin 10 to  RESET.

Best Regards,

Luis

0 Kudos
Reply

3,495 Views
LuisCasado
NXP Employee
NXP Employee

Hi again,

Yes, As Jim said, if you are using 6 pin connector, just change the same lines to the right pins.

Luis

0 Kudos
Reply

3,495 Views
jaluna
Contributor II

Yes, we have based on it. Please, check sch on first post.

Thank you

0 Kudos
Reply

3,495 Views
JimDon
Senior Contributor III

Your first post shows a 6-pin connector instead of the 10 pin one, so it is not possible for anyone but you to know it is correct.

You, of course did not connect pin 10 to RESET since a 6 pin connector does not have this pin.

0 Kudos
Reply

3,495 Views
JimDon
Senior Contributor III

Since you seem to have used the 6-pin connector (port c) instead of the 10 pin (port g) (the one Kenitis) , perhaps that is why you can not connect to your board?

0 Kudos
Reply

3,495 Views
jaluna
Contributor II

I'm using Port G.

Thank you.

0 Kudos
Reply

3,495 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

What is the error you have? Have you tried a mass erase with CW flash programmer?

Regards,

Luis

0 Kudos
Reply

3,495 Views
jaluna
Contributor II

The error is

Description:

Error launching Project_FLASH_PnE U-MultiLink, ARM GDI Protocol Adapter : Can't connect. The Debugger can not connect to the P&E device

Regards,

Juan A.


0 Kudos
Reply

3,495 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

That problem is not related with your custom board. You can not connect with debugger, not with target.

Ok, Try the following. Use any project working in the FRDM board and verify that you can debug in FRDM. Then, switch to your custom hardware and connect debugger and power the custom hardware.

Force mass erase on connection:

scr4.bmp

Luis

0 Kudos
Reply

3,495 Views
jaluna
Contributor II

Yes, I think you are right. I cannot connect to FRDM board...

Added: Using the "Open SDA" in FRDM the error is the same. It seems a CW 10.3 problem.

Juan A

0 Kudos
Reply

3,495 Views
antonioconcio
NXP Employee
NXP Employee

Hi Juan,

Did you install P&E driver? You can found it here (hyperlink.).

Edit: sorry I have seen now that it works with freedom.

Antonio

0 Kudos
Reply

3,495 Views
jaluna
Contributor II

Hi Antonio,

thanks for your message, yes I have installed it. But I think the problem is the Multilink itself. I have ordered a new one for test again.


Regards,

Juan A

0 Kudos
Reply

3,495 Views
antonioconcio
NXP Employee
NXP Employee

Ok, keep us updated.


Antonio

3,495 Views
jaluna
Contributor II

Dear Luis,

the problem is (not textual) "unable to connect to target". I don't have tried a "CW flash programmer", where can we find it?

We use CW 10.3

Regards,

Juan A. Luna


0 Kudos
Reply

3,495 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

scr.bmp

scr2.bmp

You can also enable log in the connection to know more about what is happening.

scr3.bmp

Luis

0 Kudos
Reply

3,494 Views
jaluna
Contributor II

Hello Luis,

thanks for your help!

I'm in the task to apply your suggestion. But I get attached error when trying to run the task.


CW-Error.PNG

Regards,

Juan A.

0 Kudos
Reply