Questions tagged [fat]

File Allocation Architecture (file system)

Filter by
Sorted by
Tagged with
1
vote
1answer
66 views

SD Card formatting in FAT 32 file system

I am using NXP Micro for interfacing microSD card with FAT32 file system. for implementation I am using drivers located at below link. https://embedded-code.com/source-code/memory/secure-digital-mmc-...
0
votes
0answers
41 views

How to use f_forward function in FatFs

I have to read a file 100kB big using FatFs in a microcontroller to send it via an AT TCP-IP modem. An obvious method would be doing f_open() calls, but I am curious how to use the f_forward function. ...
1
vote
0answers
82 views

SD Card re initialization using fatfs on stm32f103RB

I am using a SD Card Module that has no pin for checking existence of SD Card, So i should do the check using fatfs libs. The micro-controller is STM32F103RB and i'am using SPI protocol to communicate ...
0
votes
1answer
476 views

How to write data to end of line of existing file (STM32CubeMX FATFS SDIO issue)?

I have successfully coded write data into a CSV file is an SD card using STM32 CubeMS FATFS SDIO interface 1-bit mode. But I can't find the file append function in HAL FATFS driver to write data to ...
0
votes
1answer
180 views

FatFs strange behavior when writing to text file

I wrote a small program with PIC32MX microcontroller that sends data to a txt file in the SD card, then reads the data back from the file and finally compares the data before sending them with the ...
-1
votes
3answers
1k views

How to delete a file from memory using FATFS library

I want to use elm-chen FATFS library to delete a file from memory. this link. But I do not see any functions to delete a file. Is there a way to delete a file from FATFS using this library? Thanks ...
0
votes
0answers
104 views

synchronised tasks and interrupts conflicts with filesystem

my program include timers (timer0 to call an ISR periodically, timer3 to measure execution time), spi to read (without DMA) and fatfs. I call a function each 250 µs periodically using timer0, this ...
0
votes
0answers
319 views

Set Block size(CMD16) for SD card returns Illegal Command as response

I am interfacing SD card (16Gb Class 10 Micro Sd HC) to STM32F407VET using SDIO protocol. I am using Chan FatFs version 13a for this project. I am able to open an existing file(with some content in it)...
1
vote
1answer
388 views

Cannot Initialize 8GB SDHC CMD8 responds with (0xFF)

I am trying to interface a 8GB SDHC with STM32L0 controller through SPI. Followed this tutorial. As this thread suggests, I followed the the Command Sequence as follows: ...
0
votes
0answers
964 views

FR_DISK_ERR while interfacing 8GB SDHC card with FATFS + SPI + STM32L0

I am trying to interface a SDHC 8GB card with STM32L0 (SPI + FSTFS). I am using Chan's Library v0.11 with Adafruit Shield library where Lower Level SPI I/O code is handled by Nucleo driver's. I have ...
2
votes
2answers
257 views

FatFs f_write not working in LPC1788 Timer ISR

I’m using LPC1788 MCU with KeilV5 compiler. I Have a Timer ISR in which I read a value form specific ADC channel and write it into a SD-Card using FATFS library. Here is my Timer ISR code: ...
0
votes
1answer
433 views

FATFS copy between Ramdisk(FMC) and SD(SPI) on STM32F4 [closed]

I am trying to solve this problem. I am using FATFS13 on my custom STM32F469 board and I am using the Standard Peripheral library. I have connected 1MB of SRAM over the FMC bus, and an SD card over ...
2
votes
2answers
2k views

Using FatFS on internal flash of STM32f303 microcontroller

I want to use FatFS library using STM32F303 internal flash memory. I created user_diskio.c file and described necessary functions USER_write, ...
2
votes
1answer
565 views

SD card suddenly stops responding to CMD0 (RESET/SPI)

A device I had been testing for over two months suddenly started giving FR_DISK_ERR (I'm using Elm Chan's FAT-FS) [Link]. When I tried debugging, the command (CMD0) which must be clocked in to set the ...
1
vote
3answers
689 views

SD card read sector problem

I am using FatFS. After solving card initialization problem I am trying to read sector 0, but the card returns junk data. This is my read operation: I see that the card replied with 0x00 which means ...
0
votes
1answer
335 views

Why a 4KB (erase block) flash uses too much RAM [closed]

