Is there any code which supports filesystems on SDCards connected via SPI interface?
or only communication to sdcards with spi
What is required is to take Guru's code and combine it together in a VisualDSP FSS PID module. You can find instructions in $(VDSP)\Blackfin\docs\drivers\pid\Generic_PID_Design_Document.pdf. This will then bolt straight into place in the FSS framework. For BF537 you will also need to either add the file sytem files (Blackfin\lib\src\services\fss) into a bespoke libssl537 and similar add the FAT driver (Blackfin\lib\src\drivers\fsd) into libdrv537 or add the files directly to your project.
See the shell_browser examples for BF54x/BF52x (Blackfin\Examples\ADSP-BF5** EZ-KIT Lite\Services\File System\VDK\shell_browser) for illustration purposes.
We currently have no plans to provide such a driver ourselves.
Please see the attached document (draft) and code. This is tested with BF527, but you can easily modify to work with BF537.
Hope this helps.
your app-note is very interresting - we use the spi interface on our hardware - and have written the elementary functions a few weeks ago. but without dma transfers - so i would adapt it
2 further questions:
1) is there any planed integration with a filesystem-driver e.g the FAT driver from VDSP?
2) whats about licences to SDGroup. Could we use this code without any licences? or is there any payment necessary
We don't have plans to have a file-system on top of this. You can use the codes and there is no licensing required. In fact this was done to put up as EE note.
Thank you very much for the example code. I think I did all the adaptations for BF537, but it still does not work properly. I think, the write and read function works seperately, but not together.
The "data write done" message appears, then it tells me that the command was not accepted. That means Response is somewhere 1. And I think it is the idle state and illegal command. Because its 5. Is this possible? Why does it then work if I comment the write function. Then the programm reads from the card, but the data check gives an error, what makes sense!
Thank you very much
i can't load your attached zip file - it doesn't appear to be a valid archive
please can you check this ?
it finally works. Seemt to be an issue of the SD Card!
nice to hear that your code works - but
i'm not able to get your attached zip file(i your previous post) - please can you attach a valid one?
the archive is simply zipped twice. Unzip the downloaded archive. Then add extension 'zip' to the resulting file and unpack it.
hi, after a while i integrated your EE335 example code in my project
so - everything seems to work fine - except if i use read blocks via DMA
i'm able to receive the first 512Byte block but after this i get always wrong data after send the next cmd.
So i searched a while and found a topic in blackfin.org forum (http://www.blackfin.org/phorum/read.php?12,7408)
which seems to be the same.
But is there a real working workaround for this "problem" (recv. bytes after DMA int via SPI / SPI Clk has been running after a DMA Read transfer)
I tried to add sync bit for setupDMA but dont help.
So im able to read a 512b block via DMA
the 2nd readblock fails
the 3rd works again
Did you try Martin's suggestion to combine the code from EE-335 with the FSS PID? If so, are you still encountering problems with this?
hi craig !
i tried all the suggestions from ee335, they are working and now i have a (currently) read only FatSystem on my SDCard connected via SPI on the BF537
but i have troubles on using the sample code-there are some parts in the code which could hang up in an endless loop, and this happens.
So i have found a new revision on the E335 also with code and i would try it immediately if this works.
Currently i use nonDma based transfer to SD Card with some timing troubles on my wholesystem. (blockread is to slow)
Retrieving data ...