Closed ubiru closed 2 years ago
That is strange, I do not have any issue on this. Did you installed this library as indicated in the developper.md guide ?
Flash - FlashStorage by various version 1.0.0 (not yet implemented)
Yes i did. I've just rechecked it again. But when i compiled it, still the same error result.
Looks like when building it use the one packaged with seeed SAMD boards and not the one of your library folder
Could you remove from this packaged folder (delete the whole FlashStorage
folder)
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\
Then restart Arduino IDE and try recompiling
Looks like when building it use the one packaged with seeed SAMD boards and not the one of your library folder Could you remove from this packaged folder (delete the whole
FlashStorage
folder)\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\
Then restart Arduino IDE and try recompiling
Still can't. i've deleted that FlashStorage folder and got this result when compiling:
\Arduino\libraries\WioLoRaWANFieldTester-master\storeConf.cpp:20:10: fatal error: FlashStorage.h: No such file or directory
ResolveLibrary(FlashStorage.h)
-> candidates: []~~~
compilation terminated.
anyhow, just reinstall the board manager with the latest version (1.8.2) and install the FlashStorage lib from library manager in Arduino. And i was using the latest WilLorawanFiledTester version. Then it works. No error log again on the FlashStorage (I don't know why it didn't work before with 1.8.1 and previous version of tester software).
Dear Paul,
I've tried to upload your code using ArduinoIDE. After updating the library, finally stucked on the Flashstorage.cpp error. Is there a way to overcome this? I've tried board manager for Seeed Wio terminal from board manager version 1.8.2 and 1.8.1. Both failed on this Flashstorage.cpp error. Here is the error:
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:73:52: note: suggested alternative: 'NVMCTRL_CTRLB_CMD_WP'
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:74:33: error: 'volatile struct NVMCTRL_INTFLAG_Type::' has no member named 'READY'
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp: In member function 'void FlashClass::erase(const volatile void*)':
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:92:24: error: 'NVMCTRL_CTRLA_CMDEX_KEY' was not declared in this scope
NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMDEX_KEY | NVMCTRL_CTRLA_CMD_ER;
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:92:24: note: suggested alternative: 'NVMCTRL_CTRLB_CMDEX_KEY'
NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMDEX_KEY | NVMCTRL_CTRLA_CMD_ER;
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:92:50: error: 'NVMCTRL_CTRLA_CMD_ER' was not declared in this scope
NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMDEX_KEY | NVMCTRL_CTRLA_CMD_ER;
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:92:50: note: suggested alternative: 'NVMCTRL_CTRLB_CMD_EP'
NVMCTRL->CTRLA.reg = NVMCTRL_CTRLA_CMDEX_KEY | NVMCTRL_CTRLA_CMD_ER;
\ArduinoData\packages\Seeeduino\hardware\samd\1.8.2\libraries\FlashStorage\src\FlashStorage.cpp:93:32: error: 'volatile struct NVMCTRL_INTFLAG_Type::' has no member named 'READY'
while (!NVMCTRL->INTFLAG.bit.READY) { }