Fail to connect TWRK22F120M

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

Fail to connect TWRK22F120M

1,312 Views
b03922
NXP Employee
NXP Employee

Hi All,

When I follow the guide "Demo Application User's Guide for the FRDM-K22F and TWRK22F120M Freescale Platforms" to connect TWRK22F120M, it can show in device manager but can't be ping with "blhost.exe" command. Nor does connect by KinetisUpdater.exe.

I'm just wondering if the driver has been setup correctly. But everything are shown in device manager. I'm puzzeld on the failure...

blhost fail.pngKinetisUpdater.exe fail.png

0 Kudos
Reply
5 Replies

1,053 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Yanhui Liu:

Sorry for the delay.

Can you share your jumper configuration? In particular the setting of jumpers J29 and J30 should be pins 2-3 shorted when using the TWR-K22 in standalone mode (without the elevators).

Your problem is indeed strange. I tried from my side with a TWR-K22F120M and it worked with both: blhost and Kinetis Updater. See below:

K22_KBOOT.png

Regards!

Jorge Gonzalez

0 Kudos
Reply

1,053 Views
b03922
NXP Employee
NXP Employee

Hi Jorge Gonzalez,

Thank you to take this question.

I double checked the jumper configuration, especially the J29 and J30. They’re with 2-3 shorted. The other jumpers are in default; same as guide.

I tried to debug with the OpenSDA usb on IAR and it can work. I believe it’s connected.

But I’m still puzzled on the blhost and Kinetis Updater.

Thanks.

-James

0 Kudos
Reply

1,054 Views
mjbcswitzerland
Specialist V

Hi

Maybe there is a problem with the software that you are loading to the TWR-K22F120M.

Try with the version from here: µTasker Kinetis TWR-K22F120M support to see whether it behaves differently (also try the USB mode in case you still have problems with UART) - you can see when the loader is operaring correctly since the green LED will flash at 5Hz.

Regards

Mark

Kinetis: µTasker Kinetis support

K22: µTasker Kinetis FRDM-K22F support  / µTasker Kinetis TWR-K22F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
Reply

1,054 Views
b03922
NXP Employee
NXP Employee

Hi Mark,

After drag the file “uTaskerV1.4.8_TWR-K22F120M” to device “TWR-K22F120”, the TWRK22F120M twinkle with LED7 (Green) at speed 5Hz.

I’ve no 3v power supply to power up the board at this time, so I haven’t tried USB mode.

It’s really strange that I can debug program at IAR via OpenSDA but can’t use blhost command to ping it…

Do you have any other idea? Anyway, it’s not a urgent request. ☺

Thanks.

-James

0 Kudos
Reply

1,054 Views
mjbcswitzerland
Specialist V

James

If you loaded the serial loader code via OpenSDA and the LED blinks at the expected speed the software is running correctly.

This will respond to KBOOT UART messages (57'600Baud) on UART 1 (the Open SD CDC connection) and also via USB (in addition it appears as a disk drive to the PC when conneted via USB).

You can use USB by simply connecting the USB cabe to the alternative USB socket (rather than the OpenSDA one) - this also supplies power to the board.

If you don't get KBOOT response on the UART you need to measure the signal to check that there is no break in the tracks and that the signals are not distorted or the Baud rate is (for some reason) not correct. You should get USB response even f there is a HW problem with the UART.

Regards

Mark

Kinetis: µTasker Kinetis support

K22: µTasker Kinetis FRDM-K22F support  / µTasker Kinetis TWR-K22F120M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 Kudos
Reply