Closed capsulecorplab closed 5 months ago
Arduino has an implicit main that's added by the editor, you'll need to create one to use this project (can probably just get away with adding int main() {setup; loop();}
at the end in the example you linked), I guess I should add that to documentation.
Actually, would be
int main() {
setup();
while true {
loop();
}
}
sry, rusty on this
I needed parentheses around true
, but otherwise, it compiles!
int main() {
setup();
while (true) {
loop();
}
}
Attempting to program a Teensy 3.2 using the same sketch, but encountering errors with FlexIO
$ ./program.sh 32
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 158.7kB
Step 1/37 : FROM ubuntu:20.04
---> 83a4bf3bb050
Step 2/37 : ARG WORKDIR=/root
---> Using cache
---> 2088ae0d6f03
Step 3/37 : ENV DOCKER_ARDUINO_VERSION=arduino-1.8.19
---> Using cache
---> a64f692fe0ef
Step 4/37 : ENV DOCKER_TEENSY_TD_VERSION=td_156
---> Using cache
---> 47a5dbeecace
Step 5/37 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> 0db6bea9dd2f
Step 6/37 : RUN apt -y update && apt -y install avr-libc binutils-avr cmake g++ gcc gcc-avr git libfontconfig1 libusb-dev libxft-dev make python3.8 unzip vim wget xz-utils && apt clean && rm -rf /var/lib/apt/lists
---> Using cache
---> 52d95ce3b8ee
Step 7/37 : RUN mkdir -p /etc/udev/rules.d/ && echo ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04*", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_PORT_IGNORE}="1" ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789a]*", ENV{MTP_NO_PROBE}="1" KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04*", MODE:="0666", RUN:="/bin/stty -F /dev/%k raw -echo" KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04*", MODE:="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04*", MODE:="0666" >> /etc/udev/rules.d/00-teensy.rules
---> Using cache
---> 55655d018e9e
Step 8/37 : WORKDIR /teensyduino
---> Using cache
---> 1e1ec2ab3bf3
Step 9/37 : RUN wget -q https://downloads.arduino.cc/${DOCKER_ARDUINO_VERSION}-linux64.tar.xz && wget -q https://www.pjrc.com/teensy/${DOCKER_TEENSY_TD_VERSION}/TeensyduinoInstall.linux64
---> Using cache
---> a037ebb3c8ca
Step 10/37 : WORKDIR /teensy_cli
---> Using cache
---> 0f64ede59e05
Step 11/37 : RUN git clone -q https://github.com/PaulStoffregen/teensy_loader_cli && cd teensy_loader_cli && make && cd rebootor && make
---> Using cache
---> ea238b6a3f9f
Step 12/37 : ENV PATH="$PATH:/teensy_cli/teensy_loader_cli/"
---> Using cache
---> 5d955a355ef1
Step 13/37 : WORKDIR /teensyduino
---> Using cache
---> 63b8ca0560ad
Step 14/37 : RUN tar -xf ${DOCKER_ARDUINO_VERSION}-linux64.tar.xz && rm ${DOCKER_ARDUINO_VERSION}-linux64.tar.xz && chmod 755 TeensyduinoInstall.linux64 && ./TeensyduinoInstall.linux64 --dir=/teensyduino/${DOCKER_ARDUINO_VERSION} && mkdir -p ./libraries && mkdir -p ./cores && mkdir -p ./src && cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/teensy/avr/libraries/* ./libraries && cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/teensy/avr/cores/* ./cores
---> Using cache
---> e2cdfac9a02d
Step 15/37 : WORKDIR /teensyduino/libraries
---> Using cache
---> d9b3645a640b
Step 16/37 : RUN git clone https://github.com/adafruit/Adafruit_BusIO.git && git clone https://github.com/adafruit/Adafruit-GFX-Library.git && mkdir /src
---> Using cache
---> 2db85b2ba032
Step 17/37 : WORKDIR /teensyduino/bin
---> Using cache
---> 787d75edad7b
Step 18/37 : RUN cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/bin/* . && cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/lib/gcc/arm-none-eabi/5.4.1/* . && cp -u /teensyduino/cores/teensy3/*.ld . && cp -u /teensyduino/cores/teensy4/*.ld . && mkdir -p /teensyduino/lib/gcc && cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/lib/gcc/arm-none-eabi/5.4.1/* /teensyduino/lib/gcc
---> Using cache
---> 85b0a4e6fb1a
Step 19/37 : WORKDIR /teensyduino/include
---> Using cache
---> bb851de7420a
Step 20/37 : RUN cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/arm-none-eabi/include/* . && cp -r /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/arm-none-eabi/lib/armv7e-m/* . && cp /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/arm-none-eabi/lib/nano.specs . && cp /teensyduino/${DOCKER_ARDUINO_VERSION}/hardware/tools/arm/arm-none-eabi/lib/lib* . && mv crt0.o /teensyduino/lib/gcc
---> Using cache
---> e2a249f44e74
Step 21/37 : ENV PATH="/teensyduino/bin:/teensyduino/include:/teensyduino/bin/plugin/include:$PATH"
---> Using cache
---> bd7e94a29c0d
Step 22/37 : WORKDIR /teensyduino
---> Using cache
---> 5ecfee83f58d
Step 23/37 : RUN mkdir -p /teensyduino/install && mkdir -p /teensyduino/build
---> Using cache
---> 199d9015efdb
Step 24/37 : ADD internal/CMake/project_root/* /teensyduino/
---> Using cache
---> 96a57088bf92
Step 25/37 : ADD internal/CMake/toolchain/* /teensyduino/
---> Using cache
---> 10a49ba9c867
Step 26/37 : ADD config.json /teensyduino/
---> Using cache
---> 539ab76bc6ae
Step 27/37 : ADD internal/CMake/select_all/CMakeLists.txt /teensyduino/cores/teensy3
---> Using cache
---> b46738ff4dc8
Step 28/37 : ADD internal/CMake/select_all/CMakeLists.txt /teensyduino/cores/teensy4
---> Using cache
---> c5afb38c8bf6
Step 29/37 : ADD internal/CMake/select_all/CMakeLists.txt /teensyduino/src
---> Using cache
---> 82e7d6cfe0d6
Step 30/37 : RUN rm /teensyduino/cores/teensy3/main.* && rm /teensyduino/cores/teensy4/main.* && rm /teensyduino/cores/teensy4/Blink.cc
---> Using cache
---> dc82dbd9a69d
Step 31/37 : WORKDIR /helper_scripts
---> Using cache
---> 079c9268c11b
Step 32/37 : ADD internal/internal_scripts/* /helper_scripts/
---> Using cache
---> 3beed0c1eaa3
Step 33/37 : ENV PYTHONPATH="${PYTHONPATH}:/helper_scripts"
---> Using cache
---> 47ce00628516
Step 34/37 : RUN cp /teensyduino/bin/arm-none-eabi-as /usr/bin/as
---> Using cache
---> e45a5c976edd
Step 35/37 : WORKDIR /teensyduino
---> Using cache
---> ba0349f757b5
Step 36/37 : RUN rm -rf ./${DOCKER_ARDUINO_VERSION} && rm TeensyduinoInstall.linux64
---> Using cache
---> 9b7626313339
Step 37/37 : CMD ["/bin/bash","/helper_scripts/entrypoint.sh"]
---> Using cache
---> c0e4e965732f
Successfully built c0e4e965732f
Successfully tagged teensy_dev:latest
cp: cannot stat '/libs/*': No such file or directory
/teensyduino/libraries
-- Using Teensy3 Core
-- /teensyduino/libraries
-- AccelStepper/src
-- Adafruit_nRF8001/utility
-- Audio/utility
-- Bounce2/src
-- CryptoAccel/src
-- Encoder/utility
-- Ethernet/src
-- Ethernet/src/utility
-- FNET/src
-- FastLED/src
-- FlexIO_t4/src
-- ILI9488_t3/src
-- IRremote/src
-- Keypad/src
-- LedControl/src
-- LiquidCrystal/src
-- LittleFS/src
-- MFRC522/src
-- MIDI/src
-- NXPMotionSense/utility
-- NativeEthernet/src
-- NativeEthernet/src/utility
-- PS2Keyboard/utility
-- ResponsiveAnalogRead/src
-- SD/src
-- SdFat/src
-- Snooze/src
-- USBHost_t36/utility
-- Wire/utility
-- ADC
-- AccelStepper
-- Adafruit-GFX-Library
-- Adafruit_BusIO
-- Adafruit_NeoPixel
-- Adafruit_STMPE610
-- Adafruit_VS1053
-- Adafruit_nRF8001
-- AltSoftSerial
-- Artnet
-- Audio
-- Bounce
-- Bounce2
-- CapacitiveSensor
-- CryptoAccel
-- DS1307RTC
-- DmxSimple
-- DogLcd
-- EEPROM
-- EasyTransfer
-- EasyTransferI2C
-- Encoder
-- Entropy
-- Ethernet
-- FNET
-- FastCRC
-- FastLED
-- FlexCAN
-- FlexCAN_T4
-- FlexIO_t4
-- FlexiTimer2
-- FreqCount
-- FreqMeasure
-- FreqMeasureMulti
-- FrequencyTimer2
-- ILI9341_t3
-- ILI9488_t3
-- IRremote
-- Keypad
-- LedControl
-- LedDisplay
-- LiquidCrystal
-- LiquidCrystalFast
-- LittleFS
-- LowPower
-- MFRC522
-- MIDI
-- Metro
-- MsTimer2
-- NXPMotionSense
-- NativeEthernet
-- OSC
-- OctoWS2811
-- OneWire
-- PS2Keyboard
-- PWMServo
-- Ping
-- PulsePosition
-- QuadEncoder
-- RA8875
-- RadioHead
-- ResponsiveAnalogRead
-- SD
-- SPI
-- SPIFlash
-- ST7735_t3
-- SdFat
-- SerialFlash
-- Servo
-- ShiftPWM
-- Snooze
-- SoftPWM
-- SoftwareSerial
-- TFT_ILI9163C
-- Talkie
-- TeensyThreads
-- Time
-- TimeAlarms
-- TimerOne
-- TimerThree
-- TinyGPS
-- Tlc5940
-- TouchScreen
-- USBHost_t36
-- UTFT
-- VirtualWire
-- WS2812Serial
-- Wire
-- XBee
-- XPT2046_Touchscreen
-- i2c_t3
-- ks0108
-- ssd1351
-- x10
-- /teensyduino/libraries/AccelStepper/src/teensyduino/libraries/Adafruit_nRF8001/utility/teensyduino/libraries/Audio/utility/teensyduino/libraries/Bounce2/src/teensyduino/libraries/CryptoAccel/src/teensyduino/libraries/Encoder/utility/teensyduino/libraries/Ethernet/src/teensyduino/libraries/Ethernet/src/utility/teensyduino/libraries/FNET/src/teensyduino/libraries/FastLED/src/teensyduino/libraries/FlexIO_t4/src/teensyduino/libraries/ILI9488_t3/src/teensyduino/libraries/IRremote/src/teensyduino/libraries/Keypad/src/teensyduino/libraries/LedControl/src/teensyduino/libraries/LiquidCrystal/src/teensyduino/libraries/LittleFS/src/teensyduino/libraries/MFRC522/src/teensyduino/libraries/MIDI/src/teensyduino/libraries/NXPMotionSense/utility/teensyduino/libraries/NativeEthernet/src/teensyduino/libraries/NativeEthernet/src/utility/teensyduino/libraries/PS2Keyboard/utility/teensyduino/libraries/ResponsiveAnalogRead/src/teensyduino/libraries/SD/src/teensyduino/libraries/SdFat/src/teensyduino/libraries/Snooze/src/teensyduino/libraries/USBHost_t36/utility/teensyduino/libraries/Wire/utilityADCAccelStepperAdafruit-GFX-LibraryAdafruit_BusIOAdafruit_NeoPixelAdafruit_STMPE610Adafruit_VS1053Adafruit_nRF8001AltSoftSerialArtnetAudioBounceBounce2CapacitiveSensorCryptoAccelDS1307RTCDmxSimpleDogLcdEEPROMEasyTransferEasyTransferI2CEncoderEntropyEthernetFNETFastCRCFastLEDFlexCANFlexCAN_T4FlexIO_t4FlexiTimer2FreqCountFreqMeasureFreqMeasureMultiFrequencyTimer2ILI9341_t3ILI9488_t3IRremoteKeypadLedControlLedDisplayLiquidCrystalLiquidCrystalFastLittleFSMFRC522MIDIMetroMsTimer2NXPMotionSenseOSCOctoWS2811OneWirePS2KeyboardPWMServoPingPulsePositionRA8875RadioHeadResponsiveAnalogReadSDSPISPIFlashST7735_t3SdFatSerialFlashServoShiftPWMSnoozeSoftPWMSoftwareSerialTFT_ILI9163CTalkieTeensyThreadsTimeTimeAlarmsTimerOneTimerThreeTinyGPSTlc5940TouchScreenUTFTVirtualWireWS2812SerialWireXBeeXPT2046_Touchscreeni2c_t3ssd1351x10
-- ADCAccelStepperAdafruit-GFX-LibraryAdafruit_BusIOAdafruit_NeoPixelAdafruit_STMPE610Adafruit_VS1053Adafruit_nRF8001AltSoftSerialArtnetAudioBounceBounce2CapacitiveSensorCryptoAccelDS1307RTCDmxSimpleDogLcdEEPROMEasyTransferEasyTransferI2CEncoderEntropyEthernetFNETFastCRCFastLEDFlexCANFlexCAN_T4FlexIO_t4FlexiTimer2FreqCountFreqMeasureFreqMeasureMultiFrequencyTimer2ILI9341_t3ILI9488_t3IRremoteKeypadLedControlLedDisplayLiquidCrystalLiquidCrystalFastLittleFSMFRC522MIDIMetroMsTimer2NXPMotionSenseOSCOctoWS2811OneWirePS2KeyboardPWMServoPingPulsePositionRA8875RadioHeadResponsiveAnalogReadSDSPISPIFlashST7735_t3SdFatSerialFlashServoShiftPWMSnoozeSoftPWMSoftwareSerialTFT_ILI9163CTalkieTeensyThreadsTimeTimeAlarmsTimerOneTimerThreeTinyGPSTlc5940TouchScreenUTFTVirtualWireWS2812SerialWireXBeeXPT2046_Touchscreeni2c_t3ssd1351x10
-- /teensyduino/libraries/AccelStepper/src/teensyduino/libraries/Adafruit_nRF8001/utility/teensyduino/libraries/Audio/utility/teensyduino/libraries/Bounce2/src/teensyduino/libraries/CryptoAccel/src/teensyduino/libraries/Encoder/utility/teensyduino/libraries/Ethernet/src/teensyduino/libraries/Ethernet/src/utility/teensyduino/libraries/FNET/src/teensyduino/libraries/FastLED/src/teensyduino/libraries/FlexIO_t4/src/teensyduino/libraries/ILI9488_t3/src/teensyduino/libraries/IRremote/src/teensyduino/libraries/Keypad/src/teensyduino/libraries/LedControl/src/teensyduino/libraries/LiquidCrystal/src/teensyduino/libraries/LittleFS/src/teensyduino/libraries/MFRC522/src/teensyduino/libraries/MIDI/src/teensyduino/libraries/NXPMotionSense/utility/teensyduino/libraries/NativeEthernet/src/teensyduino/libraries/NativeEthernet/src/utility/teensyduino/libraries/PS2Keyboard/utility/teensyduino/libraries/ResponsiveAnalogRead/src/teensyduino/libraries/SD/src/teensyduino/libraries/SdFat/src/teensyduino/libraries/Snooze/src/teensyduino/libraries/USBHost_t36/utility/teensyduino/libraries/Wire/utilityADCAccelStepperAdafruit-GFX-LibraryAdafruit_BusIOAdafruit_NeoPixelAdafruit_STMPE610Adafruit_VS1053Adafruit_nRF8001AltSoftSerialArtnetAudioBounceBounce2CapacitiveSensorCryptoAccelDS1307RTCDmxSimpleDogLcdEEPROMEasyTransferEasyTransferI2CEncoderEntropyEthernetFNETFastCRCFastLEDFlexCANFlexCAN_T4FlexIO_t4FlexiTimer2FreqCountFreqMeasureFreqMeasureMultiFrequencyTimer2ILI9341_t3ILI9488_t3IRremoteKeypadLedControlLedDisplayLiquidCrystalLiquidCrystalFastLittleFSMFRC522MIDIMetroMsTimer2NXPMotionSenseOSCOctoWS2811OneWirePS2KeyboardPWMServoPingPulsePositionRA8875RadioHeadResponsiveAnalogReadSDSPISPIFlashST7735_t3SdFatSerialFlashServoShiftPWMSnoozeSoftPWMSoftwareSerialTFT_ILI9163CTalkieTeensyThreadsTimeTimeAlarmsTimerOneTimerThreeTinyGPSTlc5940TouchScreenUTFTVirtualWireWS2812SerialWireXBeeXPT2046_Touchscreeni2c_t3ssd1351x10
-- Configuring done
-- Generating done
-- Build files have been written to: /teensyduino/build
[ 1%] Built target x10
[ 2%] Built target Adafruit_NeoPixel
[ 3%] Built target AltSoftSerial
[ 3%] Built target ADC
[ 4%] Built target AccelStepper
[ 5%] Built target Adafruit-GFX-Library
[ 6%] Built target CapacitiveSensor
[ 6%] Built target Adafruit_STMPE610
[ 6%] Built target Artnet
[ 7%] Built target Bounce
[ 8%] Built target Adafruit_VS1053
[ 9%] Built target Adafruit_nRF8001
[ 10%] Built target Adafruit_BusIO
[ 11%] Built target CryptoAccel
[ 11%] Built target Bounce2
[ 12%] Built target EEPROM
[ 12%] Built target DogLcd
[ 12%] Built target Encoder
[ 14%] Built target DS1307RTC
[ 14%] Built target Entropy
[ 14%] Built target DmxSimple
[ 14%] Built target FNET
[ 14%] Built target EasyTransfer
[ 14%] Built target FlexCAN_T4
[ 15%] Built target EasyTransferI2C
[ 18%] Built target Ethernet
[ 18%] Built target FastCRC
[ 19%] Building CXX object libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/src/FlexIOSPI.cpp.obj
[ 19%] Built target FlexCAN
[ 21%] Built target FastLED
[ 42%] Built target Audio
[ 42%] Building CXX object libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/src/FlexSerial.cpp.obj
[ 43%] Built target FrequencyTimer2
[ 43%] Built target FlexiTimer2
[ 44%] Built target FreqCount
In file included from /teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.h:29:0,
from /teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:1:
/teensyduino/libraries/FlexIO_t4/src/FlexIO_t4.h:35:2: error: #error "Sorry, Flex IO only works on Teensy 4.x boards"
#error "Sorry, Flex IO only works on Teensy 4.x boards"
^
[ 44%] Built target FreqMeasure
[ 44%] Built target Keypad
[ 47%] Built target ILI9488_t3
[ 47%] Built target LedControl
[ 47%] Built target ILI9341_t3
[ 48%] Built target FreqMeasureMulti
[ 50%] Built target IRremote
[ 50%] Built target LiquidCrystal
[ 50%] Built target LedDisplay
In file included from /teensyduino/libraries/FlexIO_t4/src/FlexSerial.h:29:0,
from /teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:1:
/teensyduino/libraries/FlexIO_t4/src/FlexIO_t4.h:35:2: error: #error "Sorry, Flex IO only works on Teensy 4.x boards"
#error "Sorry, Flex IO only works on Teensy 4.x boards"
^
[ 51%] Built target MIDI
[ 52%] Built target LittleFS
[ 52%] Built target LiquidCrystalFast
[ 52%] Built target Metro
[ 54%] Built target NXPMotionSense
[ 54%] Built target MFRC522
[ 56%] Built target OSC
[ 57%] Built target PulsePosition
[ 58%] Built target OneWire
[ 58%] Built target OctoWS2811
[ 58%] Built target Ping
[ 59%] Built target MsTimer2
[ 60%] Built target PWMServo
/teensyduino/libraries/FlexIO_t4/src/FlexIO_t4.h:89:2: error: 'IMXRT_FLEXIO_t' does not name a type
IMXRT_FLEXIO_t & port() { return *(IMXRT_FLEXIO_t *)port_addr; }
^
[ 60%] Built target PS2Keyboard
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'bool FlexIOSPI::begin()':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:76:2: error: 'IMXRT_FLEXIO_t' was not declared in this scope
IMXRT_FLEXIO_t *p = &_pflex->port();
^
[ 60%] Built target RA8875
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:76:18: error: 'p' was not declared in this scope
IMXRT_FLEXIO_t *p = &_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:76:31: error: 'class FlexIOHandler' has no member named 'port'
IMXRT_FLEXIO_t *p = &_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:110:29: error: 'FLEXIO_SHIFTCTL_TIMPOL' was not declared in this scope
p->SHIFTCTL[_tx_shifter] = FLEXIO_SHIFTCTL_TIMPOL | FLEXIO_SHIFTCTL_PINCFG(3) | FLEXIO_SHIFTCTL_SMOD(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:110:78: error: 'FLEXIO_SHIFTCTL_PINCFG' was not declared in this scope
p->SHIFTCTL[_tx_shifter] = FLEXIO_SHIFTCTL_TIMPOL | FLEXIO_SHIFTCTL_PINCFG(3) | FLEXIO_SHIFTCTL_SMOD(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:110:104: error: 'FLEXIO_SHIFTCTL_SMOD' was not declared in this scope
p->SHIFTCTL[_tx_shifter] = FLEXIO_SHIFTCTL_TIMPOL | FLEXIO_SHIFTCTL_PINCFG(3) | FLEXIO_SHIFTCTL_SMOD(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:111:61: error: 'FLEXIO_SHIFTCTL_TIMSEL' was not declared in this scope
FLEXIO_SHIFTCTL_TIMSEL(_timer) | FLEXIO_SHIFTCTL_PINSEL(_mosi_flex_pin); // 0x0003_0002;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:111:102: error: 'FLEXIO_SHIFTCTL_PINSEL' was not declared in this scope
FLEXIO_SHIFTCTL_TIMSEL(_timer) | FLEXIO_SHIFTCTL_PINSEL(_mosi_flex_pin); // 0x0003_0002;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:118:45: error: 'FLEXIO_TIMCTL_TRGSEL' was not declared in this scope
p->TIMCTL[_timer] = FLEXIO_TIMCTL_TRGSEL(1) | FLEXIO_TIMCTL_TRGPOL | FLEXIO_TIMCTL_TRGSRC
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:118:49: error: 'FLEXIO_TIMCTL_TRGPOL' was not declared in this scope
p->TIMCTL[_timer] = FLEXIO_TIMCTL_TRGSEL(1) | FLEXIO_TIMCTL_TRGPOL | FLEXIO_TIMCTL_TRGSRC
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:118:72: error: 'FLEXIO_TIMCTL_TRGSRC' was not declared in this scope
p->TIMCTL[_timer] = FLEXIO_TIMCTL_TRGSEL(1) | FLEXIO_TIMCTL_TRGPOL | FLEXIO_TIMCTL_TRGSRC
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:119:30: error: 'FLEXIO_TIMCTL_PINCFG' was not declared in this scope
| FLEXIO_TIMCTL_PINCFG(3) | FLEXIO_TIMCTL_PINSEL(_sck_flex_pin)| FLEXIO_TIMCTL_TIMOD(1); // 0x01C0_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:119:68: error: 'FLEXIO_TIMCTL_PINSEL' was not declared in this scope
| FLEXIO_TIMCTL_PINCFG(3) | FLEXIO_TIMCTL_PINSEL(_sck_flex_pin)| FLEXIO_TIMCTL_TIMOD(1); // 0x01C0_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:119:92: error: 'FLEXIO_TIMCTL_TIMOD' was not declared in this scope
| FLEXIO_TIMCTL_PINCFG(3) | FLEXIO_TIMCTL_PINSEL(_sck_flex_pin)| FLEXIO_TIMCTL_TIMOD(1); // 0x01C0_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:123:45: error: 'FLEXIO_TIMCFG_TIMOUT' was not declared in this scope
p->TIMCFG[_timer] = FLEXIO_TIMCFG_TIMOUT(1) | FLEXIO_TIMCFG_TIMDIS(2) | FLEXIO_TIMCFG_TIMENA(2)
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:123:71: error: 'FLEXIO_TIMCFG_TIMDIS' was not declared in this scope
p->TIMCFG[_timer] = FLEXIO_TIMCFG_TIMOUT(1) | FLEXIO_TIMCFG_TIMDIS(2) | FLEXIO_TIMCFG_TIMENA(2)
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:123:97: error: 'FLEXIO_TIMCFG_TIMENA' was not declared in this scope
p->TIMCFG[_timer] = FLEXIO_TIMCFG_TIMOUT(1) | FLEXIO_TIMCFG_TIMDIS(2) | FLEXIO_TIMCFG_TIMENA(2)
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:124:52: error: 'FLEXIO_TIMCFG_TSTOP' was not declared in this scope
| FLEXIO_TIMCFG_TSTOP(2) | FLEXIO_TIMCFG_TSTART; //0x0100_2222;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:124:56: error: 'FLEXIO_TIMCFG_TSTART' was not declared in this scope
| FLEXIO_TIMCFG_TSTOP(2) | FLEXIO_TIMCFG_TSTART; //0x0100_2222;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:131:7: error: 'FLEXIO_TIMCTL_PINPOL' was not declared in this scope
FLEXIO_TIMCTL_PINPOL | FLEXIO_TIMCTL_TIMOD(3); // 0003_0383;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:134:45: error: 'FLEXIO_TIMCFG_TIMOUT' was not declared in this scope
p->TIMCFG[_timer] = FLEXIO_TIMCFG_TIMOUT(1) | FLEXIO_TIMCFG_TIMDIS(2) | FLEXIO_TIMCFG_TIMENA(2);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:134:71: error: 'FLEXIO_TIMCFG_TIMDIS' was not declared in this scope
p->TIMCFG[_timer] = FLEXIO_TIMCFG_TIMOUT(1) | FLEXIO_TIMCFG_TIMDIS(2) | FLEXIO_TIMCFG_TIMENA(2);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:134:97: error: 'FLEXIO_TIMCFG_TIMENA' was not declared in this scope
p->TIMCFG[_timer] = FLEXIO_TIMCFG_TIMOUT(1) | FLEXIO_TIMCFG_TIMDIS(2) | FLEXIO_TIMCFG_TIMENA(2);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:138:12: error: 'FLEXIO_CTRL_FLEXEN' was not declared in this scope
p->CTRL = FLEXIO_CTRL_FLEXEN;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:146:36: error: 'IOMUXC_PAD_DSE' was not declared in this scope
uint32_t fastio = IOMUXC_PAD_DSE(7) | IOMUXC_PAD_SPEED(2);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:146:58: error: 'IOMUXC_PAD_SPEED' was not declared in this scope
uint32_t fastio = IOMUXC_PAD_DSE(7) | IOMUXC_PAD_SPEED(2);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:150:32: error: 'portControlRegister' was not declared in this scope
*(portControlRegister(_mosiPin)) = fastio;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:152:46: error: 'IOMUXC_PAD_PUE' was not declared in this scope
*(portControlRegister(_misoPin)) = fastio | IOMUXC_PAD_PUE | IOMUXC_PAD_PUS(3); // maybe add our own internal PU?
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:152:79: error: 'IOMUXC_PAD_PUS' was not declared in this scope
*(portControlRegister(_misoPin)) = fastio | IOMUXC_PAD_PUE | IOMUXC_PAD_PUS(3); // maybe add our own internal PU?
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:162:29: error: 'class FlexIOHandler' has no member named 'port'
_shiftBufOutReg = &_pflex->port().SHIFTBUFBBS[_tx_shifter];
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:163:28: error: 'class FlexIOHandler' has no member named 'port'
_shiftBufInReg = &_pflex->port().SHIFTBUFBIS[_rx_shifter];;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'void FlexIOSPI::beginTransaction(FlexIOSPISettings)':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:230:11: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().TIMCMP[_timer] = div | (_nTransferBits*2-1)<<8; // Set the clk div for shifter and set transfer length
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'void FlexIOSPI::setShiftBufferOut(uint32_t, uint8_t)':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:257:11: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().SHIFTBUFBIS[_tx_shifter] = val << (32-nbits);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:259:11: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().SHIFTBUF[_tx_shifter] = val;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'uint32_t FlexIOSPI::getShiftBufferIn(uint8_t)':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:288:21: error: 'class FlexIOHandler' has no member named 'port'
ret_val = _pflex->port().SHIFTBUFBIS[_rx_shifter];
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:290:21: error: 'class FlexIOHandler' has no member named 'port'
ret_val = _pflex->port().SHIFTBUF[_rx_shifter] >> (32-nbits);
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'uint32_t FlexIOSPI::transferNBits(uint32_t, uint8_t)':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:322:33: error: 'class FlexIOHandler' has no member named 'port'
uint16_t timcmp_save = _pflex->port().TIMCMP[_timer]; // remember value coming in
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:323:10: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().TIMCMP[_timer] = (timcmp_save & 0xff) | (nbits*2-1)<<8; // Adjust transmission length to nbits
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:328:14: error: 'class FlexIOHandler' has no member named 'port'
if (_pflex->port().SHIFTSTAT & _rx_shifter_mask) {
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:335:19: error: 'class FlexIOHandler' has no member named 'port'
while (!(_pflex->port().SHIFTSTAT & _rx_shifter_mask) && (--timeout)) ;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:337:14: error: 'class FlexIOHandler' has no member named 'port'
if (_pflex->port().SHIFTSTAT & _rx_shifter_mask) {
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:341:10: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().TIMCMP[_timer] = timcmp_save;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'void FlexIOSPI::transferBufferNBits(const void*, void*, size_t, uint8_t)':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:358:10: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().SHIFTERR = _rx_shifter_mask | _tx_shifter_mask; // clear out any previous errors
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:359:19: error: 'class FlexIOHandler' has no member named 'port'
while (!(_pflex->port().SHIFTSTAT & _tx_shifter_mask)) ; // wait for room for the first character
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:368:20: error: 'class FlexIOHandler' has no member named 'port'
while (!(_pflex->port().SHIFTSTAT & _tx_shifter_mask)) ;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:377:21: error: 'class FlexIOHandler' has no member named 'port'
while (!(_pflex->port().SHIFTSTAT & _rx_shifter_mask)) ;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:386:20: error: 'class FlexIOHandler' has no member named 'port'
while (!(_pflex->port().SHIFTSTAT & _rx_shifter_mask) && !(_pflex->port().SHIFTERR & _rx_shifter_mask)) ;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:386:70: error: 'class FlexIOHandler' has no member named 'port'
while (!(_pflex->port().SHIFTSTAT & _rx_shifter_mask) && !(_pflex->port().SHIFTERR & _rx_shifter_mask)) ;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'bool FlexIOSPI::transfer(const void*, void*, size_t, EventResponderRef)':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:532:10: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().SHIFTSDEN |= _rx_shifter_mask | _tx_shifter_mask;
^
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp: In member function 'void FlexIOSPI::dma_rxisr()':
/teensyduino/libraries/FlexIO_t4/src/FlexIOSPI.cpp:573:11: error: 'class FlexIOHandler' has no member named 'port'
_pflex->port().SHIFTSDEN &= ~(_rx_shifter_mask | _tx_shifter_mask); // turn off DMA on both RX and TX
^
make[2]: *** [libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/build.make:63: libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/src/FlexIOSPI.cpp.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
/teensyduino/libraries/FlexIO_t4/src/FlexIO_t4.h:89:2: error: 'IMXRT_FLEXIO_t' does not name a type
IMXRT_FLEXIO_t & port() { return *(IMXRT_FLEXIO_t *)port_addr; }
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp: In member function 'bool FlexSerial::begin(uint32_t, bool)':
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:47:3: error: 'IMXRT_FLEXIO_t' was not declared in this scope
IMXRT_FLEXIO_t *p = &_tx_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:47:19: error: 'p' was not declared in this scope
IMXRT_FLEXIO_t *p = &_tx_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:47:35: error: 'class FlexIOHandler' has no member named 'port'
IMXRT_FLEXIO_t *p = &_tx_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:97:53: error: 'FLEXIO_SHIFTCFG_SSTOP' was not declared in this scope
p->SHIFTCFG[_tx_shifter] = FLEXIO_SHIFTCFG_SSTOP(3) | FLEXIO_SHIFTCFG_SSTART(2); //0x0000_0032;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:97:81: error: 'FLEXIO_SHIFTCFG_SSTART' was not declared in this scope
p->SHIFTCFG[_tx_shifter] = FLEXIO_SHIFTCFG_SSTOP(3) | FLEXIO_SHIFTCFG_SSTART(2); //0x0000_0032;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:98:54: error: 'FLEXIO_SHIFTCTL_PINCFG' was not declared in this scope
p->SHIFTCTL[_tx_shifter] = FLEXIO_SHIFTCTL_PINCFG(3) | FLEXIO_SHIFTCTL_SMOD(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:98:80: error: 'FLEXIO_SHIFTCTL_SMOD' was not declared in this scope
p->SHIFTCTL[_tx_shifter] = FLEXIO_SHIFTCTL_PINCFG(3) | FLEXIO_SHIFTCTL_SMOD(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:99:65: error: 'FLEXIO_SHIFTCTL_TIMSEL' was not declared in this scope
FLEXIO_SHIFTCTL_TIMSEL(_tx_timer) | FLEXIO_SHIFTCTL_PINSEL(_tx_flex_pin); // 0x0003_0002;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:99:104: error: 'FLEXIO_SHIFTCTL_PINSEL' was not declared in this scope
FLEXIO_SHIFTCTL_TIMSEL(_tx_timer) | FLEXIO_SHIFTCTL_PINSEL(_tx_flex_pin); // 0x0003_0002;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:101:26: error: 'FLEXIO_TIMCFG_TSTART' was not declared in this scope
p->TIMCFG[_tx_timer] = FLEXIO_TIMCFG_TSTART | FLEXIO_TIMCFG_TSTOP(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:101:70: error: 'FLEXIO_TIMCFG_TSTOP' was not declared in this scope
p->TIMCFG[_tx_timer] = FLEXIO_TIMCFG_TSTART | FLEXIO_TIMCFG_TSTOP(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:102:51: error: 'FLEXIO_TIMCFG_TIMENA' was not declared in this scope
FLEXIO_TIMCFG_TIMENA(2) | FLEXIO_TIMCFG_TIMDIS(2); //0x0000_2222;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:102:78: error: 'FLEXIO_TIMCFG_TIMDIS' was not declared in this scope
FLEXIO_TIMCFG_TIMENA(2) | FLEXIO_TIMCFG_TIMDIS(2); //0x0000_2222;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:103:47: error: 'FLEXIO_TIMCTL_TIMOD' was not declared in this scope
p->TIMCTL[_tx_timer] = FLEXIO_TIMCTL_TIMOD(1) | FLEXIO_TIMCTL_TRGPOL | FLEXIO_TIMCTL_TRGSRC
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:103:51: error: 'FLEXIO_TIMCTL_TRGPOL' was not declared in this scope
p->TIMCTL[_tx_timer] = FLEXIO_TIMCTL_TIMOD(1) | FLEXIO_TIMCTL_TRGPOL | FLEXIO_TIMCTL_TRGSRC
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:103:74: error: 'FLEXIO_TIMCTL_TRGSRC' was not declared in this scope
p->TIMCTL[_tx_timer] = FLEXIO_TIMCTL_TIMOD(1) | FLEXIO_TIMCTL_TRGPOL | FLEXIO_TIMCTL_TRGSRC
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:104:69: error: 'FLEXIO_TIMCTL_TRGSEL' was not declared in this scope
| FLEXIO_TIMCTL_TRGSEL(4*_tx_shifter + 1) | FLEXIO_TIMCTL_PINSEL(_tx_flex_pin); // 0x01C0_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:104:106: error: 'FLEXIO_TIMCTL_PINSEL' was not declared in this scope
| FLEXIO_TIMCTL_TRGSEL(4*_tx_shifter + 1) | FLEXIO_TIMCTL_PINSEL(_tx_flex_pin); // 0x01C0_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:107:13: error: 'FLEXIO_CTRL_FLEXEN' was not declared in this scope
p->CTRL = FLEXIO_CTRL_FLEXEN;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:157:3: error: 'IMXRT_FLEXIO_t' was not declared in this scope
IMXRT_FLEXIO_t *p = &_rx_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:157:19: error: 'p' was not declared in this scope
IMXRT_FLEXIO_t *p = &_rx_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:157:35: error: 'class FlexIOHandler' has no member named 'port'
IMXRT_FLEXIO_t *p = &_rx_pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:207:53: error: 'FLEXIO_SHIFTCFG_SSTOP' was not declared in this scope
p->SHIFTCFG[_rx_shifter] = FLEXIO_SHIFTCFG_SSTOP(3) | FLEXIO_SHIFTCFG_SSTART(2); //0x0000_0032;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:207:81: error: 'FLEXIO_SHIFTCFG_SSTART' was not declared in this scope
p->SHIFTCFG[_rx_shifter] = FLEXIO_SHIFTCFG_SSTOP(3) | FLEXIO_SHIFTCFG_SSTART(2); //0x0000_0032;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:208:30: error: 'FLEXIO_SHIFTCTL_TIMPOL' was not declared in this scope
p->SHIFTCTL[_rx_shifter] = FLEXIO_SHIFTCTL_TIMPOL | FLEXIO_SHIFTCTL_SMOD(1) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:208:77: error: 'FLEXIO_SHIFTCTL_SMOD' was not declared in this scope
p->SHIFTCTL[_rx_shifter] = FLEXIO_SHIFTCTL_TIMPOL | FLEXIO_SHIFTCTL_SMOD(1) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:209:65: error: 'FLEXIO_SHIFTCTL_TIMSEL' was not declared in this scope
FLEXIO_SHIFTCTL_TIMSEL(_rx_timer) | FLEXIO_SHIFTCTL_PINSEL(_rx_flex_pin); // 0x0080_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:209:104: error: 'FLEXIO_SHIFTCTL_PINSEL' was not declared in this scope
FLEXIO_SHIFTCTL_TIMSEL(_rx_timer) | FLEXIO_SHIFTCTL_PINSEL(_rx_flex_pin); // 0x0080_0001;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:212:26: error: 'FLEXIO_TIMCFG_TSTART' was not declared in this scope
p->TIMCFG[_rx_timer] = FLEXIO_TIMCFG_TSTART | FLEXIO_TIMCFG_TSTOP(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:212:70: error: 'FLEXIO_TIMCFG_TSTOP' was not declared in this scope
p->TIMCFG[_rx_timer] = FLEXIO_TIMCFG_TSTART | FLEXIO_TIMCFG_TSTOP(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:213:51: error: 'FLEXIO_TIMCFG_TIMENA' was not declared in this scope
FLEXIO_TIMCFG_TIMENA(4) | FLEXIO_TIMCFG_TIMDIS(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:213:77: error: 'FLEXIO_TIMCFG_TIMDIS' was not declared in this scope
FLEXIO_TIMCFG_TIMENA(4) | FLEXIO_TIMCFG_TIMDIS(2) |
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:214:51: error: 'FLEXIO_TIMCFG_TIMRST' was not declared in this scope
FLEXIO_TIMCFG_TIMRST(4) | FLEXIO_TIMCFG_TIMOUT(2); //0x204_2422
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:214:77: error: 'FLEXIO_TIMCFG_TIMOUT' was not declared in this scope
FLEXIO_TIMCFG_TIMRST(4) | FLEXIO_TIMCFG_TIMOUT(2); //0x204_2422
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:216:47: error: 'FLEXIO_TIMCTL_TIMOD' was not declared in this scope
p->TIMCTL[_rx_timer] = FLEXIO_TIMCTL_TIMOD(1) | FLEXIO_TIMCTL_PINPOL | FLEXIO_TIMCTL_PINSEL(_rx_flex_pin);; // 0x0000_0081;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:216:51: error: 'FLEXIO_TIMCTL_PINPOL' was not declared in this scope
p->TIMCTL[_rx_timer] = FLEXIO_TIMCTL_TIMOD(1) | FLEXIO_TIMCTL_PINPOL | FLEXIO_TIMCTL_PINSEL(_rx_flex_pin);; // 0x0000_0081;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:216:107: error: 'FLEXIO_TIMCTL_PINSEL' was not declared in this scope
p->TIMCTL[_rx_timer] = FLEXIO_TIMCTL_TIMOD(1) | FLEXIO_TIMCTL_PINPOL | FLEXIO_TIMCTL_PINSEL(_rx_flex_pin);; // 0x0000_0081;
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:217:13: error: 'FLEXIO_CTRL_FLEXEN' was not declared in this scope
p->CTRL = FLEXIO_CTRL_FLEXEN; // make sure it is enabled.
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp: In member function 'virtual size_t FlexSerial::write(uint8_t)':
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:306:13: error: 'class FlexIOHandler' has no member named 'port'
_tx_pflex->port().SHIFTSIEN |= _tx_shifter_mask; // enable interrupt on this one...
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:307:13: error: 'class FlexIOHandler' has no member named 'port'
_tx_pflex->port().TIMIEN &= ~_tx_timer_mask; // Remove any timer interrupts
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:308:13: error: 'class FlexIOHandler' has no member named 'port'
_tx_pflex->port().TIMSTAT = _tx_timer_mask; // Clear the state.
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp: In member function 'virtual bool FlexSerial::call_back(FlexIOHandler*)':
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:364:2: error: 'IMXRT_FLEXIO_t' was not declared in this scope
IMXRT_FLEXIO_t *p = &pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:364:18: error: 'p' was not declared in this scope
IMXRT_FLEXIO_t *p = &pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:364:30: error: 'class FlexIOHandler' has no member named 'port'
IMXRT_FLEXIO_t *p = &pflex->port();
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:366:18: error: 'class FlexIOHandler' has no member named 'port'
if (_rx_pflex->port().SHIFTSTAT & _rx_shifter_mask) {
^
/teensyduino/libraries/FlexIO_t4/src/FlexSerial.cpp:368:27: error: 'class FlexIOHandler' has no member named 'port'
uint8_t c = _rx_pflex->port().SHIFTBUFBYS[_rx_shifter] & 0xff;
^
[ 61%] Built target ResponsiveAnalogRead
[ 62%] Built target SPI
[ 62%] Built target SD
[ 62%] Built target SPIFlash
[ 63%] Built target ST7735_t3
make[2]: *** [libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/build.make:89: libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/src/FlexSerial.cpp.obj] Error 1
[ 64%] Built target ShiftPWM
[ 65%] Built target SdFat
[ 65%] Built target Servo
[ 72%] Built target RadioHead
make[1]: *** [CMakeFiles/Makefile2:3007: libraries/FlexIO_t4/CMakeFiles/FlexIO_t4.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 73%] Built target SerialFlash
[ 73%] Built target SoftwareSerial
[ 73%] Built target Snooze
[ 75%] Built target TeensyThreads
[ 75%] Built target SoftPWM
[ 76%] Built target TFT_ILI9163C
[ 77%] Built target Time
[ 77%] Built target Talkie
make: *** [Makefile:84: all] Error 2
From the error message above:
#error "Sorry, Flex IO only works on Teensy 4.x boards"
must be one of the newer libraries that don't work on 3.x
I cloned the repo and ran the
build_docker_container.sh
script from thelinux/
directory then attempting to program a simple blink example for a Teensy 4.1, but encountered the following error