Open ryanfobel opened 6 years ago
Add the following to the platformio.ini file:
platformio.ini
[env:zero] platform = atmelsam framework = arduino board = zero build_flags = !python build_flags.py
The build fails with the following error related to not finding an EEPROM.h file:
EEPROM.h
[11/30/17 09:37:34] Processing zero (platform: atmelsam, build_flags: !python build _flags.py, board: zero, framework: arduino) ---------------------------------------------------------------------------------- PlatformManager: Installing atmelsam Downloading [####################################] 100% Unpacking [####################################] 100% atmelsam @ 2.7.1 has been successfully installed! The platform 'atmelsam' has been successfully installed! The rest of packages will be installed automatically depending on your build enviro nment. PackageManager: Installing framework-arduinosam @ ~2.10616.1 Downloading [####################################] 100% Unpacking [####################################] 100% Verbose mode can be enabled via `-v, --verbose` option Converting base_node_rpc.ino Collected 32 compatible libraries Looking for dependencies... Library Dependency Graph |-- <CArrayDefs> |-- <SPI> v1.0 |-- <Wire> v1.0 |-- <nanopb> v0.3.7 |-- <BaseNodeRpc> | |-- <CArrayDefs> | |-- <SPI> v1.0 | |-- <Wire> v1.0 | |-- <nanopb> v0.3.7 | |-- <NadaMQ> | | |-- <CArrayDefs> | | |-- <nanopb> v0.3.7 | |-- <Memory> |-- <Memory> |-- <NadaMQ> | |-- <CArrayDefs> | |-- <nanopb> v0.3.7 |-- <ArduinoRpc> v1.10 | |-- <CArrayDefs> | |-- <NadaMQ> | | |-- <CArrayDefs> | | |-- <nanopb> v0.3.7 Compiling .pioenvs\zero\src\base_node_rpc.ino.o Compiling .pioenvs\zero\FrameworkArduinoVariant\variant.o C:/Users/Wheeler/Documents/dev/python/base-node-rpc/src/base_node_rpc.ino:3:20: fat al error: EEPROM.h: No such file or directory #include "SPI.h" ^ compilation terminated. Compiling .pioenvs\zero\FrameworkArduino\IPAddress.o *** [.pioenvs\zero\src\base_node_rpc.ino.o] Error 1 Compiling .pioenvs\zero\FrameworkArduino\Print.o
We can use this FlashStorage library to emulate the EEPROM functionality.
Add the following to the
platformio.ini
file:The build fails with the following error related to not finding an
EEPROM.h
file: