element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Forum Serial communication to a linux host ?
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 2 replies
  • Answers 1 answer
  • Subscribers 7 subscribers
  • Views 672 views
  • Users 0 members are here
  • serial
  • kl25z
  • communication
  • linux
Related

Serial communication to a linux host ?

Former Member
Former Member over 12 years ago

Hi.

I'm programming a KL25z and I've been following this tutorial:

Tutorial: printf() and “Hello World!” with the Freedom KL25Z Board (http://mcuoneclipse.com/2012/10/14/tutorial-printf-and-hello-world-with-the-freedom-kl25z-board/ ) that works well with windows, but I'm having problem connecting it to Linux (linux Mint in my case).

 


When I connect the usb to my linux host, all works well, the board starts running and I get this into the terminal:

 

sudo lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 023: ID 13d3:5122 IMC Networks

Bus 002 Device 004: ID 1bcf:0535 Sunplus Innovation Technology Inc.

Bus 002 Device 014: ID 1357:0707 P&E Microcomputer Systems





But a few seconds later, this disappears from lsusb, coming back to:

 

 

sudo lsusb

 

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 023: ID 13d3:5122 IMC Networks

Bus 002 Device 004: ID 1bcf:0535 Sunplus Innovation Technology Inc.

 

 

dmesg

 

[11938.661154] usb 2-1.1: new full speed USB device number 14 using ehci_hcd

 

[11938.756539] cdc_acm 2-1.1:1.0: This device cannot do calls on its own. It is not a modem.

[11938.756568] cdc_acm 2-1.1:1.0: ttyACM0: USB ACM device

[11938.757754] scsi8 : usb-storage 2-1.1:1.2

[11939.757729] scsi 8:0:0:0: Direct-Access     FSL      FSL/PEMICRO MSD  0001 PQ: 0 ANSI: 4

[11939.796222] sd 8:0:0:0: Attached scsi generic sg2 type 0

[11939.797600] sd 8:0:0:0: [sdb] 1983999 512-byte logical blocks: (1.01 GB/968 MiB)

[11939.798542] sd 8:0:0:0: [sdb] Write Protect is off

[11939.798550] sd 8:0:0:0: [sdb] Mode Sense: 00 00 00 00

[11939.799132] sd 8:0:0:0: [sdb] Asking for cache data failed

[11939.799141] sd 8:0:0:0: [sdb] Assuming drive cache: write through

[11939.803076] sd 8:0:0:0: [sdb] Asking for cache data failed

[11939.803083] sd 8:0:0:0: [sdb] Assuming drive cache: write through

[11939.813864]  sdb:

[11939.816261] sd 8:0:0:0: [sdb] Asking for cache data failed

[11939.816268] sd 8:0:0:0: [sdb] Assuming drive cache: write through

[11939.816274] sd 8:0:0:0: [sdb] Attached SCSI removable disk

[11970.395036] usb 2-1.1: reset full speed USB device number 14 using ehci_hcd

[11970.466911] usb 2-1.1: device descriptor read/64, error -32

[11970.642813] usb 2-1.1: device descriptor read/64, error -32

[11970.818630] usb 2-1.1: reset full speed USB device number 14 using ehci_hcd

[11970.890387] usb 2-1.1: device descriptor read/64, error -32

[11971.066395] usb 2-1.1: device descriptor read/64, error -32

[11971.242035] usb 2-1.1: reset full speed USB device number 14 using ehci_hcd

[11971.649604] usb 2-1.1: device not accepting address 14, error -32

[11971.721587] usb 2-1.1: reset full speed USB device number 14 using ehci_hcd

[11972.129153] usb 2-1.1: device not accepting address 14, error -32

[11972.129768] sd 8:0:0:0: Device offlined - not ready after error recovery

[11972.129782] sd 8:0:0:0: [sdb] Unhandled error code

[11972.129787] sd 8:0:0:0: [sdb]  Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK

[11972.129794] sd 8:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 01 20 00 00 08 00

[11972.129810] end_request: I/O error, dev sdb, sector 288

[11972.129816] Buffer I/O error on device sdb, logical block 288

[11972.129823] Buffer I/O error on device sdb, logical block 289

[11972.129828] Buffer I/O error on device sdb, logical block 290

[11972.129832] Buffer I/O error on device sdb, logical block 291

[11972.129837] Buffer I/O error on device sdb, logical block 292

[11972.129842] Buffer I/O error on device sdb, logical block 293

[11972.129846] Buffer I/O error on device sdb, logical block 294

[11972.129851] Buffer I/O error on device sdb, logical block 295

[11972.129943] usb 2-1.1: USB disconnect, device number 14

[11972.129963] sd 8:0:0:0: rejecting I/O to offline device

[11972.129999] sd 8:0:0:0: rejecting I/O to offline device

[11972.130018] sd 8:0:0:0: rejecting I/O to offline device

[11972.130035] sd 8:0:0:0: rejecting I/O to offline device

[11972.130051] sd 8:0:0:0: rejecting I/O to offline device

[11972.130068] sd 8:0:0:0: rejecting I/O to offline device

[11972.130084] sd 8:0:0:0: rejecting I/O to offline device

[11972.130101] sd 8:0:0:0: rejecting I/O to offline device

[11972.130164] sd 8:0:0:0: rejecting I/O to offline device

[11972.130175] sd 8:0:0:0: rejecting I/O to offline device

[11972.285511] usb 2-1.1: new full speed USB device number 15 using ehci_hcd

[11972.357438] usb 2-1.1: device descriptor read/64, error -32

[11972.532802] usb 2-1.1: device descriptor read/64, error -32

[11972.708843] usb 2-1.1: new full speed USB device number 16 using ehci_hcd

[11972.780785] usb 2-1.1: device descriptor read/64, error -32

[11972.956386] usb 2-1.1: device descriptor read/64, error -32

[11973.132437] usb 2-1.1: new full speed USB device number 17 using ehci_hcd

[11973.539815] usb 2-1.1: device not accepting address 17, error -32

[11973.611982] usb 2-1.1: new full speed USB device number 18 using ehci_hcd

[11974.019354] usb 2-1.1: device not accepting address 18, error -32

[11974.019616] hub 2-1:1.0: unable to enumerate USB device on port

 

I've installed PemicroLinuxDrivers_2012_09_06.tar from http://www.pemicro.com/opensda/index.cfm but everything remains the same. All I want is a bidirectional connection between my linux host and my kl25z.

 

Could you help me?

Thanks.

  • Sign in to reply
  • Cancel
  • FreescaleTools_and_Software
    0 FreescaleTools_and_Software over 11 years ago

    Hello mickkelo

    Just a quick message to warn you that Pemicro has updated its SDA Application files package

    According to the release notes of the v112 :

    "Changes:

    MSD version 1.12

    - added Linux and MAC support"

    May be it will solve your problem ... keep us updated please

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bheemarao
    0 bheemarao over 11 years ago in reply to FreescaleTools_and_Software

    Hi

     

    I tried serial communication with KL46Z board with the pre-compiled example downloading from below link:

    http://www.element14.com/community/docs/DOC-64227/l/freescale-precompiled-examples-for-frdm-kl46z-freedom-development-platform

     

    i flashed the LCD program in MSD program mode by copy pasting the "sLCD_freedom_freedom.srec" file to the "FRDM-KL46Z" folder detected from linux machine. i configured the serial terminal with "minicom" with baud rate of 115200, 8N1 and i could see the terminal working.

    image

    Regards

    Bheema

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube