Port USB Mass Storage Device Bootloader AN4379 for the TWR-K60 project to the IAR EWB

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

Port USB Mass Storage Device Bootloader AN4379 for the TWR-K60 project to the IAR EWB

2,136 Views
DaveTonyCook
Contributor IV

I need to implement the USB MSD device bootloader on a custom board based on the K24FN1M device under the IAR toolchain.   This is what I think I should do:

1.  Port AN4379 for the TWR-K60 project to the IAR EWB - Does anyone have a guide for doing this

2.  Port TWR-K60 to the TWR-K64 -  This I can do no prob

3.  Port TWR-K64 to my custom board K24 - This also

Any advise on versions of the bootloader / usb stack I should use / any gotchas?

Any signposting would be welcome

Thanks

Labels (2)
7 Replies

1,216 Views
mjbcswitzerland
Specialist V

Hi Abhishek

Try loading the binary from http://www.utasker.com/kinetis/TWR-K60D100M.html to your board to verify its operation.

It will allows you to the USB-MSD operation as well as KBOOT on USB and UART, plus loading from an SD card.

If it works as expected it will prove that your HW is OK and you will need to work out what is failing in the SW. If it doesn't work as expected it will point to an issue with your HW instead.

Regards

Mark

0 Kudos

1,216 Views
abhishekhalivan
Contributor I

Hello Jorge_Gonzalez,

Thank you for your prompt answer.

Though the TWR-SER jumpers are configured properly. It's not working. May be issue is something else. Even my USB device demo code is also not working..

Regards!

Abhishek

0 Kudos

1,216 Views
abhishekhalivan
Contributor I

Hello Jorge_Gonzalez

I tried this this IAR version of AN4379 bootloader for the TWR-K60D100M, But it is failing at enumeration. Is there any suggestion or perquisites for USB related to the enumeration.

0 Kudos

1,216 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Abhishek Halivan:

It is working from my side. Please check that the TWR-SER jumpers are configured for device mode:

J16: 3-4

J10: 1-2

Also, when there is already an application loaded to the K60, you need to press SW1 before powering the board (e.g. before connecting the USB cable to TWR-SER), otherwise the execution will bypass the bootloader and jump directly to the application.

Regards!

Jorge Gonzalez

0 Kudos

1,216 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello David:

Besides of the good suggestions by Ma Hui and Mark, attached there is an IAR version I made of AN4379 bootloader project for the TWR-K60D100M in case you want to use it as reference.

I hope you find this useful.

Regards!

Jorge Gonzalez

1,216 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

NXP provides Kinetis Bootloader software for K64 product, which includes USB HID bootloader.

The Kinetis bootloader software project uses IAR & KDS IDE.

The Kinetis bootloader USB Stack is original from Kinetis-SDK software.

Customer could download the KSDK V1.3 software for the reference.

About porting CodeWarrior Project to IAR IDE, customer could refer Kinetis 100MHz Rev 2 Example Projects​ as a platform project.

Using this IAR platform project to add related code to this project.


Wish it helps
Have a great day,
Ma Hui

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

0 Kudos

1,216 Views
mjbcswitzerland
Specialist V

Hi

You can get USB-MSD loaders (including composite KBOOT) for all Kinetis parts from:

http://www.utasker.com/kinetis.html

For K24:

- http://www.utasker.com/kinetis/TWR-K24F120M.html

This includes an IAR target (as well as CW, KDS, Keil, Atollic, CooCox, Green Hills, Rowley Crossworks) so there is no development/porting requirement for professional use and represents an industrially proven solution adopted by many Kinetis based products.

Direct e-mail/Tel. support if required and Kinetis device/USB simulation for testing custom modifications and simplifing code reviews. MAC OS X, Win 8.1 etc. compatible.

Documented: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF

Regards

Mark