Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:40 29 Nov 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite: forgotten how to configure SD card

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 09:00pm 28 Nov 2026
Copy link to clipboard 
Print this post

Hi folks,

Ages since I've done any H/W but finally wiring up a PicoMite HDMI so I can test my adventure game.

The SD card however is defeating me:

> option sdcard gp9, gp10, gp11, gp12
Error : Invalid pin




Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 09:07pm 28 Nov 2026
Copy link to clipboard 
Print this post

OK, so it should have been:
OPTION SDCARD GP9, GP8, GP10, GP11


Which it accepts but now:
> drive "b:"
> files
Error : SD Card not found


Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1147
Posted: 09:13pm 28 Nov 2026
Copy link to clipboard 
Print this post

  thwill said  Hi folks,

Ages since I've done any H/W but finally wiring up a PicoMite HDMI so I can test my adventure game.

The SD card however is defeating me:

> option sdcard gp9, gp10, gp11, gp12
Error : Invalid pin


Tom, I think GP12 is used by HDMI - see the manual on Video Output around page 46.
Regards, Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1147
Posted: 09:19pm 28 Nov 2026
Copy link to clipboard 
Print this post

Tom,
You could try setting up the SD Card using system spi as per the manual on page 55

System SPI Port
This is a port that will be used for system use (SD card, LCD display and the touch controller on an LCD
panel). There are a number of ports and pins that can be used (see the chapter PicoMite Hardware) but this
example uses SPI on pins GP18, GP19 and GP16 for Clock, MOSI and MISO respectively.
OPTION SYSTEM SPI GP18, GP19, GP16
Then MMBasic must be told that there is an SD card attached and what pin is used for the Chip Select (CS)
signal:
OPTION SDCARD GP22

... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 09:19pm 28 Nov 2026
Copy link to clipboard 
Print this post

  panky said  
Tom, I think GP12 is used by HDMI - see the manual on Video Output around page 46.
Regards, Doug.


Yes, it was: 9, 8, 10, 11 - see my 2nd post - though still not working
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 09:29pm 28 Nov 2026
Copy link to clipboard 
Print this post

Also:
> option system spi gp10, gp11, gp8
Error : Invalid Option

MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3470
Posted: 09:40pm 28 Nov 2026
Copy link to clipboard 
Print this post

Some SD cards are fussy about the power supply so a 47µF or larger cap. across the socket power pins may help.

One card I have gives "Error : SD Card not found" on the first attempt but after reselecting B: works ok. That was cured with 10kΩ pullups on MOSI and MISO.
It is hard to see in the photo but perhaps your adapter board already has them, and maybe a small cap. on the power pins?

If the issue is dirty contacts pushing the card in and out a few times is worth a try.

Another possibility is the breadboard contacts. Check continuity from the top of the Pico pins to the top of the socket pins.

Edit. Do you have continuity between the two blue ground rails?
Edited 2026-11-29 07:44 by phil99
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 09:41pm 28 Nov 2026
Copy link to clipboard 
Print this post

I think possibly I'm just having a meltdown:


SD Card | Pico 2        | Cable colour
--------+---------------+-------------
CS      |  GP9  (Csn1)  | Green
MOSI    |  GP11 (SDO1)  | Blue
CLK     |  GP10 (SCK1)  | Yellow
MISO    |  GP8  (SDI1)  | White


So that should be:

OPTION SDCARD GP9, GPP10, GP11, GP8


Or:

OPTION SYSTEM SPI GP10, GP11, GP8
OPTION SDCARD GP9


Shouldn't it?

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3470
Posted: 09:48pm 28 Nov 2026
Copy link to clipboard 
Print this post

I think System SPI is only for the LCD firmware.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 09:54pm 28 Nov 2026
Copy link to clipboard 
Print this post

  phil99 said  I think System SPI is only for the LCD firmware.


That would explain why that OPTION doesn't work - thanks.

Still doesn't explain why I can't get the SD card to work, it works on my PicoMite VGA which uses the same socket.



Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 10:09pm 28 Nov 2026
Copy link to clipboard 
Print this post

  phil99 said  Edit. Do you have continuity between the two blue ground rails?


