• AVR Freaks

Hot!Pic32MZ da USB and SDcard use as flashdrive and datalogging help needed

Author
mattgreig
Starting Member
  • Total Posts : 82
  • Reward points : 0
  • Joined: 2003/11/07 12:39:01
  • Status: offline
2019/07/17 13:06:05 (permalink)
0

Pic32MZ da USB and SDcard use as flashdrive and datalogging help needed

Hello
 
I am developing a system that needs to both access the SDcard via USB as a flash drive and log information to the SDcard.
these 2 functions do not need to happen at the same time.
 
I have the MSD functionality working fine via setup in harmony and plugging the USB in results in it popping up in windows as a drive.
 
my hardware can disconnect  VBUS and/or the data lines when needed (we need to protect access), thus i could turn off VBUS and data and disconnect from PC.
 
I assume I need to add fat FS in harmony
 
any other tips to get this to work
 
Cheers,

Matt Greig
Research Associate
PART Group
BCIT Technology Centre
Burnaby,BC, Canada
#1

2 Replies Related Threads

    mattgreig
    Starting Member
    • Total Posts : 82
    • Reward points : 0
    • Joined: 2003/11/07 12:39:01
    • Status: offline
    Re: Pic32MZ da USB and SDcard use as flashdrive and datalogging help needed 2019/07/17 13:52:11 (permalink)
    0
    this may have been much easier than i though it would be
    just changed SDHC driver clients to 2 and registered with file system, it now still shows up as a drive when USB plugged in.

    Matt Greig
    Research Associate
    PART Group
    BCIT Technology Centre
    Burnaby,BC, Canada
    #2
    TS9
    Super Member
    • Total Posts : 782
    • Reward points : 0
    • Joined: 2010/05/07 10:52:22
    • Status: offline
    Re: Pic32MZ da USB and SDcard use as flashdrive and datalogging help needed 2019/07/17 21:11:39 (permalink)
    0
    Hi,
     
    I have developed same kind of application with USB MSD and SDCard on customized board.
    I have followed below example but for PIC32MZ"EF"
     
    C:\microchip\harmony\v2_XX\apps\fs\sdcard_msd_fat_multi_disk
    Please check..
     
    Hope this help...
    --
     
     
    TS9
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5