Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7862

General • SDSC support on Pico

$
0
0
Using https://github.com/carlk3/no-OS-FatFS-S ... I-RPi-Pico (main)

Looking for help building version 2.4.0 of this project so that I can used 128MB SDSC cards.

Got examples/command_line working with a Lexar 32GB SD card.

32 GB is overkill for my data logger. Found 10 qty 128MB SD cards on Amazon.

Formatted them to have small clusters:
mike@xygdev3:~$ sudo mkfs.fat -v -n GMCOUNT /dev/sdc
mkfs.fat 4.2 (2021-01-31)
/dev/sdc has 4 heads and 60 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 245760 sectors;
drive number 0x80;
filesystem has 2 16-bit FATs and 4 sectors per cluster.
FAT size is 240 sectors, and provides 61311 clusters.
There are 4 reserved sectors.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is b21e427e, volume label GMCOUNT.

Mount:
> mount 0:
sd_spi_go_low_frequency: Actual frequency: 398089
V2-Version Card
R3/R7: 0x1aa
R3/R7: 0xff8000
R3/R7: 0x80ff8000
Card Initialized: Standard Capacity Card: Version 2.x
sd_card_spi_init:1632: SD Standard Capacity Memory Card unsupported
f_mount error: The physical drive cannot work (3)

Discovered SDSC support was removed from this project a while back:
viewtopic.php?t=376162#p2250500

Checked out the 2.4.0 branch and tried to make. Got this:
[ 33%] Building C object CMakeFiles/command_line.dir/home/mike/dev/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/sd_driver/SDIO/rp2040_sdio.c.obj
/home/mike/dev/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/sd_driver/SDIO/rp2040_sdio.c: In function 'rp2040_sdio_init':
/home/mike/dev/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/sd_driver/SDIO/rp2040_sdio.c:818:24: error: storage size of 'fn' isn't known
818 | enum gpio_function fn;


Is it possible that version 2.4.0 of this project is not compatible with the 2.0 SDK?


Thanks

Statistics: Posted by xyg — Fri May 30, 2025 10:49 pm



Viewing all articles
Browse latest Browse all 7862

Trending Articles