STM3210C EVAL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-12 6:16 AM
Hello, I use STM3210C-EVAL board.
I have to copy the files from the SD card to a USB wih the format FAT. Is there someone who can help me? Thanks in advance. #stm3210c-eval #fatfs #sdcard-fatfs #f_mount-sdcard #syncobj.c-windows.h- Labels:
-
FatFS
-
SDIO-SDMMC
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-12 7:10 AM
Is there someone who can help me?
I believe that ST maintains a list of consultants/contractors you can hire.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-12 8:57 AM
If you have already made a code that makes this function, thank you for advise me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-12 9:15 AM
You should perhaps dig through the source of the examples, and libraries for the STM32 chips and boards. Amongst the available code are examples of the various aspects you are looking for, ie USB MSC Host, SDIO, FatFs, etc.
I have some of these functions on other boards, but don't have this specific board, or a plan to port it.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-13 12:10 AM
Hello,
In fact, I have already started to work on this project. I have compiled the STM32_USB_Device_Library with USB mass storage device example. The Mass storage example uses the microSD Flash embedded in the STM3210C-EVAL evaluation board as media for data storage. up to now, I managed to read SD card , and write on the SD card (FATFS). But my aim is to copy the data from the SD card to a USB key (I do not still have this function code), so I have to compile USB HOST Library. that's why I find it complicated a bit... how I can use both libraries at the same time! In addition I do not see how I use the FatFS commands, for example: f_mount(0,&fatfs) it will be for the USB or the SD card! best regards- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-13 7:40 AM
The first parameter for f_mount() is a drive number, you'd need to implement support for two drives, and map your IO functions to the appropriate device.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-21 5:47 AM
Hi Clive1,
Can you please explain to me, what is the role of the ''syncobj.c'' file ? thnx :)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-21 9:39 AM
Can you please explain to me, what is the role of the ''syncobj.c'' file ?
In an RTOS environment it allows you to implement thread synchronization, or otherwise serialize access to the device/file-system. It would be required if you are likely to cause re-entrant behaviour into FatFs, ie run one access in the foreground, and other(s) in the background. Unchecked re-entrant behaviour is likely to cause file-system corruption, and as such is quite undesirable.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-22 8:47 AM
I have a problem with the function f_mount(BYTE vol, FATFS *fs) .
In fact, when I compile the Host library for writing and reading on a USB stick, I use this function f_mount(0 , &fatfs). Similarly, when I compile the Device Library for writing and reading on the SD card, I also use this function f_mount(0 , &fatfs)!!!! How does the program know which drive I will write if I use the same fuction with the same parameters ?!! for example if I put f_mount(1 , &fatfs)... What is going to happen?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-22 9:03 AM
As clive1 has already said, ''The first parameter for f_mount() is a drive number, you'd need to implement support for two drives, and map your IO functions to the appropriate device''
The documentation for f_mount() is here:
http://elm-chan.org/fsw/ff/en/mount.html
Home page for FatFs - includes documentation, links to examples, forum, etc:http://elm-chan.org/fsw/ff/00index_e.html
A complex system designed from scratch never works and cannot be patched up to make it work.
