-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Q] Redefine SPI-Pins for supported Board "Cytron Maker Pi Pico" #851
Comments
Is that the official pinout? Should we change the board definition? It's simple to update... OTW, you can use the |
the pinout for the SDcard of the Cytron Make Pi Pico is from the companys own pdf-datasheet Direct Link to the PDF on this page
Thanks:) this mean he should/could may use
|
I did try to compile such a config - worked for SPI (0), after creating a
|
Use this begin call: arduino-pico/libraries/SD/src/SD.h Line 38 in 91b4bdb
|
|
It looks like you're running a different SD library. Can you double check you're not running an external verino of SdFat or SD? Compile logs should have that info. The Pico needs the custom versions of those two libs shipped with the core (to integrate with the File infrastructure we have). |
Also, can you give an MCVE for your failing compile with the SPI1 option? I don't actually understand the error you're seeing referencing SdFat::... |
for the dedicated use of the ESP8266SdFat I created (as I did wrote before): I also got the original SdFat v2.2.0 installed, but with
|
Very odd. I'm still traveling so don't have access to my dev system, but when I get back this weekend I'll give it a try and see if I can make it fail to compile like you were seeing. |
I reworked the "source" to a (final) code which I could use (with other pin numbers or spi-bus) also on the normal Rpi Pico, The RC2040 Pico and the Cytron Maker Pi Pico ;) It looks like :
|
I just built the following w/o any errors using the
So, maybe you're pulling in an incompatible SD library? That library also has to come from the repo, not from Adafruit or Arduino, or it won't have the add'l SPI object configuration parameter. |
I installed/created a fresh portable Arduino IDE Instance v1.8.19 and installed there only your arduino-core RP2040 additiionally. You code above compiled without errors - like on your side. The minimal sourcecode which gives me the
So no "incompatible SD library" is installed, but this alias does create some kind of loop/replacement which doenst work with my (which I only use and didnt create) code :( |
That explains the weird error! In any case, your use of the |
A user of mine project "RunCPM for Pico" would use the onboard SD-Card of the
Cytron Maker Pi Pico:
guidol70/RunCPM_RPi_Pico#1
In the variants cytron_maker_pi_rp2040\pins_arduino.h the follwing is defined:
But for accesing the onboard SD-Card - I think he need somehting like:
Is there a way to reconfigure this "on the fly" in the .ino or is the only possible solution to change the pins_arduino.h?
He also need to find out how to use SPI1 and not SPI0 with SdFat- so I think about something like
SPI pin selection for SD
#758 (comment)
The text was updated successfully, but these errors were encountered: