I created a custom board with a SAMD21E chip (thanks to this). I2C protocol works very well.
Nevertheless, the SPI line from the Arduino Zero use PB pins which are not present on SAMD21E chip, so I need to create a custom SPI line. I followed Adafruit tutorial to do that but I don't know how to connect my custom SPI with SerialFlash library (or the Spark Fun Serial Flash Library).
My goal is to connect the Serial Flash Breakout - SPX-17115.
-
\$\begingroup\$ What is the question you want answered? \$\endgroup\$Justme– Justme2021年08月24日 16:59:11 +00:00Commented Aug 24, 2021 at 16:59
-
\$\begingroup\$ Use my custom SPI with SerialFlash library which use the SPI library \$\endgroup\$Artex– Artex2021年08月24日 18:57:34 +00:00Commented Aug 24, 2021 at 18:57
1 Answer 1
The SerialFlash library may be hardcoded to use the standard SPI class and pins, in which case you will need to modify it (the library) so that it uses your custom SPI.
-
\$\begingroup\$ Thanks. Can you help me to do that ? How can I change the pins in the library ? Don’t know how to do it \$\endgroup\$Artex– Artex2021年08月24日 18:56:59 +00:00Commented Aug 24, 2021 at 18:56