problem compilation 4.0

Status
Not open for further replies.
HI,

I trying compile an already compiled program for 3.2 on a 4.0.

I have error concerning I2C

Question on libraries/i2c_t3/i2c_t3.h :

Code:
#if !defined(I2C_T3_H) && (defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__) || \
                           defined(__MK64FX512__) || defined(__MK66FX1M0__)) // 3.0/3.1-3.2/LC/3.5/3.6

Do I add an 4.0 __MK???????__ ? and what's ? seem 4.0 not appear in comments...

Code:
void printWireStatus(void) { printStatus(Wire.status()); }
#if I2C_BUS_NUM >= 2
void printWire1Status(void) { printStatus(Wire1.status()); }
#endif
#if I2C_BUS_NUM >= 3
void printWire2Status(void) { printStatus(Wire2.status()); }
#endif
#if I2C_BUS_NUM >= 4
void printWire3Status(void) { printStatus(Wire3.status()); }
#endif
void printStatus(i2c_status status)
{
    switch(status)
    {
    case I2C_WAITING:  /*Serial3.print("I2C waiting, no errors\n");*/ break;
    case I2C_ADDR_NAK: Serial3.print("Slave addr not acknowledged\n"); break;
    case I2C_DATA_NAK: Serial3.print("Slave data not acknowledged\n"); break;
    case I2C_ARB_LOST: Serial3.print("Bus Error: Arbitration Lost\n"); break;
    case I2C_TIMEOUT:  Serial3.print("I2C timeout\n"); break;
    case I2C_BUF_OVF:  Serial3.print("I2C buffer overflow\n"); break;
    default:           Serial3.print("I2C busy\n"); break;
    }
}

Code:
Arduino : 1.8.13 (Linux), TD: 1.53, Carte : "Teensy 4.0, Serial, 600 MHz, Faster, US English"
/home/laurent/program/arduino/arduino-1.8.13/arduino-builder -dump-prefs -logger=machine -hardware /home/laurent/program/arduino/arduino-1.8.13/hardware -tools /home/laurent/program/arduino/arduino-1.8.13/tools-builder -tools /home/laurent/program/arduino/arduino-1.8.13/hardware/tools/avr -built-in-libraries /home/laurent/program/arduino/arduino-1.8.13/libraries -libraries /home/laurent/Arduino/libraries -fqbn=teensy:avr:teensy40:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path /tmp/arduino_build_876600 -warnings=default -build-cache /tmp/arduino_cache_345512 -verbose /home/laurent/teensy3.2/lecture_i2c_LidarIMU_UartTTL_Tx2/lecture_i2c_LidarIMU_UartTTL_Tx2.ino
/home/laurent/program/arduino/arduino-1.8.13/arduino-builder -compile -logger=machine -hardware /home/laurent/program/arduino/arduino-1.8.13/hardware -tools /home/laurent/program/arduino/arduino-1.8.13/tools-builder -tools /home/laurent/program/arduino/arduino-1.8.13/hardware/tools/avr -built-in-libraries /home/laurent/program/arduino/arduino-1.8.13/libraries -libraries /home/laurent/Arduino/libraries -fqbn=teensy:avr:teensy40:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path /tmp/arduino_build_876600 -warnings=default -build-cache /tmp/arduino_cache_345512 -verbose /home/laurent/teensy3.2/lecture_i2c_LidarIMU_UartTTL_Tx2/lecture_i2c_LidarIMU_UartTTL_Tx2.ino
Using board 'teensy40' from platform in folder: /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr
Using core 'teensy4' from platform in folder: /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr
Detecting libraries used...
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_876600/sketch/lecture_i2c_LidarIMU_UartTTL_Tx2.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for USFS_Master.h: [USFS@0.0.1]
ResolveLibrary(USFS_Master.h)
  -> candidates: [USFS@0.0.1]
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src /tmp/arduino_build_876600/sketch/lecture_i2c_LidarIMU_UartTTL_Tx2.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire /tmp/arduino_build_876600/sketch/lecture_i2c_LidarIMU_UartTTL_Tx2.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire /home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src/USFS.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for CrossPlatformI2C_Core.h: [CrossPlatformDataBus@0.0.1]
ResolveLibrary(CrossPlatformI2C_Core.h)
  -> candidates: [CrossPlatformDataBus@0.0.1]
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src/USFS.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src/USFS_Master.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src/UsfsWarmStartAndAccelCal.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/utility /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/Wire.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/utility /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/WireIMXRT.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/utility /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/WireKinetis.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/utility /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire/utility/twi.c -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src/ArduinoI2C.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src/ArduinoSPI.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
/home/laurent/program/arduino/arduino-1.8.13/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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /tmp/arduino_build_876600/sketch/lecture_i2c_LidarIMU_UartTTL_Tx2.ino.cpp -o /tmp/arduino_build_876600/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/home/laurent/program/arduino/arduino-1.8.13/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_876600/preproc/ctags_target_for_gcc_minus_e.cpp
Compilation du croquis...
/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/../tools/precompile_helper /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_876600 /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_876600/pch/Arduino.h -o /tmp/arduino_build_876600/pch/Arduino.h.gch
/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -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=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/tmp/arduino_build_876600/pch -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/cores/teensy4 -I/home/laurent/program/arduino/arduino-1.8.13/libraries/USFS/src -I/home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire -I/home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus/src /tmp/arduino_build_876600/sketch/lecture_i2c_LidarIMU_UartTTL_Tx2.ino.cpp -o /tmp/arduino_build_876600/sketch/lecture_i2c_LidarIMU_UartTTL_Tx2.ino.cpp.o
lecture_i2c_LidarIMU_UartTTL_Tx2:401: error: variable or field 'printStatus' declared void
 void printStatus(i2c_status status)
                  ^
