I have a XIAO RA4M1.
I want to use SPI serial flash memory because the memory capacity of RA4M1is insufficient.
So, I am trying the “Adafruit SPI FLASH Breakout - W25Q16 - 16 Mbit / 2 MByte”.
As a result of communicating using the “Adafruit_SPIFlash library”, the XIAO RA4M1 was unable to recognize the SPI FLASH.
It seems that the SPI pin assignment (XIAO RA4M1 has two SPI ports!) is different from the XIAO RA4M1.
Do you know how to change the SPI assignment?
Yes, If you look (use the forum search too)there is a Demo with code example of the Xiao Grove Expansion Board, It allows an external SPI flash chip to be added to the bottom of the board. The examples both Nrf52840 and Xiao Esp32C3 use the Adafruit SPI-Flash LIB.
It is similar to the Adafruit BO, so have a Look there and at the Wiki for them both.
and Here…
HTH
GL PJ
Post up your code using the code tags " </> " above , paste it in there. Lots of smart folks here will help.
Connect the SPI Flash module to the appropriate SPI pins on the XIAO RA4M1:
MOSI (Master Out Slave In) → To the breakout’s DI.
MISO (Master In Slave Out) → To the breakout’s DO.
SCLK (Clock) → To the breakout’s CLK.
CS (Chip Select) → To the breakout’s CS.