10 years, 11 months ago.

Can the KL25Z function as USB Host using mbed libraries?

I have a FRDM-KL25Z board arriving in a few days and I would like to use it as a USB Host. Unfortunately it seems like the mbed official USBHost library (http://mbed.org/handbook/USBHost) only supports the LPC1768.

According to a post from 10 months ago (http://mbed.org/questions/573/USB-Host-for-frdm-kl25z/) there were no plans to add support for the KL25 due to non compliance with the USB OHCI specification. However, the product brief for the KL24/25 MCUs claim this (http://cache.freescale.com/files/32bit/doc/prod_brief/KL25PB.pdf): • Supports enhanced-host-controller interface (EHCI) • Allows direct connection of FS/LS devices without an OHCI/UHCI companion controller

I'm not very familiar with USB specifications, but I think it should be possible to use the KL25Z as a USB Host. I found a blog post detailing some issues with using Freescale's CodeWarrior IDE to program the KL25Z as a USB Host (http://mcuoneclipse.com/2013/03/02/usb-msd-host-for-the-freedom-board/), where the author was able to get it running after making sure the USB cable had a 5v source (the board, or at least the revision he used, has a bug that prevents 5v from being supplied to the USB port). Also, according to the same author this bug is fixed in KL25Z revision E (http://mcuoneclipse.com/2013/06/09/frdm-kl25z-reve-board-arrived/).

My questions are:

-Has anyone used the KL25Z as a USB Host with the mbed libraries/compiler? If so, how?

-If not, are there any plans to add support for this in the near future (either through the official USBHost library or otherwise)?

-Somewhat related: Does the KL26Z (which seems to have better USB functionality) work with mbed? I don't see it listed anywhere, but I think it's mostly pin compatible with the KL25Z.

Thanks,

Sam

I can't answer usb host problem ,but KL26Z is not yet supported. I am planning to add it later along with other freedom boards. I have my personal notepad which collects info about the freedom platform on mbed.

posted by Martin Kojtal 14 Jan 2014

It's good to hear that someone is working on porting the other Freedom boards to mbed, they're really cheap and have a lot of nice features. The K20, KL26 and KL46 boards would be a great addition to the mbed platform.

posted by Samuel Pullman 14 Jan 2014

I am also looking for similar functionality to make use of cheap Bluetooth dongle interfaced with KL-25Z. Did anybody try it?

posted by Gitesh Kulkarni 08 Jul 2014
Be the first to answer this question.