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:
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.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.