Close

SPI1 SD card success

A project log for RP2040 M.2 Pico

A RPI Pico RP2040 board in a M.2 AE key form factor.

magicwolfiMagicWolfi 01/25/2025 at 02:490 Comments

Documentation update

SPI1 is working with the following hardware setup:

#defineGPWireSD Adapter
SD card pin
SD_CS
13greenD32
SD_DI12blackD07
SD_DO11blueCMD3
SD_CLK10greyCK5

This was more difficult than it should be, but finally it is done.

image









SDcard test.
Writing to test.txt...done.
test.txt:
1161011151161051101033249443250443251461310
SD Card Speed Test...
Writing to byte.txt...done.
Duration [millisec]: 8250
FileSize [bytes]: 1048576
Write Speed(8bit) [KByte/sec]: 128
Writing to 16bit.txt...done.
Duration [millisec]: 13657
FileSize [bytes]: 2097152
Write Speed(16bit) [KByte/sec]: 157
Writing to 32bit.txt...done.
Duration [millisec]: 23569
FileSize [bytes]: 4194304
Write Speed(32bit) [KByte/sec]: 178
done.
>d

SDcard root directory.
System Volume Information/
        IndexerVolumeGuid               76      CREATION: 2024-12-20 22:24:20   LAST WRITE: 2024-12-20 22:24:22
        WPSettings.dat          12      CREATION: 2024-12-20 22:24:40   LAST WRITE: 2024-12-20 22:24:42
test.txt                18      CREATION: 2098-01-01 00:00:12   LAST WRITE: 2098-01-01 00:00:42
byte.txt                1048576 CREATION: 2098-01-01 00:00:42   LAST WRITE: 2098-01-01 00:00:58
16bit.txt               2097152 CREATION: 2098-01-01 00:00:58   LAST WRITE: 2098-01-01 00:01:22
32bit.txt               4194304 CREATION: 2098-01-01 00:01:22   LAST WRITE: 2098-01-01 00:01:12
>uSD Card removed!

And here is the instruction to fix the traces before putting on the uSD holder to hide the mod:


Discussions