How to connect to the serial port of TWR-K60D100M from Linux

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

How to connect to the serial port of TWR-K60D100M from Linux

1,735 Views
pablomolina
Contributor II

Hi,

I am new to developing with freescale so I was hoping someone could point in the right direction.

I am trying to get the "hello-world" example in KSDK 1.1 with the TWR-K60D100M device.

I programmed and started the debugging and it seems to be operating correctly.

My problem is on connecting to the serial device in linux.

The guides describe how to achieve this using Windows but not Linux.

I did downloaded the P&E Micro drivers (which are really just a udev rule to setup the device)

I am also using putty on Ubuntu 12.04 and I cannot connect to the serial device (and hence cannot see the "hello-world" output that is supposed to happen)

Most linux devices will come up on /dev/ttyUSBX... but this device appears to show up on /dev/bus/usb/001/XXX

When I attempt to connect to /dev/bus/usb/001/XXX the connection always fails

Any feedback on how to connect to the serial device?


Thank you

Labels (2)
Tags (3)
4 Replies

1,119 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Mark,

Thanks for sharing the solution!

Hi Pablo,

Is this issue fixed with Mark's solution?

Best Regards,

Kan

0 Kudos

1,119 Views
pablomolina
Contributor II

Hi,

I finally got it working in Windows and not in linux

I had to switch to Windows to make sure that my board was working at least.

@Mark: To answer your question the example I was using (in the demo folder called "Hello World" uses the UART5

I indeed installed the P&E USB drivers.

The main problem is that the guides are all outdated. The P&E drivers do not expose the device as a virtual COM port - When the device is connected, it does not show up on device manager as a COM port (the guides say that it should...)

The serial appears visible only when using the "TerminalWindow.exe" which comes bundled only for Windows in the P&E Micro OSJTAG virtual COM toolkit.

I am glad I decided to switch to windows :smileyhappy:

I still do not know what to do for linux - there are drivers from P&E Micro - but they are not real drivers but just udev rules, so I am not quite sure how to proceed.

I am a linux developer and all of our other code runs on Linux so I will prefer if I could develop in Linux

Any ideas or feedback will be appreciated.

Thanks,

0 Kudos

1,119 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Pablo,

As you mentioned "The main problem is that the guides are all outdated. The P&E drivers do not expose the device as a virtual COM port", it reminds me some view when I played with TWR-K60D100M before, it looks like a firmware issue, you have to upgrade the firmware of OSJTAG ,please kindly refer to P&E Microcomputer Systems for more details.

Hope that helps,


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,119 Views
mjbcswitzerland
Specialist V

Hi Pablo

The serial connection is not any different on Linux to any other OS.

The first thing that you need to know is which UART the program is sending on:

- If on UART5 it is connected to the the OSJTAG virtual COM port

- If on UART3 it will be connected to the TWR-SER board's RS232 connector

In the first case if you install the P&E USB driver for linux you will receive at the terminal emulator

In the second case you need to connect with RS232 on the tower's serial card. (In case you don't have a serial board you will need to reconfigure to use UART5 instead of UART3).

Regards

Mark

Kinetis: µTasker Kinetis support

K60: µTasker Kinetis TWR-K60N512 support / µTasker Kinetis TWR-K60D100M support / µTasker Kinetis TWR-K60F120M support

CAN: http://www.utasker.com/docs/uTasker/uTaskerCAN.PDF / FlexCAN.wmv - YouTube

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