Questions tagged [fat]

File Allocation Architecture (file system)

Filter by
Sorted by
Tagged with
0
votes
0answers
62 views

why f_rename of fatfs is very slow?

I'am developing a datalogger with an stm32L496 + FreeRtos + FatFs. The data logger save data to a buffer and when is full, the buffer is saved in a file on an SDcard with the help of fatfs and the ...
0
votes
1answer
24 views

SAMC21 FAT slow on samc21

I'm working on a samc21 and using the fat libraries provided in ASF. I have a program that takes from serial information and has to write to an SD card. The amount of bytes its around 50KB. I'm using ...
0
votes
0answers
133 views

Read specific line faster

i am working on a mp3 player project for hobby use,i use atmega644pa @12Mhz and use fatfs library via spi.Avr has no enough sram to the long file names so I tried to store long file names in a text ...
1
vote
1answer
560 views

STM32F103C8 + W25Q64 USB Mass Storage Device

I have problems creating an MSC device. I made the following functions: ...
4
votes
2answers
251 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-...
1
vote
0answers
364 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
2k 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
357 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 ...
0
votes
3answers
3k 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
598 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
521 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: ...
2
votes
2answers
372 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
572 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
3k 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
931 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
993 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
432 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
9k 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
4k 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
989 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
183 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
303 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
325 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
1k 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
8k 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, ...
9
votes
3answers
579 views

FSInit() - “CE_BAD_PARTITION” [closed]

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
402 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
1k 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
830 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
1k 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
767 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
716 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 ...