Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fat]

File Allocation Architecture (file system)

0
votes
1answer
74 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
105 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
619 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
103 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
234 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)...
0
votes
0answers
147 views

FatFs (ChaN) - 256 GB Class 10 UHS-3 Card not Working

I am using an 'ARM Cortex M3' MCU with the 'ChaN (R0.13a (2017)) FAT File System'. It's all working beautifully at the moment with SD Cards that I have formatted as either FAT32 or as exFAT. These ...
0
votes
0answers
381 views

USB Mass storage is detected and visible with Linux but not with windows

I'm using STM32L486RG microcontroller to interface a Micron raw NAND flash memory through SPI peripheral. I have succeeded in integrating FatFs on my memory and I'm able to format the flash and manage ...
1
vote
1answer
292 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
1answer
778 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
195 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
344 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 ...
0
votes
0answers
685 views

FatFs (ChaN) - FR_NO_FILESYSTEM error from working FAT32 SD Card

I am using an 'ARM Cortex M3' MCU with the ChaN FAT File System. It's all working beautifully at the moment with SD Cards that I have formatted (as FAT32) from my Windows 7 machine as well as Mac OS X ...
2
votes
2answers
1k 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
437 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
528 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
263 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
4k 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
2k 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
677 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
117 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
193 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
2k 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
282 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
768 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
5k 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, ...
8
votes
2answers
443 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
361 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
808 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
600 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
414 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 ...
3
votes
0answers
509 views

SD Card Buffer in FreeRTOS

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 a SD card. What would be the best way to do this? Right ...
2
votes
1answer
619 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 ...