• AVR Freaks

Hot!Harmony : exFAT support in Harmony 2/3.

Author
karan123
Super Member
  • Total Posts : 1011
  • Reward points : 0
  • Joined: 2009/02/02 11:11:21
  • Location: 0
  • Status: offline
2020/10/18 02:39:12 (permalink)
0

Harmony : exFAT support in Harmony 2/3.

Hi,


Will microchip supports exFAT for PIC microcontroller with Harmony 2 Or 3 in Near Future?

--
Karan
#1

19 Replies Related Threads

    Mysil
    Super Member
    • Total Posts : 3816
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/18 04:15:05 (permalink)
    0
    Hi,
    As far as I understand, Harmony 2 and also MCC use ELM Chan  FatFS code for filesystem operations.
    You may look at Chan's webpage and study configuration for exFAT filesystem:
    http://elm-chan.org/fsw/ff/00index_e.html
     
    I do Not know if it is any different in Harmony 3.
     
        Mysil
    post edited by Mysil - 2020/10/18 04:35:58
    #2
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/18 06:16:03 (permalink)
    0
    Thanks... For update..

    You mean for say that...
    I have to study , modify or update header file(s) and other Dependencies.
    To make it work for exFAT.


    --
    Karan
    #3
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/18 06:16:08 (permalink)
    0
    Thanks... For update..

    You mean for say that...
    I have to study , modify or update header file(s) and other Dependencies.
    To make it work for exFAT.


    --
    Karan
    #4
    ric
    Super Member
    • Total Posts : 28713
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/18 12:38:31 (permalink)
    0
    exFAT was proprietry, and required paying a licence fee to Microsoft up until late in 2019.
    Presumably free solutions will appear soon, but I don't know what is available now.

    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
    optimus_jack
    Senior Member
    • Total Posts : 106
    • Reward points : 0
    • Joined: 2017/02/16 03:02:47
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/18 22:42:57 (permalink)
    #6
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/19 02:44:34 (permalink)
    0
    optimus_jack
    Hi Karan, exFAT is already supported in Harmony 3.8.0 releasehttps://github.com/Microchip-MPLAB-Harmony/core/blob/master/release_notes.md#core-release-v380 For licensing refer to https://github.com/Microchip-MPLAB-Harmony/core/blob/master/system/fs/fat_fs/readme_exfat_license.md 

    Many of thanks for this link...

    Where can I get demo code for
    PIC32MZ, PIC32MX, PIC32MK for USB and SPI-SDCard with exFAT ?

    --
    Karan
    #7
    ric
    Super Member
    • Total Posts : 28713
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/19 02:57:01 (permalink)
    0
    Presumably you have to generate it using Harmony...
     

    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!
    #8
    optimus_jack
    Senior Member
    • Total Posts : 106
    • Reward points : 0
    • Joined: 2017/02/16 03:02:47
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/19 03:01:44 (permalink)
    0
    Hi Karan,


    Currently there are no examples for exFAT in Harmony. But enabling exFAT should be simple through MHC. I tried on an existing SDMMC Fat demo and it worked.
     

    Attached Image(s)

    #9
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/19 03:15:45 (permalink)
    0
    optimus_jack
    Hi Karan,


    Currently there are no examples for exFAT in Harmony. But enabling exFAT should be simple through MHC. I tried on an existing SDMMC Fat demo and it worked. 


    Oh .. Thanks ..
    Did you tried USB MSD on also?

    For Which MCU SDMMC works ?

    By Enabling will Both FATFS and exFAT works
    ?


    --
    Karan
    #10
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/19 03:15:46 (permalink)
    0
    optimus_jack
    Hi Karan,


    Currently there are no examples for exFAT in Harmony. But enabling exFAT should be simple through MHC. I tried on an existing SDMMC Fat demo and it worked. 


    Oh .. Thanks ..
    Did you tried USB MSD on also?

    For Which MCU SDMMC works ?

    By Enabling will Both FATFS and exFAT works
    ?


    --
    Karan
    #11
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/20 11:03:37 (permalink)
    2 (1)
    Hi optimus_jack,

    I have PIC32MZ EF Starter Kit. I have successfully run msd_basic as default example and able to create file.txt in USB Thumb Drive with Harmony 3.

    But When I am trying to Enable exFAT File System Support.

    I have received below error:
    #error exFAT feature want c99 Or later
    and
    error :unknown type name 'QWORD'
    typedef QWORD FSIZE_t.

    many times in ff.h. files.

    Where is the issue?
    What I am doing wrong.?

    --
    Karan
    #12
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/20 11:22:52 (permalink)
    2 (1)
    Also

    Same (+more) errors for sdspi_fat_pic32mz_ef_sk

    For SDCard.

    --
    Karan
    #13
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/26 08:57:26 (permalink)
    0
    karan123
    optimus_jack
    Hi Karan,


    Currently there are no examples for exFAT in Harmony. But enabling exFAT should be simple through MHC. I tried on an existing SDMMC Fat demo and it worked. 


    Oh .. Thanks ..
    Did you tried USB MSD on also?

    For Which MCU SDMMC works ?

    By Enabling will Both FATFS and exFAT works
    ?


    --
    Karan



    Please Guide me... How to compile the code?
    #14
    vexorg
    Senior Member
    • Total Posts : 176
    • Reward points : 0
    • Joined: 2019/09/27 10:59:40
    • Location: 0
    • Status: online
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/26 09:05:54 (permalink)
    5 (1)
    Do you need exFat, the FAT32 stuff is there in many forms.
    I converted the MLA FAT/FAT32 code to work with the PIC32MZ, just to avoid harmony.
    #15
    Mysil
    Super Member
    • Total Posts : 3816
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/26 09:28:03 (permalink)
    0
    Hi,
    'QWORD'  is an internal typedef that is used in FatFs,
    probably in connection with porting between different compilers.
    I will assume it is meant to be a 32 bit unsigned integer type, you may look up how it is defined for other types.
    You may try:
    typedef    __uint32_t    QWORD;
    typedef    __uint32_t    FSIZE_t;

     
    Are you now working with Harmony v2 or Harmony V3 ?
    You may investigate what version of FatFs is actually present in the Harmony version,
    and compare with, and eventually update to FatFs  R0.14
     
        Mysil
    post edited by Mysil - 2020/10/26 09:29:51
    #16
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/26 23:07:07 (permalink)
    0
    Hi,


    Thanks for update..

    I am using Harmony V3. Yes, Harmony V3 uses FATFS R0.14 with exFAT. Same Demo as Available in V3.8.0 as suggestes by Link Msg #6.


    #error exFAT feature want c99 Or Later.

    How to sort out this issue?


    --
    Karan
    #17
    vexorg
    Senior Member
    • Total Posts : 176
    • Reward points : 0
    • Joined: 2019/09/27 10:59:40
    • Location: 0
    • Status: online
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/27 01:25:49 (permalink)
    0
    That's the joy of harmony, jumping several layers down to find what it's really doing, by which point you've lost track of all the pointers to pointers.
     
    It's all still sectors at the end of the day, check what's read with the spec, and update to suit.
    #18
    optimus_jack
    Senior Member
    • Total Posts : 106
    • Reward points : 0
    • Joined: 2017/02/16 03:02:47
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/27 01:48:23 (permalink)
    0
    karan123
    Hi,


    Thanks for update..

    I am using Harmony V3. Yes, Harmony V3 uses FATFS R0.14 with exFAT. Same Demo as Available in V3.8.0 as suggestes by Link Msg #6.


    #error exFAT feature want c99 Or Later.

    How to sort out this issue?
     
    --
    Karan

    Hi Karan,
    The issue seems to be with XC32 here not harmony. XC32 for PIC32M device uses C standard below C99 and as per the Fat code the C standard has to be C99 and later.
    #19
    karan123
    Super Member
    • Total Posts : 1011
    • Reward points : 0
    • Joined: 2009/02/02 11:11:21
    • Location: 0
    • Status: offline
    Re: Harmony : exFAT support in Harmony 2/3. 2020/10/27 02:52:51 (permalink)
    0
    Hi,

    Thanks for update...

    I am using XC32 v2.50 Compiler. How to sort out issue in that case. ? For PIC32MZ Devices


    --
    Karan
    #20
    Jump to:
    © 2020 APG vNext Commercial Version 4.5