Seeed-Studio / ArduinoCore-mbed

3 stars 6 forks source link

Spi Flash write read demo is not compiling #8

Open nobodyman1 opened 2 years ago

nobodyman1 commented 2 years ago

flash_write_read.ino is not compiling.

QSPIFBlockDevice.h: No such file or directory

If I change the include to the full path #include "x:\arduino-1.8.19\portable\packages\Seeeduino\hardware\nrf52\2.6.1\cores\arduino\mbed\storage\blockdevice\COMPONENT_QSPIF\include\QSPIF\QSPIFBlockDevice.h" a lot of errors are shown, e.g. x:\arduino-1.8.19\portable\packages\Seeeduino\hardware\nrf52\2.6.1\cores\arduino\mbed\storage\blockdevice\COMPONENT_QSPIF\include\QSPIF\QSPIFBlockDevice.h:266:5: error: 'qspi_status_t' does not name a type; did you mean 'spi_inst_t'?

elidonner commented 2 years ago

If you are using the Arduino IDE, make sure you have the correct board selected. This solved the issue for me.

elidonner commented 2 years ago

With the update to 2.7.2, I am now also getting this issue.

bradocchs commented 1 year ago

I'm also trying to run this example but getting this error: Compilation error: 'QSPI_FLASH1_IO0' was not declared in this scope I'm using version 2.9.1 of the mbed ArduinoCore.

Ideas?

josephduchesne commented 9 months ago

@bigbearishappy the new build you did here: https://github.com/arduino/ArduinoCore-mbed/commit/9f627f62683f55172d0abd064b5ec3b451030899 seems to have been reverted. The latest 2.9.2 version has the headers for QSPI, but libmbed.a doesn't have the QSPI symbols. I swapped in the version from that commit last year and it fixed the problem (and probably broke other things).