124 questions
0
votes
0
answers
27
views
code build errors with mcuboot and mass storage: nRF52840
I am trying to implement DFU(with USB&BLE) and USB Mass Storage with FAT FS filesystems on external QSPI flash. I am getting the following build errors- with SDK version 2.9.0
without mcuboot ...
0
votes
0
answers
97
views
Error linking CXX executable <project>.elf while compiling a C/C++ Raspberrry Pi Pico project in VS Code
I am building an IMU as a school project. This required integrating the Fusion(Madgwick) library to get roll, pitch and yaw from acceleration and gyroscope values from MPU6050. These values are first ...
1
vote
1
answer
215
views
FATFS via SPI for NUCLEOF103RB not working, returns FR_NOT_READY (3)
I have been sitting on this problem for a couple of days where I have been trying to use f_mount on a 8GB SD card (I formatted it to FAT32 and to a sector size of 4096.) I am also copying a very ...
0
votes
1
answer
325
views
Unable to read external flash with FATFS. STM32
I am using stm32L4 microcontroller and I have connected my board with an external flash (AT45DB041E), which I have successfully managed to communicate with the it using the SPI peripheral. All I want ...
1
vote
0
answers
236
views
Why does FatFs f_getfree function return an incorrect value?
I would like to get free memory on USB drive (64GB, FAT32) with FatFs library. Here is part of my code:
DWORD fre_clust, fre_sect;
uint64_t free_memory;
res_file = f_mount(&fs, "0:", 1);...
0
votes
1
answer
155
views
How to write large amount of data to sd card?
I use LPC54616 to write data on SD Card (FATFS library). The data that are written to SD card are generated in timer callback (~100B per 1ms). I use buffer (uint8_t buffer[6000];) to store this data ...
0
votes
1
answer
218
views
Why does f_write cause the program to freeze on pi pico?
I'm making an audio recorder with a pi pico along with an SD card connected via SPI.
Core0 gets samples from the ADC and sends them to core1 which handles SD writing.
I've isolated the issue to ...
0
votes
0
answers
221
views
A large amount of writes on ESP32 spiffs/fatfs
I have a battery powered EPS32 project that runs a task every 10 minutes for about 10 seconds and is in deep sleep the rest of the time. I am having some problems and need to to do diagnostics by ...
0
votes
1
answer
134
views
Pointing back to previous file in directory
Need to read preceding file name in directory.
When f_readdir function is run , the file name can be read and each time this function is run, it points to next file.
I want to read previous file name ...
0
votes
1
answer
618
views
FATFS: file name variable in f_open function
I have question regarding using variable as file name in f_open function.
f_readdir (&mydir, &sdfileinfo)
Once f_readdir is run in debug mode, I can see my file name in fname, but I am not ...
1
vote
0
answers
480
views
How do I use a RAM buffer for a FATFS filesystem?
I am trying to use Elm-chan's FatFS code (Link); eventually it will be ported to a microcontroller for use writing and reading files to an SD card, but for now I am working on understanding how to ...
0
votes
1
answer
382
views
STM32 SD Card (SPI) is not writing in an interrupt
I am working on STM32F103 aka Bluepill. I will be using my project on human body so it should be compact (i.e. not connected to computer by cables).
I have an external interrupt by a chip at every ...
0
votes
1
answer
696
views
FatFS f_open FR_INVALID_OBJECT
I'm using the NXP port of FatFS with an SD card using SPI for connection.
f_mount returned FR_OK
When I call this code to open a file called "skript.txt" in the root folder:
printf("...
0
votes
0
answers
322
views
FatFS cannot se files on PC
I have a problem with stm32l4r5 (nucleo-l4r5zi) and reading SD cards. I am using fatfs from https://01001000.xyz/2020-08-09-Tutorial-STM32CubeIDE-SD-card/. SPI and CS pins pulled up, prescaler 256. I ...
0
votes
0
answers
173
views
fresult gives FR_NO_FILESYSTEM and f_mount returns FR_DISK_ERR
i am using stm32f103xx to modify sdcard functions but fresult returns FR_NO_FILESYSTEM and f_mount returns FR_DISK_ERR and I have no idea what is the error.
int main(void)
{
/* USER CODE BEGIN 1 */
...