USB MSD Host Bootloader on KL25 (Freedom)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB MSD Host Bootloader on KL25 (Freedom)

2,536 Views
mindthomas
Contributor I

Hi Freescale community.

I have received the KL25 Freedom board a while ago but did only play with it a little bit within the Codewarrior IDE.

We have now dug it out from the dust as we would like to play a bit with the USB Host functionality of the KL25 processor.

We have read the "USB Mass Storage Device Host Bootloader" application note (AN4368) and found that pretty interesting so we would like to try the same on the inexpensive Freedom board.

The application note describes how to compile and use the bootloader on the Kinetis family (Kinetis K60 in the example provided) but we would like to port it to the KL25.

Do you think this would be a difficult task?

We have already started on the porting but have run into some newcomer problems as "DisableInterrupts;" doesn't exists and some FTFL and FMC registers are undeclared too.

So is it possible to get this application note running on the Freedom board and how much hassle would it require?

Thank you for your time in advance.

Best Regards

Thomas Jespersen

Labels (2)
0 Kudos
11 Replies

191 Views
sNilesh
Contributor III

Hi Thomas,

Freescale has nice documentation and you can try to see OpenSDA.

I think this what are you looking for : http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf?fpsp=1

If any technical issue , we can solve it online for you.

Nilesh

-----------

Potent (Freescale - DAP)

0 Kudos

191 Views
frankvanhooft
Contributor III

You're suggesting we maybe port OpenSDA onto the KL25, instead of porting the Freescale USB stack per-se?

(Let's be totally clear here - we want the USB MSC bootloader running on the KL25. We're not trying to recreate the freedom eval board here, which contains 2 processors (one running OpenSDA and the second being the KL25).)

Many thanks.

0 Kudos

191 Views
sNilesh
Contributor III

Hi ,

I just simply thinking , if using K series thing has be done , then why we can not do using L Series.

Let me get into it. We will make it working complete USB MSC boot-loader which can run on KL25.

After finish will release file to you.

0 Kudos

191 Views
mindthomas
Contributor I

Hi.

I am a bit worried that no one replied before too, but great to see some action.

To you Nilesh, I just want to make sure that we are talking about the MSC HOST bootloader - it is very important that it is the host demo, using a memory stick attached to the Freedom board for firmware upgrading.

I guess this will require some hardware modding to apply 5V to the USB connector output, but then it should work.

Thanks a lot.

Best Regards

Thomas Jespersen

0 Kudos

191 Views
sNilesh
Contributor III

Hi,

Thanks for making task clear. We have worked on various platform for USB-Host , so basic topology and functioning of the same we know very well. Also we have worked on Freescale tower board for

USB host functionality.

Let's go step by step.

1. Yes , Need to change hardware to  integrate with pend-drive(memory stick)

    we will manage it.

We will update you for action list and progress.

Regards,

Nilesh

0 Kudos

191 Views
zhangqiang
Contributor I

How is the project going on? I'm looking forward to this function.

0 Kudos

191 Views
mjbcswitzerland
Specialist V

Michael

For people requiring USB-MSD host (memory stick loading) for any Kinetis parts with USB, including KL25, there is a complete solution available at http://www.utasker.com/kinetis.html

This has been verified with a large variety of memory sticks and has proven to be compatible with all up to now and it also allows USB-MSD device or USB-MSB host mode to be used at the same time (it detects whether a host or device is attached and operates in the appropriate mode).

Documentation at http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

It can be built with CW10.x, KDS, IAR, Keil, Atollic, Crossworks, Green Hills, CooCox, stand-alone GCC or VisualStudio, where the operation can be simulated, so customisation is simple and needs no porting.

Note that host loading using the FRDM-KL25Z is not that practival since the connections used are designed to work only as device (they are designed to specifically not allow host mode connection) so one needs to either change the connector or make up a special cable.

Regards

Mark

0 Kudos

191 Views
BlackNight
NXP Employee
NXP Employee

See USB Host Mode Hack for the Freedom KL25Z Board | MCU on Eclipse how to use the board for USB Host mode.

Erich

0 Kudos

191 Views
sNilesh
Contributor III

Hi Erich,

Thanks , we gone through it. This will be useful.

Regards,

Nilesh

0 Kudos

191 Views
JimDon
Senior Contributor III

No they are not dead, just right now no one had the answer. I recommend submitting the question to technical support.

0 Kudos

191 Views
frankvanhooft
Contributor III

I'm very interested in this as well. A big part of why we're migrating to the KL25 is due to the possibility of having a mass-storage class bootloader. That would be a powerful feature for easy firmware upgrades by our customers. It's rather worrying that's it's been a week since Thomas posted this question and not a single Freescale person has replied. Are these forums dead?

0 Kudos