We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a bit confusion on the actual SD SPI pins on MKRZERO: the variant.h file says:
variant.h
// SPI1: Connected to SD #define PIN_SPI1_MISO (29u) #define PIN_SPI1_MOSI (26u) #define PIN_SPI1_SCK (27u) #define PIN_SPI1_SS (28u) #define PERIPH_SPI1 sercom4
While the variant.cpp in the comment section mentions:
variant.cpp
/* +------------+------------------+--------+-----------------+--------+-----------------------+---------+---------+--------+--------+----------+----------+ | Pin number | MKR Board pin | PIN | Notes | Peri.A | Peripheral B | Perip.C | Perip.D | Peri.E | Peri.F | Periph.G | Periph.H | | | | | | EIC | ADC | AC | PTC | DAC | SERCOMx | SERCOMx | TCCx | TCCx | COM | AC/GLCK | | | | | |(EXTINT)|(AIN)|(AIN)| | | (x/PAD) | (x/PAD) | (x/WO) | (x/WO) | | | +------------+------------------+--------+-----------------+--------+-----+-----+-----+-----+---------+---------+--------+--------+----------+----------+ | | SD SPI | | | | | | | | | | | | | | | 26 | | PA12 | SD SCK | 12 | | | | | *2/00 | 4/00 | TCC2/0 | TCC0/6 | | AC/CMP0 | | 27 | | PA13 | SD MOSI | 13 | | | | | *2/01 | 4/01 | TCC2/1 | TCC0/7 | | AC/CMP1 | | 28 | | PA14 | SD SS | 14 | | | | | 2/02 | 4/02 | TC3/0 | TCC0/4 | | GCLK_IO0 | | 29 | | PA15 | SD MISO | 15 | | | | | *2/03 | 4/03 | TC3/1 | TCC0/5 | | GCLK_IO1 | | 30 | | PA27 | SD CD | 15 | | | | | | | | | | GCLK_IO0 | +------------+------------------+--------+-----------------+--------+-----+-----+-----+-----+---------+---------+--------+--------+----------+----------+
I can see a swap in pin 26 and 27.
Whats the actual one?
The text was updated successfully, but these errors were encountered:
variant.h is correct; the comment on variant.cpp should be fixed since PA12 is MOSI and PA13 is SCK in the particular mux we chose. @Rocketct
Sorry, something went wrong.
Fix comment on sd SPI MKRZERO
d0c2f0b
Fix SD SPI1 description on MKRZERO's variat fix: arduino#500
Rocketct
Successfully merging a pull request may close this issue.
There is a bit confusion on the actual SD SPI pins on MKRZERO:
the
variant.h
file says:While the
variant.cpp
in the comment section mentions:I can see a swap in pin 26 and 27.
Whats the actual one?
The text was updated successfully, but these errors were encountered: