You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SPI Flash is connected to SPI bus 1 pins that are not brought out on the GPIO pads. This way you don't have to worry about the SPI flash colliding with other devices on the main SPI connection.
We give the SPI Flash the 'faster' SPI port 1 because there is no QSPI support, and reading fast from the SPI is important if you want to stream audio clips or GIFs.
In CircuitPython the SPI flash is automatically used as the filesystem exposed over USB.
In Arduino you can access SPI flash with our library and adding this definition to the top of your sketch to instantiate the SPI flash. SPIClass SPI_FLASH(PIN_SPI1_MOSI, PIN_SPI1_MISO, PIN_SPI1_SCK, PIN_SPI1_SS); Adafruit_FlashTransport_SPI flashTransport(PIN_SPI1_SS, &SPI_FLASH);
Note that our SPI flash library cannot be used at the same time as the SDIO library because they have colliding File definitions.
PIN_SPI1_MOSI, PIN_SPI1_MISO, PIN_SPI1_SCK, and PIN_SPI1_SS do not exist in the pin definitions, their PIN_SPI3_* variants do, so that needs to be updated and/or corrected. The PIN_SPI3_* variants do match what is outlined on the schematic.
Now, onto the actual issue, I cannot seem to access the onboard flash at all. Perhaps something I have setup is wrong, but the sketch hangs at begin() and doesn't continue on. I tested this against two Feathers and get the same result.
My Feather is communicating with other devices via CAN bus, but that is the only majorly unique thing about my setup. I wouldn't think that would affect SPI, but I could be wrong.
How to reproduce ?
Upload the sketch and see for yourself.
Debug Log as attached txt file
No output. Again, the sketch hangs.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
Operating System
Linux
IDE version
PlatformIO 3.3.3/VSCode
Board
Adafruit STM32 Feather Express
BSP version
Unknown
SPIFlash Library version
5.0.0
Sketch as attached file if not stock example
What happened ?
First, I would like to state the documentation for the Feather is out of date, or out of sync with actual implementation.
Near the bottom of the page, the guide states
PIN_SPI1_MOSI
,PIN_SPI1_MISO
,PIN_SPI1_SCK
, andPIN_SPI1_SS
do not exist in the pin definitions, theirPIN_SPI3_*
variants do, so that needs to be updated and/or corrected. ThePIN_SPI3_*
variants do match what is outlined on the schematic.Now, onto the actual issue, I cannot seem to access the onboard flash at all. Perhaps something I have setup is wrong, but the sketch hangs at
begin()
and doesn't continue on. I tested this against two Feathers and get the same result.My Feather is communicating with other devices via CAN bus, but that is the only majorly unique thing about my setup. I wouldn't think that would affect SPI, but I could be wrong.
How to reproduce ?
Upload the sketch and see for yourself.
Debug Log as attached txt file
No output. Again, the sketch hangs.
Screenshots
No response
The text was updated successfully, but these errors were encountered: