I posted this question a few days ago. I’ve made a little bit of progress, but am still very confused and frustrated. I have multiple issues, but for now I’ll stay focused on my issue with the CRC library. Here’s my platformio.ini:
[env:teensy40]
platform = teensy
board = teensy40
framework = arduino
lib_ldf_mode = chain+
lib_deps =
elapsedMillis
robtillaart/CRC @ ^0.3.0
lib_extra_dirs =
/Users/keith/Documents/PlatformIO/Projects/EFD_libraries
When I delete the .pio folder and do a clean build, I get:
Unpacking [####################################] 100%
Library Manager: elapsedMillis @ 1.0.6 has been installed!
Library Manager: Installing robtillaart/CRC @ ^0.3.0
Unpacking [------------------------------------] 0%
Unpacking [#-----------------------------------] 2%
…
Unpacking [####################################] 100%
Library Manager: CRC @ 0.3.0 has been installed!
Found 107 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <elapsedMillis> 1.0.6
|-- <CRC> 0.3.0
| |-- <FireScript2>
| | |-- <ColorUtilsHsi>
| | |-- <SdFileMgr>
| | | |-- <SPI> 1.0
| | | |-- <SD> 2.0.0
| | | | |-- <SdFat> 2.1.0
| | | | | |-- <SPI> 1.0
| | | | |-- <SPI> 1.0
| | | |-- <SdFat> 2.1.0
| | | | |-- <SPI> 1.0
| | |-- <SPI> 1.0
| | |-- <SD> 2.0.0
| | | |-- <SdFat> 2.1.0
| | | | |-- <SPI> 1.0
| | | |-- <SPI> 1.0
| | |-- <SdFat> 2.1.0
| | | |-- <SPI> 1.0
|-- <FireScript2>
| |-- <ColorUtilsHsi>
| |-- <SdFileMgr>
| | |-- <SPI> 1.0
| | |-- <SD> 2.0.0
| | | |-- <SdFat> 2.1.0
| | | | |-- <SPI> 1.0
| | | |-- <SPI> 1.0
| | |-- <SdFat> 2.1.0
| | | |-- <SPI> 1.0
| |-- <SPI> 1.0
| |-- <SD> 2.0.0
| | |-- <SdFat> 2.1.0
| | | |-- <SPI> 1.0
| | |-- <SPI> 1.0
| |-- <SdFat> 2.1.0
| | |-- <SPI> 1.0
|-- <ColorUtilsHsi>
|-- <SdFileMgr>
| |-- <SPI> 1.0
| |-- <SD> 2.0.0
| | |-- <SdFat> 2.1.0
| | | |-- <SPI> 1.0
| | |-- <SPI> 1.0
| |-- <SdFat> 2.1.0
| | |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <SD> 2.0.0
| |-- <SdFat> 2.1.0
| | |-- <SPI> 1.0
| |-- <SPI> 1.0
|-- <SdFat> 2.1.0
| |-- <SPI> 1.0
Building in release mode
…
Compiling .pio/build/teensy40/lib9eb/FireScript2/SlicBus.cpp.o
src/SlicBus.cpp:22:19: fatal error: CRC16.h: No such file or directory
***************************************************************
* Looking for CRC16.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:CRC16.h"
* Web > https://registry.platformio.org/search?q=header:CRC16.h
*
***************************************************************
compilation terminated.
*** [.pio/build/teensy40/lib9eb/FireScript2/SlicBus.cpp.o] Error 1
======================================================================= [FAILED] Took 15.50 seconds =======================================================================
In the libdeps folder I can see the CRC folder and the CRC16.h header file, but it’s still not being found during compilation. The only way to get the program to compile is to copy the CRC16.h file (and another header file that it references) into my top level include folder. But I shouldn’t have to do that.
What’s going on? Is there something strange about the CRC library, am I doing something wrong, or is PIO having a problem?