I am new to the PlatformIO IDE, and I’m a very new developer, so excuse me if there is an easy way to solve this problem.
I’m trying to compile a sketch that works in my arduino IDE but not in platformIO, any help resolving this would be useful.here is the code:
// Browse his featured works @ https://www.instructables.com/member/chrisjlionel/instructables/
// Email chrisjlionel@live.com
// mobile +91-8807971412
#include <Adafruit_GFX.h> //for this must add lib file download from Adfruit
#include <Adafruit_SSD1306.h> //for this must add lib file download from adfruit
#include <ClickEncoder.h>
#include <TimerOne.h>
int y = 0;
ClickEncoder *encoder;
int16_t last, value;
void timerIsr() {
encoder->service();
}
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
void setup() {
Serial.begin (9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //initialize with the I2C addr 0x3C (128x64)
display.clearDisplay();
encoder = new ClickEncoder(3, 4, 5);
encoder->setAccelerationEnabled(false);
Timer1.initialize(1000);
Timer1.attachInterrupt(timerIsr);
last = -1;
}
void loop() {
value += encoder->getValue();
ClickEncoder::Button b = encoder->getButton();
if (b == ClickEncoder::Clicked) {
y=y+1;
}
if (b == ClickEncoder::Released) {
y=0;
}
if (b == ClickEncoder::DoubleClicked) {
y=y+10;
}
int x=value*y;
Serial.print(x);
Serial.print("=");
Serial.print(value);
Serial.print("x");
Serial.print(y);
Serial.println();
display.clearDisplay();
display.setCursor(0,1); //OLED Display
display.setTextSize(2);
display.setTextColor(WHITE);
display.print(x);
display.print("=");
display.print(value);
display.print("x");
display.print(y);
display.println();
display.setTextSize(1);
display.setCursor(0,19);
display.print("CHRISJLIONEL # GITHUB");
display.display();
delay(500);
display.clearDisplay();
}
Here is the error that I get (with verbose turned on):
❯ pio run -v
Processing teensy40 (platform: teensy; board: teensy40; framework: arduino; platform_packages: )
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html
PLATFORM: Teensy 4.8.0 > Teensy 4.0
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy 1.151.0 (1.51)
- toolchain-gccarmnoneeabi 1.50401.190816 (5.4.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 100 compatible libraries
Scanning dependencies...
Warning! Circular dependencies detected between `/Users/marklinton/.platformio/lib/Adafruit ILI9341_ID571` and `/Users/marklinton/.platformio/lib/Adafruit GFX Library_ID13`
Warning! Circular dependencies detected between `/Users/marklinton/.platformio/lib/Adafruit ILI9341_ID571` and `/Users/marklinton/.platformio/lib/Adafruit GFX Library_ID13`
Dependency Graph
|-- <Adafruit GFX Library> 1.7.5 (/Users/marklinton/.platformio/lib/Adafruit GFX Library_ID13)
| |-- <Adafruit ILI9341> 1.5.5 (/Users/marklinton/.platformio/lib/Adafruit ILI9341_ID571)
| | |-- <Adafruit STMPE610> 1.1.2 (/Users/marklinton/.platformio/lib/Adafruit STMPE610_ID377)
| | | |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
| | | |-- <Wire> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/Wire)
| | |-- <Adafruit TouchScreen> 1.0.5 (/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430)
| | |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
| |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
|-- <Adafruit SSD1306> 2.2.1 (/Users/marklinton/.platformio/lib/Adafruit SSD1306_ID135)
| |-- <Adafruit GFX Library> 1.7.5 (/Users/marklinton/.platformio/lib/Adafruit GFX Library_ID13)
| | |-- <Adafruit ILI9341> 1.5.5 (/Users/marklinton/.platformio/lib/Adafruit ILI9341_ID571)
| | | |-- <Adafruit STMPE610> 1.1.2 (/Users/marklinton/.platformio/lib/Adafruit STMPE610_ID377)
| | | | |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
| | | | |-- <Wire> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/Wire)
| | | |-- <Adafruit TouchScreen> 1.0.5 (/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430)
| | | |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
| | |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
| |-- <SPI> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/SPI)
| |-- <Wire> 1.0 (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/Wire)
|-- <ClickEncoder> (/Users/marklinton/.platformio/lib/ClickEncoder_ID291)
|-- <TimerOne> (/Users/marklinton/.platformio/packages/framework-arduinoteensy/libraries/TimerOne)
Building in release mode
arm-none-eabi-gcc-ar rc .pio/build/teensy40/lib6a3/libSPI.a .pio/build/teensy40/lib6a3/SPI/SPI.cpp.o
arm-none-eabi-gcc-ar rc .pio/build/teensy40/lib598/libWire.a .pio/build/teensy40/lib598/Wire/Wire.cpp.o .pio/build/teensy40/lib598/Wire/WireIMXRT.cpp.o .pio/build/teensy40/lib598/Wire/WireKinetis.cpp.o .pio/build/teensy40/lib598/Wire/utility/twi.c.o
arm-none-eabi-gcc-ar -s .pio/build/teensy40/lib6a3/libSPI.a
arm-none-eabi-gcc-ar -s .pio/build/teensy40/lib598/libWire.a
arm-none-eabi-gcc-ar rc ".pio/build/teensy40/lib10e/libAdafruit STMPE610_ID377.a" ".pio/build/teensy40/lib10e/Adafruit STMPE610_ID377/Adafruit_STMPE610.cpp.o"
arm-none-eabi-g++ -o ".pio/build/teensy40/libeba/Adafruit TouchScreen_ID5430/TouchScreen.cpp.o" -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH "-I/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430" -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 "/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430/TouchScreen.cpp"
arm-none-eabi-gcc-ar -s ".pio/build/teensy40/lib10e/libAdafruit STMPE610_ID377.a"
arm-none-eabi-gcc-ar rc ".pio/build/teensy40/lib662/libAdafruit ILI9341_ID571.a" ".pio/build/teensy40/lib662/Adafruit ILI9341_ID571/Adafruit_ILI9341.cpp.o"
arm-none-eabi-gcc-ar -s ".pio/build/teensy40/lib662/libAdafruit ILI9341_ID571.a"
arm-none-eabi-gcc-ar rc ".pio/build/teensy40/libafc/libAdafruit GFX Library_ID13.a" ".pio/build/teensy40/libafc/Adafruit GFX Library_ID13/Adafruit_GFX.cpp.o" ".pio/build/teensy40/libafc/Adafruit GFX Library_ID13/Adafruit_SPITFT.cpp.o" ".pio/build/teensy40/libafc/Adafruit GFX Library_ID13/glcdfont.c.o"
arm-none-eabi-gcc-ar -s ".pio/build/teensy40/libafc/libAdafruit GFX Library_ID13.a"
arm-none-eabi-gcc-ar rc ".pio/build/teensy40/lib8fb/libAdafruit SSD1306_ID135.a" ".pio/build/teensy40/lib8fb/Adafruit SSD1306_ID135/Adafruit_SSD1306.cpp.o"
arm-none-eabi-gcc-ar -s ".pio/build/teensy40/lib8fb/libAdafruit SSD1306_ID135.a"
arm-none-eabi-gcc-ar rc .pio/build/teensy40/lib85e/libClickEncoder_ID291.a .pio/build/teensy40/lib85e/ClickEncoder_ID291/ClickEncoder.cpp.o
arm-none-eabi-gcc-ar -s .pio/build/teensy40/lib85e/libClickEncoder_ID291.a
arm-none-eabi-gcc-ar rc .pio/build/teensy40/lib519/libTimerOne.a .pio/build/teensy40/lib519/TimerOne/TimerOne.cpp.o
arm-none-eabi-gcc-ar -s .pio/build/teensy40/lib519/libTimerOne.a
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial1.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial1.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial2.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial2.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial3.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial3.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial4.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial4.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial5.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial5.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial6.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial6.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial7.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial7.cpp
/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430/TouchScreen.cpp: In constructor 'TouchScreen::TouchScreen(uint8_t, uint8_t, uint8_t, uint8_t, uint16_t)':
/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430/TouchScreen.cpp:205:11: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'RwReg* {aka volatile unsigned char*}' in assignment
xp_port = portOutputRegister(digitalPinToPort(_xp));
^
/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430/TouchScreen.cpp:206:11: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'RwReg* {aka volatile unsigned char*}' in assignment
yp_port = portOutputRegister(digitalPinToPort(_yp));
^
/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430/TouchScreen.cpp:207:11: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'RwReg* {aka volatile unsigned char*}' in assignment
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/HardwareSerial8.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=6000 xm_port = portOutputRegister(digitalPinToPort(_xm));
0 ^
0000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/pac/Users/marklinton/.platformio/lib/Adafruit TouchScreen_ID5430/TouchScreen.cpp:208:11: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'RwReg* {aka volatile unsigned char*}' in assignment
ym_port = portOutputRegister(digitalPinToPort(_ym));
^
kages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/HardwareSerial8.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/IPAddress.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/IPAddress.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/IntervalTimer.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/IntervalTimer.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/Print.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/Print.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/Stream.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/Stream.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/Tone.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/Tone.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/WMath.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-a*** [.pio/build/teensy40/libeba/Adafruit TouchScreen_ID5430/TouchScreen.cpp.o] Error 1
rduinoteensy/cores/teensy4/WMath.cpp
arm-none-eabi-g++ -o .pio/build/teensy40/FrameworkArduino/WString.cpp.o -c -fno-exceptions -felide-constructors -fno-rtti -std=gnu++14 -Wno-error=narrowing -fpermissive -Wall -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m7 -nostdlib -fsingle-precision-constant -mfloat-abi=hard -mfpu=fpv5-d16 -O2 -DPLATFORMIO=40301 -D__IMXRT1062__ -DARDUINO_TEENSY40 -DUSB_SERIAL -DARDUINO=10805 -DTEENSYDUINO=151 -DCORE_TEENSY -DF_CPU=600000000 -DLAYOUT_US_ENGLISH -I/Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4 /Users/marklinton/.platformio/packages/framework-arduinoteensy/cores/teensy4/WString.cpp
=================================================================================================== [FAILED] Took 1.77 seconds ===================================================================================================
Here is my platform.ini
[env:teensy40]
platform = teensy
board = teensy40
framework = arduino
platform_packages =