Implementing Chan's FATFs

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

Hey all,

I am trying to put a (very) rough timeline together for a project. I am going to be writing data collected from various sensors into an SD card.

Anyway, I ran up on Chan's FATFs library and was wondering how long it took to implement this library into your project? Obviously my implementation may take more / less time, but I'm just looking for a ballpark number.

Thanks all

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

10 minutes? :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

10 min? You must be a genius John!

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

Took me about 15. The only tricky thing is making sure you got the wiring right - the software "just works". Simple as that.

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

Modesty will prevent John replying. On the other hand his former countryman, Berlusconi, would very quickly tell you how magnificent he is. :lol: Don't you just love ambiguities?

Ross McKenzie ValuSoft Melbourne Australia

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

Of course! Certified by my doctor, he prescribed my genius pills which I have to take every day. :lol:

I only got it running in it's demo mode. It took a little longer for petitfs from memory as we had to supply some bit banged code for the SPI or was it usart??

Some of my ramblings from here
https://www.avrfreaks.net/index.p...
https://www.avrfreaks.net/index.p...
https://www.avrfreaks.net/index.p...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

It took me about 3 days. I was porting to ARM926 with hardware SD controller, cache coherency needed to be taken care of (nasty stuff when broken), and I needed to test and do workarounds for various buggy SD cards.

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

thanks for the replies all. Sounds like less than hour for demo run, a few days for implementation into an existing product. I'm fairly new to C, so may take me a little longer.

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

Just noticed John and clawson have ported the petitFs code to the Mega AVR's. Looks like the work is done for me.

Thanks for your contribution guys! Hopefully sometime soon I will be able to contribute in the way that you gentleman have!

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

Hi, Implementation Chan's FileSystem supported operating Bad Sector and even use ATMEL DataFlash sectors?