Have been attempting to start a UAVCAN model for use with a Teensy 4.0, so far without success. The Teensy allows me to use the Arduino programming environment, with an added library. (Well, several, actually.) None of the models will compile, for a variety of reasons.
One that I am currently working on is libuavcan-Teensy-3.x from Github -
I have attempted to compile the uavcan-Teensy-gnsFix-publish module. It won’t compile, throwing the error message
"C:\\Program Files (x86)\\arduino-1.8.16\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib + -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard - + mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL + -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\arduino-1.8.16\\hardware\\teensy\\avr\\cores\\teensy4" + "-IC:\\Users\\hayes\\Documents\\Arduino\\libraries\\libuavcan_teensy\\src" + "C:\\Users\\hayes\\Documents\\Arduino\\libraries\\libuavcan_teensy\\src\\uavcan\\uavcan_teensy\\IFCT.cpp" -o nul Alternatives for kinetis.h:  ResolveLibrary(kinetis.h)Arduino\libraries\libuavcan_teensy\src\uavcan\uavcan_teensy\IFCT.cpp:31:21: fatal error: kinetis.h: No such file or directory -> candidates:  compilation terminated.
I have searched for the
#include <kinetis.h> statement, and it is in the ifct.cpp file, which is itself referenced in another file. The compiler won’t accept changes to the text of ifct.cpp - I have attempted to comment out the #include <kinetis.h> statement, and the compiler throws the same error.
Does anyone have any suggestions for fixing this? This library is created by a developer on the forum.pjrc.com site. I would like to ask a question on that site, but so far haven’t been granted permission to post comments.