Closed MrPorcine closed 10 months ago
Just tested, and this indeed occurs when using Arduino one, but compiled fine with Adafruit core. Would you mind switching to use Adafruit core for now, we will try to either
Please pardon a newbie to arduino stuff. I think I found the board files on my local system:
~/.arduino15/packages/arduino/hardware/samd/1.8.13/variants/circuitplay
Assuming this is what I need, where are the newer files in the repository?
to use adafruit core, please follow this guide https://learn.adafruit.com/adafruit-arduino-ide-setup/arduino-1-dot-6-x-ide . Basically your need to
Using adafruit package will also enable the use of TinyUSB and other libs from Adafruit ecosystem as well. Let me know if these work for you
Sorry for the late reply. I found the Arduino library SPIMemory that works with the Circuit Playground and fits my application very well. All I need is readByte, writeByte and eraseSector, so SPIMemory is a simple solution. Once you call the constructor with the select pin used on the CP,
SPIFlash flash(33) ;
all works.
no problems, I am glad you find your solution. We will leave this open until we fixed this though. Have fun.
Operating System
Linux
IDE version
Arduino 1.8.19
Board
Circuit Playground Express
BSP version
Adafruit Circuit Playground Express
SPIFlash Library version
4.0.0
Sketch as attached file if not stock example
Stock example "flash_info"
What happened ?
load "flash_info" example. Compile fails with message "#error No (Q)SPI flash are defined for your board !". I see that there was a fix for this some time ago " Fixed for CPX #27 " Oct 2, 2019. Am I missing some #define?
How to reproduce ?
Above.
Debug Log as attached txt file
No response
Screenshots
No response