• AVR Freaks

Hot!SD card interfacing with PIC32MX575F512H

Author
Gunaseelan
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2020/01/27 05:38:28
  • Location: 0
  • Status: offline
2020/01/28 03:56:25 (permalink)
0

SD card interfacing with PIC32MX575F512H

Hi All,
      I'm going to use PIC32MX575F512H for interfacing SD card 8/16/32GB. I came to know that FAT32 libraries can use to interface. Anyone please tell me, how to include/ generate FAT32 library files for PIC32MX575F512H controller..
 
#1

11 Replies Related Threads

    katela
    Super Member
    • Total Posts : 1550
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/28 08:49:47 (permalink)
    +1 (1)
    Have a look at Harmony.

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 18245
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/28 10:26:11 (permalink)
    0
    Harmony or MLA would be the first two choices.
    #3
    Gunaseelan
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/01/27 05:38:28
    • Location: 0
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/28 22:27:10 (permalink)
    0
    How to use harmony any tutorials?
    #4
    ric
    Super Member
    • Total Posts : 25502
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: SD card interfacing with PIC32MX575F512H 2020/01/28 22:38:38 (permalink)

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    GoEk
    Senior Member
    • Total Posts : 122
    • Reward points : 0
    • Joined: 2012/09/27 00:32:28
    • Location: Sweden
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/29 07:04:10 (permalink)
    0
    http://elm-chan.org/fsw/ff/00index_e.html
    #6
    Gunaseelan
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/01/27 05:38:28
    • Location: 0
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/29 21:20:18 (permalink)
    0
    Hi GoEk,
               Thank you. I've included .c & .h files to my project from above link, However i'm getting makefile error. Any sample source code available for 32 bit controllers?
     
    #7
    LostInSpace
    Super Member
    • Total Posts : 294
    • Reward points : 0
    • Joined: 2016/03/11 22:47:59
    • Location: 0
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/29 21:50:47 (permalink)
    +1 (1)
    Tutorial:
    I wrote a tutorial about how Harmony basically works. You might find that helpful along with the Microchip resources that I have referenced in the blog.
    https://analoghome.blogspot.com/2019/07/microchip-pic32-harmony-bare-metal.html

    FatFS:
     
    Microchip Harmony has a sample project, I suggest that you look at it to see how it is configured (That's what I did when I got FatFS working).
    C:\microchip\harmony\v2_06\apps\fs\sdcard_fat_single_disk 

     
    Additionally I have posted some further information on how I implemented FatFS outside of the Harmony implementation using no timers and a Static SPI driver here
    https://www.microchip.com/forums/m1082928.aspx#1083276
     
    Hope this helps
    post edited by LostInSpace - 2020/01/29 21:54:12
    #8
    Gunaseelan
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/01/27 05:38:28
    • Location: 0
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/29 22:27:10 (permalink)
    0
    Thank you Steve! (LostLnSpace)
    I'll go through..
     
    #9
    GoEk
    Senior Member
    • Total Posts : 122
    • Reward points : 0
    • Joined: 2012/09/27 00:32:28
    • Location: Sweden
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/30 02:53:46 (permalink)
    +1 (1)
    Fatfs does not include the physical layer by default, you will have to provide the code for acessing the Sd card, usually by SPI. IIRC there are no examples for PIC32 but you should be able to modify the example code for PIC24 quite easily.
    post edited by Goran Ekstrom - 2020/01/30 02:57:42
    #10
    katela
    Super Member
    • Total Posts : 1550
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/30 09:02:56 (permalink)
    0
    There are many threads here in the forum discussing SD card with FatFs, search the forum for more info.
    There is also an MCC Application library, the File System library that can configure the physical layer for you graphically with MCC but the release note states: For 32 bit Families Only supports PIC32MM devices supported by latest pic24-dspic33-pic32mm library

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #11
    Gunaseelan
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2020/01/27 05:38:28
    • Location: 0
    • Status: offline
    Re: SD card interfacing with PIC32MX575F512H 2020/01/30 09:24:44 (permalink)
    0
    Thanks for the info Katela, 
    I'll try with harmony..
     
    #12
    Jump to:
    © 2020 APG vNext Commercial Version 4.5