Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: fatfssdraw sample application

$
0
0

Hi Ahmed,

[quote user="Ahmed Mokhtar"]1-While i am trying the example of fatsdraw which is provided with TI RTOS package it  can only creates the file and doesn't write to it [/quote]

Can you elaborate on that? The example reads from input.txt (it creates it if it doesn't exist) and copies it to output.txt.

Also, by the way, when writing/reading less than 512 bytes (sector size), you'll have to call f_sync() or f_close before the data is actually written to the SD Card. FatFs "caches" a sector in the FIL data structure.

[quote user="Ahmed Mokhtar"]2- i'd like to ask if the file operations functions like f_open,f_write......etc are thread safe  functions(i.e  are they reentrant) [/quote]

Yes. The FatFs module has semaphore locks for reentrancy.


Viewing all articles
Browse latest Browse all 25965

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>