Through the Pico, but I've now added a direct connection and it didn't help, and nor did the 47 uF cap :-(.

I'll take another look tomorrow when I'm less tired.

Thanks,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
v.lenzer

Senior Member

Joined: 04/05/2024
Location: Germany
Posts: 160
Posted: 10:14pm 28 Nov 2026
Copy link to clipboard 
Print this post

I'm using the same sd-card-module. My options:
OPTION SYSTEM SPI GP6,GP3,GP4
OPTION SDCARD GP9
But at first I have had the same problems like You. Always "sd card not found". Then I found out, the card was damaged. So You should also try it with another card, just to be sure, the card is working.
Best wishes! Joachim
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9414
Posted: 10:32pm 28 Nov 2026
Copy link to clipboard 
Print this post

If you are using SPI for a LCD display as SYSTEM SPI then you only need
OPTION SDCARD cs
Otherwise, without SYSTEM SPI, you need
OPTION SDCARD cs, sclk, mosi, miso

The card will run better (I think) if the pins are for a hardware SPI port, but they don't have to be - you can get away with any unallocated pins. If they aren't then the card is accessed in bitbang mode.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 10:16am 29 Nov 2026
Copy link to clipboard 
Print this post

Good morning (UK) folks,

I'm at a loss on this, I've tried a different SD card socket (same design), different SD card (though the original reads fine on a PicoMiteVGA), a different set of pins and a 47uF cap over the socket. Continuity looks good, though it is solderless breadboard and I know that can be iffy.

Current layout:

SD Card | Pico 2        | Cable colour
--------+---------------+-------------
CS      |  GP1  (Csn0)  | Green
MOSI    |  GP3  (SDO0)  | Blue
CLK     |  GP2  (SCK0)  | Yellow
MISO    |  GP0  (SDI0)  | White


And options:

> option list
PicoMiteHDMI MMBasic RP2350A Edition V7.00.00
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION RESOLUTION 640x480 @ 315000KHz
OPTION SDCARD GP1, GP2, GP3, GP0
> drive "b:"
> files
Error : SD Card not found


I got one brief successful read along the way with this setup so I'm reasonably convinced it's configured correctly.

Any ideas ?

Best wishes,

Tom
Edited 2026-11-29 20:20 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3470
Posted: 10:45am 29 Nov 2026
Copy link to clipboard 
Print this post

OPTION SDCARD CS_pin, CLK_pin, MOSI_pin, MISO_pin

And from the Hardware Details page -

SPI CLK - GP2, Pin 4  =  CLK_pin  =  (SDCK0)
SPI TX - GP3, Pin 5  =  MOSI_pin  =  (SDO0)
SPI RX - GP4, Pin 6  =  MISO_pin  =  (SDI0)

So to use the first set of hardware SPI pins and GP1 as CS (Csn0) perhaps -

OPTION SDCARD GP1, GP2, GP3, GP4

Though you should be able to use any pins, so your current setup not working is a puzzle.
Edited 2026-11-29 20:46 by phil99
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4421
Posted: 10:55am 29 Nov 2026
Copy link to clipboard 
Print this post

Same result Phil, and according to a Pico diagram I have GP0 is also an SDI0 pin so I think it is interchangeable with GP4 for this purpose ?

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3470
Posted: 11:18am 29 Nov 2026
Copy link to clipboard 
Print this post

  Quote  I think it is interchangeable with GP4 for this purpose ?

Yes, I didn't look at the diagram closely enough.

That you got one brief successful read indicates something with the hardware is marginal.

Voltage at the socket power pins? To see if it sags under load put a 68Ω resistor across the socket power pins while measuring the voltage.

Resistance of the connections between the Pico and the socket?
Some LCD panels have 1kΩ in series with the SD SPI lines that can cause problems, and need to be bypassed.
(I think the series resistors may be there to protect the SD card if connected to a 5V chip, but may be too high).

In your last pic the socket has 10k resistors (marked 103) which I assume are harmless pullups.
Edited 2026-11-29 21:21 by phil99
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026