Questions tagged [sd]

Secure Digital (SD), a memory card standard. Has multiple form factors (Standard, MiniSD and microSD/TransFlash) and multiple capacity ratings (SDSC, SDHC, and SDXC). Also extends to SDIO, which allows peripherals in an SD form factor to attach to a host, similar to USB.

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

Can unwritten (but presumably otherwise usable/functional) blocks on an SD ever fail to be readable?

Does an SD come from "the factory" with all of its ECC (or spare area) set correctly? Sometimes when I blindly dd (copy) an entire SD card (that is only partially ...
2
votes
0answers
85 views

Errors in SPI communication with SD card due to heat

Given is a PCB with a STM32L432KCU6 and a microSD card connected to it via SPI at 40 MHz in SPI Mode 0. The communication is protected by CRC which is calculated by the microSD card on the fly. When ...
0
votes
1answer
57 views

Wear leveling and supply of voltage

Does anyone know if a NAND flash device (e.g. microSD) has to be continuously supplied with energy for its wear leveling algorithms work as designed? Or, if it doesn't matter if the device is (safely) ...
2
votes
1answer
934 views

Write endurance: Is there a difference between eMMC and Micro SD Card?

I have seen several forum posts (link 1, link 2) debating whether eMMC offers an endurance advantage over SD cards for embedded applications. My understanding was that the write endurance problem is ...
0
votes
1answer
39 views

Monitoring SD/TF Card status while interfacing with separate host

I'm working on project that requires taking several terabytes worth of RAW photos on DSLR controlled by a microcontroller. Initially the plan was to use a small Linux SBC running some kind of control ...
1
vote
1answer
142 views

PCB sound memory for toys [closed]

I want to build a toy. The initial build will be a prototype but if the idea 'sells,' I want to build en-masse. For the prototype, as I do not have (beyond what I learnt at Uni) industry experience, ...
0
votes
1answer
85 views

How to modify an SD card so it will be read only?

I checked SD card pins and their descriptions and saw that there is a "data input" and a "data out". If I covered, removed the data in pin, would it block all the writing requests to the card?
0
votes
1answer
127 views

Sandisk micro sd card not detected. How to diagnose the problem without knowledge about the sd card protocol? [closed]

Seems to be a common problem with Sandisk micro sd cards. Just a little before or after the warrenty period, the micro sd card suddently stop to be recognized. I mean phones and external card reader ...
0
votes
1answer
360 views

Initializing to MicroSD Card with Arduino produces error code 0x43, 0xff

I am trying to interface with a 32GB MicroSD card with an Arduino Uno, but the code consistently fails at the initialization stage. Below is my schematic (sorry for the horrendous schematic, I'm not ...
4
votes
1answer
3k views

CMOS Flash vs SD: Can I put a Gamecube Memory Card in an SD reader?

Backstory I've decided to run "Homebrew" on my Gamecube (and writing Homebrew for n00bs to document the process). Unfortunately, it seems that there's no way to do this without buying special ...
0
votes
1answer
86 views

Download a file from web browser to Micro SD card [closed]

I am trying to do a web server to store a file (mostly MP3) on a Micro SD card. I have stm32f407-discovery and w5500 and a Micro SD card reader (unbranded manual pcb drawed). How can I open a web ...
0
votes
0answers
130 views

STM32 SD Card SPI no response

I am using an STM32F0 to communicate with an SD card over SPI. However, when I send CMD0 after performing the required initialization, the SD card does not respond with anything on MISO. What's ...
-4
votes
1answer
69 views

Why CMD17 cannot return 0xFE?

I have a problem with CMD17 when I send this command and wait response I always get first response 0x00 but when I am waiting at 0xFE it cannot get it. In debug mode I get 0xFE. This my code for ...
3
votes
0answers
76 views

SPI SDHC card will not come ready, Regular (older) SD card works fine

I am trying to make an SPI interface on a 186 Microprocessor using bit banging and a GPIO to control the CS, SCLK, MOSI and reading in the MISO lines. Mode 0. I cannot get SDHC (version2) cards to ...
1
vote
1answer
241 views

ADC distortion when writing to microSD

I am doing my own project making a basic audio recording device using microcontroller's ADC to get the audio signal from electret microphone and saving data to microSD card. I'm using STM32L476RG ...
0
votes
3answers
591 views

Make an SD card installed on PCB readable through USB

I work on a circuit that logs data onto an SD card. I want to know how I can read the SD card data directly from my PC using USB. I am thinking of using a type of SPI to USB converter because there ...
0
votes
1answer
126 views

Will using a microSD card reader with STM32 produce logical errors? [closed]

I have a microSD card reader which needs \$5\,\mathrm{V}\$ to operate. I am interfacing it with STM32 MCU operating at \$3.3\,\mathrm{V}\$. Will it operate normally when I provide only \$3.3\,\mathrm{...
0
votes
0answers
275 views

Can I connect two MCUs directly to one micro SD card without additional components?

I am new to this community so I am sorry if I'm asking in a wrong place or something out of topic. I think I have considered everything. :) So, now the basic info: I am working on a project which ...
0
votes
1answer
132 views

Arduino nano + microSD module + ethernet module does not assign IP address

I would like to create a small web server to enable or disable devices via ethernet connection, except that the network module and the SD reader did not seem to work if connected simultaneously. That ...
0
votes
1answer
114 views

Level shifting between SD Card and Lipo-powered microcontroller

I have an ATtiny861 microcontroller powered directly from a Lipo battery. My circuit is designed to operate on supply voltages from 3V - 4.2V (bonus if it tolerates up to 4.6V). I need to interface ...
0
votes
1answer
84 views

Interfacing SD card with STM32F44

I'm using STM32F44VET6 controller(using cubemx code configurator), I need to interface a 64GB SD card,and this controller has SDIO pheripheral also But I'm confused how to choose interface type SPI ...
0
votes
0answers
769 views

STM32 SDIO FATFS

I'm using SDIO (1-bit mode) with an STM32F429 Discovery board to read from and write to an SD card. The code below works, I've seen that it does, the problem is it seems to randomly choose when to ...
0
votes
0answers
69 views

Pin confirmation on pic for sd card connector?

I've had a first version of a connection to a sd card connector (DM3CS-SF) for my PIC32MX470F512L that did the following connections: After trying to run an harmony example, using this config, the sd ...
0
votes
2answers
51 views

How much current does a DM3 connector require? [closed]

I'm trying to have my PIC32MX470F512L communicate with the sd card for some time now without success (using harmony sd card example) I checked that the pins CMD,CLK,DAT0,DAT3 are receiving a signal. ...
4
votes
2answers
223 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
89 views

Issue with SD Card Initialization via SPI: No CMD0 Response

I am working on a project to read files off of SD cards with an xmega128a4u via SPI. I noticed that some cards initialize without an issue. However, I have two cards that just wont. As far as I can ...
0
votes
0answers
212 views

CLK signal on DAT0 line on SD protocol?

I'm facing some problems in the initialization stage of the SD protocol on a custom board, specifically when sending the ACMD51 command and reading the Status Card ...
1
vote
0answers
39 views

How to design Micro SD circuit for different speed class?

It's my first time to design the micro SD reader circuit. I hope that my design can support micro SD card with various speed class(from class2 to class10). According to my understanding, the only ...
0
votes
0answers
69 views

MicroSD card SPI initialization irregularities

I've implemented the start-up sequence for SPI mode on MicroSD v2 cards (using the specifications), and I've found that the SD card fails initialization at different points in the process. It often ...
4
votes
1answer
231 views

Keep out zone of microSD card set footprint

I'm designing a PCB with Hirose microSD card set DM3AT-SF-PEJM5. In its datasheet, page 3, there are several "no conductive traces" area, which are marked as "keep out" zone in the footprint I found. ...
0
votes
0answers
36 views

Isolation of SD IO pins during off state

I have a project at the moment that uses a PMOSFET to switch the supply to an SD card. According to the SanDisk SD datasheet available here: Because there are clamping diodes on the CMD, CLK, and ...
0
votes
1answer
620 views

SD card single write block

I'm presently writing the code for SAMD20 micro-controller and SDCard. I'v successfully written code for single block read and multi block successfully. I'm testing my code with San-disk 16 GB SDCard ...
1
vote
0answers
633 views

STM32 SDMMC & SDIO - why max 1 SD card only?

I'm writing an SDMMC driver for my C++ RTOS for microcontrollers and there is one thing which really puzzles me, making it hard to decide about class hierarchy. In the Reference Manual for STM32F7 (...
0
votes
1answer
2k views

microSD card, how many times can I write the same sector?

I'm using a microSD card in an embedded system which use a microcontroller interfacing with the microSD card using SPI. I do raw data write, without a file system. Every time that I want to store data,...
1
vote
0answers
346 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
2answers
215 views

Can I lower flash power consumption by pre-flashing all values to high?

I am designing an embedded system that will use either embedded flash memory or an SD card. The system must survive without much power and the estimated 30mA draw of an SD card sounds too high for me. ...
1
vote
2answers
354 views

SD card initialisation problem with Atmega32u4

I have had this issue for the last couple of days and I cannot solve it. There are many similar issues I've read through online but they have not really worked for me. This project involves a PCB and ...
1
vote
3answers
1k views

How to figure out SD Card optimal write size

I am writing the data logging portion for a real time embedded application. I have an SD card I communicate via SPI at 33Mhz. I need to be able to log at least 1024 bytes of data ever 1 milli-second. ...
0
votes
0answers
40 views

Power Arduino from MicroSD host and more

There are a lot of cheap MicroSD port extender flex ribbons from China. These things extend the MicroSD port quite a lot. I thought it would be cool to adapt these to power an Arduino from a phones ...
0
votes
0answers
105 views

BBB Flashing Loop

So generally I have no problem flashing my BBB with the SD I have. I do it all the time, and it works on most board. However occionally it gets stuck in this "loop". It will flash the device ...
1
vote
1answer
530 views

Ver2.0 SDHC Card long response time after ACMD41 during initialization

I would like to implement a very low power SD card handling with MSP430 processors. I would like to log measurement data onto SD card without a file system. I want to turn on and off the SD card power ...
1
vote
1answer
110 views

SIMCom SIM808 SD card problem

I am working with SIMCom's SIM808 2G+GPS modem and trying to connect it to an SD card. I am following SIMCom hardware design docs, to save some data in SD memory. The problem is: when I send ...
0
votes
1answer
109 views

Can Flash controllers make a card readonly?

It is said in this answer here that Some of them have a controller chip that will permanently lock them to read only if they detect a write error, as a preservation measure. Is it possible for ...
0
votes
1answer
199 views

How can I read/write bytes to SD card slot of MC60A?

I am working on a clickBoard with MC60 A GSM module from MikroEletronika company. This clickBoard has two slots: (1) one for SIM card and another (2) for micro SD cards. I have read all the available ...
1
vote
2answers
321 views

MicroSD raw write/read mode. After sector write once, can't write more sectors and read always 0's

I am doing, for the first time, the interface between a microcontroller (PIC32MX) and a microSD card through SPI. The cards I'm using are initializing correctly. The sector/block size is fixed at 512 ...
1
vote
0answers
243 views

How to measure SD card data timing vs. clock

I'm doing EVT testing of our product and I want to measure the SD card data vs. clock timing to make sure we're inside the specs. We're using LS1043A that boots Linux (via U-Boot) from an SD card ...
1
vote
1answer
557 views

Need help with SD Card Initialization (CLK Syncronization)

EDIT 1 : I made changes to the code as @Anonymous suggested in the answer. It seems to have improved but now I seems to be getting incorrect response OR SD CARD putting response at the wrong time. ...
1
vote
1answer
97 views

What mode of SPI is the standard if nothing regarding the mode is mentioned in the slave datasheet?

I am trying to bit bang SPI for a SD Card, I went through this SD Card datasheet and I couldn't find any information regarding the mode that needs to be used. If I missed, please point it out. Else ...
0
votes
2answers
328 views

Booting from SD card in SPI mode

I want to boot an ARM Linux board (Allwinner H3 for example) from a generic (micro) SD card through an SPI interface. Can an SD card accept SPI communication right away or is there any "SPI mode ...

1
2
3 4 5
8