I'm using an SST26VF (4KB block erase) flash with elm chan's FAT FS. And when I compiled it for my STM32F103 it is using up too much RAM. But Mr. Chan's application notes that memory usage doesn't on ...
3
votes
2answers
5k views

STM32 - SD CARD USING FATFS

I am trying to read and write to a class 10 - 2GB SD card from STM32 with the help of FATFS R0.11, but f_mount() function is returning ...
2
votes
2answers
3k views

Read big file from sd card with fatfs

I'm using the STM32F4DISCOVERY board and I am trying to read a file from a micro SD card, and treat the data. I'm using the following functions ...
1
vote
0answers
813 views

How do I operate SPI flash with FatFs in small RAM conditions?

I want to use SPI flash to store some log files. And I anticipate I can read those files with various devices, so FatFs is my choice. Now the problem is, my microcontroller only have 16 KBytes ...
0
votes
1answer
129 views

Does the microcontroller need to support a given filesystem in USB Mass Storage Class scenario?

I've been thinking about designing a small flash drive of sorts with the AT32UC3A3256. I'm planning on using e.MMC managed NAND which I can hook up to the MCU without a problem. Just wondering does ...
0
votes
1answer
225 views

How to Write to SD Card at high rate? [closed]

I have just started working on interfacing Nordic semiconductor's nrf52 with SD card using SDK 12.0. I have to write to SD card at a rate of 84 packets per second and each packet consists of 20 bytes. ...
3
votes
1answer
3k views

Writing and Reading Hex Values to a Text file using FatFs

Currently i am working on STM32F479 Eval board. I have to collect data from sensor nodes and store it in a text file using FatFs. My sensor values are in Hexadecimal values. I am using STM32F4Cube HAL ...
0
votes
2answers
303 views

USB Mass Storage Device automatic backup system - How many USB Host Controllers are required?

I am planning a device that takes automatic backup of some instrumentation data from an SDHC card to a portable HDD (USB 3.0 / USB 2.0 removable hard-disk). The idea is to insert the SD card into the ...
1
vote
1answer
847 views

FatFs: Why am I not able to properly read sector 0?

Background: I am using an nRF52832 Development Kit with this microSD card in this breakout board. The card is powered at 3 V (I've tested running off the dev kit regulator and an external power supply)...
-1
votes
2answers
6k views

STM32F7 FATFS and SD card Write problems

I have an STM32F7 discovery board and have an image in the SDRAM which I want to store on the SD card as BMP file. I am using chan's FATFS module with the sddiskio module and the BSP library from ST, ...
10
votes
2answers
533 views

FSInit() - “CE_BAD_PARTITION”

I am using a PIC18F26K80 and an XC8 compiler. I am trying to initialise an SD card and create a file. I have simply formatted the SD card on Windows to have a "FAT32" file system and an "Allocation ...
1
vote
0answers
381 views

Send a file to an SD card over SPI

I am using a PIC18F4620 and an XC8 compiler. I am trying to create a file and send it to the SD card. I am using the MDD library from the MLA Legacy. My main is: ...
1
vote
0answers
921 views

FatFs issue with f_write and f_sync

I'm trying to set up a PIC18F67K22 to log data to an SD card, but I am having some trouble getting FatFs working properly. I implemented some low level code following the diskio.c API that is provided,...
4
votes
1answer
664 views

SPI / SD Card communication issues

I am working with a PIC18F67K22 and am seeing some bizarre things in the SPI data stream. I am trying to interact with a FAT32 partition using FatFs and a custom built diskio.c file. I am able to ...
2
votes
2answers
457 views

Read SD card without a file system [closed]

I design a DAQ to collect data from different sensors. The data are written on an SD card by a microcontroller, dsPIC33FJ256GP710A. The data are stored without a file system for speed reasons. Now I ...
4
votes
0answers
588 views

SD Card Buffer in FreeRTOS [closed]

One of my tasks in a project is responsible for gathering information about values measured from sensors and write information in a .txt file on an SD card. What would be the best way to do this? ...
2
votes
1answer
648 views

Adapt fatFS library to PIC32

I'm developing an application with PIC32MX, that record 3 WAV sounds and store theme into SD. Unfortunately the speed that I have reach is 155 kB/s and is insufficient for my application. Then I have ...
1
vote
1answer
3k views

How to write on SD card smaller than sector size (512 bytes)

I am writing a library for FAT file system management on STM32 for learning purpose. I want to use a SD/MMC card connected through SPI bus. I do some tests with a disk image on PC (I emulate ...