Hello... have anyone could successfully compiled and uploaded on Teensy 4.1 using Platform IO.
//------------------------------------------------------------------------------------------------------------------------------------
below is platform.ini
[env:teensy41]
platform = teensy
board = teensy41
; change microcontroller
board_build.mcu = imxrt1062
; change MCU frequency
board_build.f_cpu = 600000000L
framework = arduino
upload_protocol = teensy-gui
//--------------------------------------------------------------------------------------------------------
error during building process...
> Executing task: platformio run <
Processing teensy41 (platform: teensy; board: teensy41; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION:
https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy 4.11.0 > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy 1.153.0 (1.53)
- toolchain-gccarmnoneeabi 1.50401.0 (5.4.1)
LDF: Library Dependency Finder ->
http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 89 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/teensy41/src/main.cpp.o
Compiling .pio/build/teensy41/FrameworkArduino/AudioStream.cpp.o
Compiling .pio/build/teensy41/FrameworkArduino/Blink.cc.o
In file included from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/wiring.h:45:0,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/WProgram.h:45,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/Arduino.h:6,
from src/main.cpp:1:
/home/pi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/5.4.1/type_traits:38:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
*** [.pio/build/teensy41/src/main.cpp.o] Error 1
Compiling .pio/build/teensy41/FrameworkArduino/EventResponder.cpp.o
In file included from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/wiring.h:45:0,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/WProgram.h:45,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/Arduino.h:6,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/AudioStream.cpp:32:
/home/pi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/5.4.1/type_traits:38:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
*** [.pio/build/teensy41/FrameworkArduino/AudioStream.cpp.o] Error 1
In file included from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/wiring.h:45:0,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/WProgram.h:45,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/Arduino.h:6,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/Blink.cc:3:
/home/pi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/5.4.1/type_traits:38:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
*** [.pio/build/teensy41/FrameworkArduino/Blink.cc.o] Error 1
In file included from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/wiring.h:45:0,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/WProgram.h:45,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/Arduino.h:6,
from /home/pi/.platformio/packages/framework-arduinoteensy/cores/teensy4/EventResponder.cpp:34:
/home/pi/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/5.4.1/type_traits:38:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
*** [.pio/build/teensy41/FrameworkArduino/EventResponder.cpp.o] Error 1
================================================================================= [FAILED] Took 3.17 seconds =================================================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
can anyone please help to resolve the above problem.
Thanks in advance.