Lack of FatFS for UC3A3 Projects?

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to quickly redo a project to take advantage of some new code pushed out with the latest ASF updates, part of which includes pulling FatFS into my project "natively" via ASF instead of tacking it on. I was hoping that this meant that Atmel also improved FatFS read/write speed on UC3A3 devices. Unfortunately, it seems that FatFS is not included for UC3A3 projects, though I did confirm it in a test SAM3N project.

Can this be rectified? Alternatively, are there any good tutorials on using Atmel's FAT driver? I'm familiar with FatFS, and due to time constraints would like to stick with it, but it's not a specific requirement.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

True, FatFS examples are only ported for XMEGA and SAM devices in ASF. So you currently need to do the port yourself (there is one file to port memories_initialization_xxx.c) or look in Atmel FS for UC3 examples.

-sma

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Examples doc for Atmel FS for UC3:
http://asf.atmel.com/docs/latest...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Haven't looked back into this in a few weeks, but is there any ETA on when FatFS might be added to UC3?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm using FatFS in my bootloader on UC3, here is an extract of the makefile:

asf/avr32/drivers/usbc/usbc_host.c \
asf/avr32/services/fs/fat/fat.c \
asf/avr32/services/fs/fat/fat_unusual.c \
asf/avr32/services/fs/fat/file.c \
asf/avr32/services/fs/fat/navigation.c \
asf/common/services/usb/class/msc/host/uhi_msc.c \
asf/common/services/usb/class/msc/host/uhi_msc_mem.c \
asf/common/services/usb/uhc/uhc.c \
asf/common/services/storage/ctrl_access/ctrl_access.c

it's working fine for me (read only) - so what is your problem?

-sb

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Those aren't the FatFS files...that looks more like the native ASF files.

In any case, I find FatFS to have more intuitive function calls, but it does require some work to get it working nicely with UC3. I was hoping Atmel might solve some of the harder problems in a cleaner way than I have.