MKL46Z USB code to connect with USB memory stick

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

MKL46Z USB code to connect with USB memory stick

891 Views
marceli1
Contributor III

I am looking to for USB driver code sample to use with any USB memory stick in mine MKL46Z256LL4 chip, to stream large data into. Is it possible to make driver in CodeWarrior Processor Expert?

Labels (1)
Tags (1)
0 Kudos
2 Replies

604 Views
isaacavila
NXP Employee
NXP Employee

Hello Marceli,

Unfortunately, there is no USB solution for KL46Z in CW (Only for KL25Z in USB Baremetal Stack v4.1.1) so you will need to use KDS and KSDK drivers as well.

You will need to download KSDK package for KL46Z in this page (SDK builder option): Software Development Kit for Kinetis MCUs|NXP  and after download is completed, you can find these examples at: C:\Freescale\KSDK_2.0\SDK_2.0_FRDM-KL46Z\boards\frdmkl46z\usb_examples and pay special attention to usb_host_msd_fatfs example.

Hope this helps!

Regards,

Isaac

0 Kudos

604 Views
mjbcswitzerland
Specialist V

Hi Marceli

I don't know whether PE can generate such code, or whether it is then operational or not. There is however a USB host memory stick example in the MQX package - usually the examples are initially only operational on one procesor with a pre-defined IDE but you may be able to port it with some understanding and patience to your device and environment.

There is also USB host memory stick support and integrated utFAT for your device (and almost all other Kinetis parts) which can be used with any IDE (KDS, CW, IAR, Keil, Rowley, CooCox, Green Hills etc.) and allows (approx.) real-time memory stick simulation at:

http://www.utasker.com/kinetis/FRDM-KL46Z.html
http://www.utasker.com/kinetis/TWR-KL46Z48M.html

I would however also consider using SD cards (also supported for your device and can be used in parallel with memory sticks) since it is lower overhead for a KL46.

Regards

Mark

0 Kudos