MSD Device with SD Card

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

MSD Device with SD Card

Jump to solution
1,984 Views
loicguillain
Contributor II

Hi everybody,

 

I'm trying to create a USB MSD (on USB K64 port) device recognized on a PC to access the SD card on my FRDM-K64F. But  impossible to create just a MSD device; it's worse by adding the SD card. I would like to know if someone did it and if yes could you share your example code? (pieces of advice are not helping me anymore for this problem... I need to resolve it quickly)

 

Best regards,

 

Loïc

Labels (1)
1 Solution
1,591 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Loic,

yes, there is an error with the J-Link.

Please,

  1. Close KDS/Eclipse
  2. Download the attached 'plugins.zip'
  3. Extract the two plugins in that zip file to the 'plugins' subfolder of your installation folder (C:\freescale\kds_v3.0.0\eclipse\plugins)
  4. Confirm to replace the original files
  5. Restart KDS/Eclipse. Segger J-Link debugging is possible again.

The workaround is described also here Unable to Debug after KDS Update

We have also alert to avoid this.

alert.png

Thank you for your understanding,

Best Regards,

Iva

View solution in original post

7 Replies
1,591 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Loic,

please have you tried Software Development Kit for Kinetis MCUs|Freescale  ?

We have created USB Device MSD example.

Not sure, if you create your example with OS (FreeRTOS, MQX.. or BM)

After installation you will see the code under C:\Freescale\KSDK_1.3.0\examples\twrk64f120m\demo_apps\usb\device\msd

Hope this helps.

Best Regards,

Iva

0 Kudos
Reply
1,591 Views
loicguillain
Contributor II

Thanks but,

Firstly installing KSDK 3.0 = JLINK debugger fails... I can't debug anymore

Secondly I don't want to use KSDK ^^

Regards,

Loic

0 Kudos
Reply
1,592 Views
ivadorazinova
NXP Employee
NXP Employee

Hi Loic,

yes, there is an error with the J-Link.

Please,

  1. Close KDS/Eclipse
  2. Download the attached 'plugins.zip'
  3. Extract the two plugins in that zip file to the 'plugins' subfolder of your installation folder (C:\freescale\kds_v3.0.0\eclipse\plugins)
  4. Confirm to replace the original files
  5. Restart KDS/Eclipse. Segger J-Link debugging is possible again.

The workaround is described also here Unable to Debug after KDS Update

We have also alert to avoid this.

alert.png

Thank you for your understanding,

Best Regards,

Iva

1,591 Views
loicguillain
Contributor II

Thanks to you so much I was already in panic :smileysilly:

1,591 Views
mjbcswitzerland
Specialist V

Loic

If you don't manage to solve your USB-MD to SD card requirements you can fall-back on a complete and industrially proven solution for the K64 at the link below - it allows the K64 to be simulated in (appox.) real-time including the SD card and all of its FAT operation.

In addition it includes FAT emulation which allows also internal data Flash or external SPI Flash to be used in a linear fashion to store binary data but later be visible as formated data to a PC host.

Regards

Mark

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

K64: http://www.utasker.com/kinetis/FRDM-K64F.html / http://www.utasker.com/kinetis/TWR-K64F120M.html / http://www.utasker.com/kinetis/TWR-K65F180M.html

For the complete "out-of-the-box" Kinetis experience and faster time to market

:smileyinfo: Out-of-the-box support for 47 Kinetis boards and 10 IDEs (460 combinations from a single code source with no porting required)

0 Kudos
Reply
1,591 Views
loicguillain
Contributor II

I don't want to use Open SDA port but K64 USB port. ^^

0 Kudos
Reply
1,591 Views
DavidS
NXP Employee
NXP Employee

Hi Loic,

To add some other background information Iva has provided related to your topics please look at following links:

http://cache.freescale.com/files/microcontrollers/doc/ref_manual/DRM104.pdf

Flexis JM board with SD Card drivers and USB |Freescale 

But hopefully another user has done this specific implementation and can share....after all that is what the Community is for.

Regards,

David

0 Kudos
Reply