MK60N512 MCU USB Mass Storage

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

MK60N512 MCU USB Mass Storage

718 Views
rabbit
Contributor III

I am planning to implement a mass storage feature in our K60N512 based MCU product.

Refer to the example at "C:\Freescale\CW MCU v10.4\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K60N512\USB_MS_Device", it is only 128K size of storage,

it is too small. There is a SD card in our board, it is big size, is it possible to "map" the SD card for USB storage?

Any suggestion will be appreciated.

Sam

Labels (1)
0 Kudos
3 Replies

421 Views
mjbcswitzerland
Specialist V

Sam

The example shows how a PC host can use the on-chip-flash as a small disk drive. The application on the Kinetis will not be able to access this file system in the same way and also the PC host is not synchronised to the Kinetis application in this mode (that is, the PC host will not know if the Kinetis application changes data in Flash) but this is useful for retrieving data that may have been saved during normal application operation or for making parameter changes (when the Kinetis application is not running)..

The same is possible on an SD card, which of course has much more space.

The uTasker project includes this as standard, allowing USB-MSD to operate on the SD card. Using the utFAT it also allows the application to read and write the SD card. Its web server can server data from the SD card and also transferscan be made to and from the SD card using the FTP server. See the following for more details:

http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF

http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF

I addition, it allows software updates to be made using the USB-MSD interface or from the SD card:

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

Regards

Mark

0 Kudos

421 Views
rabbit
Contributor III

Hi Mark,

Is uTasker free if I am using Freescale Kinetis MCU?

The MCU is 512K flash,  we can't give too much the flash memory for USB read/write, do you know how to map the SDCard memory to the USB?

I mean when I plug my MCU USB port to PC USB port, then PC open the memory at SDCard directly.

Regards

Sam

0 Kudos

421 Views
mjbcswitzerland
Specialist V

Sam

The uTasker project (including various boot loaders) is free and supported for all non-commerical use.

Commerical use requires a license, which includes personal support for 6 or 12 months and some specific project configuration can be performed if required.

There is a new boot loader package that you can try - it allows up to 130k applications to be loaded - at µTasker Test Software and Demos

There is also a new video at Kinetis K60 Tower Kit - Flexible Boot Loader - YouTube

Regards

Mark

P.S. I know how to map the Kinetis memory to look like a disk-drive to the USB host and this is included in the loader package. If you prefer to develop it yourself based on USB device and FAT examples you should be able to do it with a USB analyser and some research - the utFAT document explains practical details of how the SD card /FAT works http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
Depending on your experience and efficiency it should be possible to put your own together within a few days. Without a USB analyser and not much FAT knowledge it is more difficult and I would plan between 1 and 4 weeks of work for the task.

0 Kudos