FRDM-K66F Connect EVK flash loader over UART

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

FRDM-K66F Connect EVK flash loader over UART

2,490 Views
nhitpad
Contributor II

Hi 

 I want to using UART to program the EVK.   But unable to connect to UART for programming. 

Here if the Job I already finish.

1. I Programming the flashloader example into the EVK over Jlink. 

2. I able to connection the EVK over USB port and programming it over KinetisFlashTool.

3. I can programming the FW to the start address as 0xa000 over USB port. 

4. I trying  connect to the EVK over openSDA port  with UART mode and I also can get the COMPORT device form the laptop. But When I try to connect it over serial port it will always show :

        Error: Connect device failed(Error: Initial ping failure: No response received for ping command.). 

The purpose for me is I want to programming the  FW over UART.
PS: 

I check the UART port configuration of the SDK example and EVK schematic is set the openSDA SDK port as PTB16 and PTB17. 

 

Thanks 
Kent Yeh

 

0 Kudos
Reply
11 Replies

2,479 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Kent Yeh,

Please download the frdmk66f_freedom_bootloader to FRDM-K66F board. Then you should be able to connect the FRDM-K66F with it's UART(OpenSDA J26)

Target Address 0x0000A000.png

The frdmk66f_freedom_bootloader can be found under this folder: \SDK_2_10_0_FRDM-K66F\boards\frdmk66f\bootloader_examples

Best Regards,
Robin

0 Kudos
Reply

2,459 Views
nhitpad
Contributor II

Hi, Robin 

   Thanks for response. I tried with the example code both for SDK 2.9.0 and 2.10. both of them is not available for me. Does there have any JMP I need to changed 

Here is the parameter what I used:

SDK 

 PIC1.png

 

PIC2.png

EVK and connection:

WeChat Image_20220117115302.jpgWeChat Image_20220117115309.jpg 

 

Thanks

Kent Yeh

 

0 Kudos
Reply

2,454 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please update DAPLink bootloader and firmware (0244_K20DX_FRDMK66F_0X8000.BIN

) of the OpenSDA on FRDM-K66F.

DETAILS.png

Check if serial port of OpenSDA can communicate properly, for example by running a UART routine.

2.4 PC Configuration Get Started with the FRDM-K66F.png

0 Kudos
Reply

2,441 Views
nhitpad
Contributor II

Hi , Robin  

I tried  stop the service and programming the   0244_K20DX_FRDMK66F_0X8000.BIN into the address of 0x0000000 and 0x0008000

      service.png

pic4.png

But still failure.  with device connection:

Could you give me your test Firmware, I can verified is it  hardware issue 

 

Thanks 
Kent Yeh

 

0 Kudos
Reply

2,418 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

You can direct drop 0244_K20DX_FRDMK66F_0X8000.BIN (firmware application of K20 on FRDM board) into driver of FRDM. I just want to ensure the serial port of OpenSDA(K20) is working well.
After download the frdmk66f_freedom_bootloader to FRDM-K66F board, you should able to connect it by using KinetisFlashTool.

0 Kudos
Reply

2,405 Views
nhitpad
Contributor II

Hi, Robin 

    Could you specific tell me how to drop the bin file into the driver of FRDM.

The attachment is the image what I built on my side

Kent Yeh

0 Kudos
Reply

2,395 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

About how to drop the bin file, please refer: OpenSDAv2

0 Kudos
Reply

2,365 Views
nhitpad
Contributor II

Hi, Robin 

   I've update the  0244_k20dx_bl_0x8000.bin  file base on the stage of SDA update . 

but it's look like malfunction after update it. I can not power the module after connect the SDA port, 

Could you tell me how I can repair it

Thanks 

Kent Yeh

Tags (1)
0 Kudos
Reply

2,358 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Please tell me the state of your board.

state.png

0 Kudos
Reply

2,298 Views
nhitpad
Contributor II

Hi ,Robin 

  Now it can not be power on when I connect the SDA USB to my lap. 

Therefore. nothing will happen after I press the reset button. 

I also try to give module power over USB port. it can be power on but also without any response on the first stage ( Holding the reset  button then connect to my lap top).

 

Kent Yeh

0 Kudos
Reply

2,195 Views
nhitpad
Contributor II

Base on the operations , the board is crashed. And I can not get any help to fix it now.

Tags (1)
0 Kudos
Reply