lecture_i2c_LidarIMU_UartTTL_Tx2:401: error: 'i2c_status' was not declared in this scope
lecture_i2c_LidarIMU_UartTTL_Tx2: In function 'void printWireStatus()':
lecture_i2c_LidarIMU_UartTTL_Tx2:391: error: 'class TwoWire' has no member named 'status'
 void printWireStatus(void) { printStatus(Wire.status()); }
                                               ^
lecture_i2c_LidarIMU_UartTTL_Tx2:391: error: 'printStatus' was not declared in this scope
 void printWireStatus(void) { printStatus(Wire.status()); }
                                                       ^
/home/laurent/teensy3.2/lecture_i2c_LidarIMU_UartTTL_Tx2/lecture_i2c_LidarIMU_UartTTL_Tx2.ino: At global scope:
lecture_i2c_LidarIMU_UartTTL_Tx2:401: error: variable or field 'printStatus' declared void
 void printStatus(i2c_status status)
                  ^
lecture_i2c_LidarIMU_UartTTL_Tx2:401: error: 'i2c_status' was not declared in this scope
Utilisation de la bibliothèque USFS version 0.0.1 dans le dossier: /home/laurent/program/arduino/arduino-1.8.13/libraries/USFS 
Utilisation de la bibliothèque Wire version 1.0 dans le dossier: /home/laurent/program/arduino/arduino-1.8.13/hardware/teensy/avr/libraries/Wire 
Utilisation de la bibliothèque CrossPlatformDataBus version 0.0.1 dans le dossier: /home/laurent/program/arduino/arduino-1.8.13/libraries/CrossPlatformDataBus 
variable or field 'printStatus' declared void


thanks

regards
Laurent.
 
Short answer is that i2c_t3 doesn’t work with teensy 4.0 or 4.1 you will have to switch to just using standard Wire library. But I don’t think wire supports wire.stautus
 
Thank' for your explain.

I have comment the lines . seem compiling, but I lose my error function...
How to do for replace them ?
 
Last edited:
Status
Not open for further replies.
Back
Top