1,435 questions
Score of 3
1 answer
138 views
High Frequency MicroSD saving with STM32 Disk Error
For the past few days, I've been iterating through different ways to save a txt file in a microSD using this guide from MicroPeta. Very useful, and it's working fine, but my goal is to have around ...
Score of 1
0 answers
92 views
SDIO not working in 4-bit mode on STM32F411
I'm working on an STMCUBE project that runs on an STM32F411. It requires relatively fast SD card reads, and 4-bit SDIO does not work as it should.
There are many reports about problems with 4-bit SDIO,...
Score of 0
1 answer
258 views
Calculation of CRC7
For a SD card driver I tried to calculate CRC7 for the commands.
Now, if I "enable CRC7 check" with CMD59, I get errors with some SD cards. But if I "disable CRC7" check with CMD59,...
Score of 1
0 answers
159 views
ESP32 SD card write error: errno 22 (Invalid argument) when using fopen
I am trying to write data to an SD card on an ESP32-WROOM. My function for file creation is:
bool create_file(const char *file_path, const char *data)
{
if (!file_path || !data) {
printf(&...
Score of 1
1 answer
180 views
SD Card Responses to SPI Commands while in SD Mode
TL;DR: Is there a way, using only SPI commands, to tell if the SD card is in SD mode vs. SPI mode?
Edited TL;DR: Yes. If the SD card doesn't respond at all to your SPI commands, you know it's either ...
Score of 2
1 answer
428 views
How to achieve low level access to SD card to send raw mmc commands?
I am trying to send raw mmc commands to SD card using Linux MMC subsystem mmc-utils and ioctl and running into Connection timed out (errno: 110). The SD card is micro-sd card that is used in raspberry ...
Score of 1
0 answers
50 views
nRF24 Stops Working When SD Card is Plugged In (NodeMCU + RF24 + SD + MPU6050 + BMP280)
I'm working on a NodeMCU project that uses an nRF24L01, SD card, MPU6050, and BMP280. Individually, both the SD card and nRF24 work fine, but when I plug in the SD card, the nRF24 stops working (doesn'...
Score of 0
1 answer
203 views
Response format R7 to CMD8 in SPI mode
In the SD Card specification, the response format for CMD8 is R7, and its structure differs slightly between SD mode and SPI mode.
In SPI mode, there's a 4-bit field called command version. However, I ...
Score of 2
1 answer
242 views
Reading boot sector and BPB structure of FAT32 SD Card
I am currently attempting to create my own SD Card reader. I have the SD card commands and protocol fully implemented and working giving me usefull and accurate data about my SDCard.
---CARD INFO---
...
Score of 2
0 answers
471 views
STM32F411 SPI read always returns 0xFF
I am trying my best to read data from an SD card using SPI. It works using HAL, but it's very slow, so I am trying to code my own SPI driver. I am stuck on trasnmitting data.
The GPIO implementation ...
Score of 1
0 answers
74 views
Why does readblocks() return only zeros when reading raw data from an SD card in MicroPython on ESP32-S3
I am working on a project using an ESP32-S3-CAM WROOM FREENOVE board and MicroPython v1.24.1. I need to read and write raw data directly to an SD card without using a filesystem, as the card has a ...
Score of 0
0 answers
79 views
assert failed: xQueueGenericSend queue.c:873 on esp32 with pn532 and sd card reader
I try to use pn532 on I2C and sd reader on spi. When I tested pn532 alone, it worked very well. But when I make these devices work together, ESP32 will report an error and force a restart:
assert ...
Score of 1
1 answer
518 views
esp_wifi.h: No such file or directory ( mqtt_client.h, nvs_flash.h)
I am trying to merge my separate SD card and MQTT code in an ESP-IDF project to enable functionality for sending data from the SD card to the cloud via MQTT. Both the SD card and MQTT code work ...
Score of 1
0 answers
58 views
Am using a USB attached card reader and Is there a way to catch an sd card physical removal event after ejecting it programmatically?
I have a wpf application that detects the USB removable devices. We have another service(c# and C++) which takes care of the ejection of the drives. This service is being called by the wpf app.
When ...
Score of 1
1 answer
255 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 ...