technyon / Arduino-CMake-Toolchain

CMake toolchain for all Arduino compatible boards
MIT License
19 stars 7 forks source link

Espressif Systems esp3.0.0 reporting error {tools.{build.tarch} #5

Closed TobyChaloner closed 3 months ago

TobyChaloner commented 3 months ago

On the 4/7/2022, there appears to be a fix for this. I am seeing the error below with 3.0.0 of the Espressif Systems esp32 download, from the Arduino IDE 2.0.

I have back versioned the esp32 to 2.0.3 and the multiple expansion is producing the same error

Is there a work around please?

Toby

----------- error ------------- CMake Error at CMakeLists.txt:26 (project): The CMAKE_CXX_COMPILER:

{tools.{build.tarch}-esp32-elf-gcc.path}/bin/xtensa-esp32-elf-g++

is not a full path and was not found in the PATH. ----- CMakeLists.txt ----------

cmake_minimum_required(VERSION 3.14.0)

project(Blinker)

add_executable(blinker blink.ino)
#target_link_arduino_libraries(blinker PRIVATE  core)

target_link_arduino_libraries(my_app AUTO_PUBLIC)

target_enable_arduino_upload(my_app)

------ blink.ino -------------

/*********
  Rui Santos
  Complete project details at https://RandomNerdTutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/
*********/

#include <Arduino.h>

#define LED 2

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  pinMode(LED, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED, HIGH);
  Serial.println("LED is on");
  delay(1000);
  digitalWrite(LED, LOW);
  Serial.println("LED is off");
  delay(1000);
}

TobyChaloner commented 3 months ago

Additionally The Adruino IDE successfully compiles and uploads the script. The only line I know to uncomment in BoardOptions.cmake is set(ARDUINO_BOARD "NodeMCU-32S [esp32.nodemcu-32s]") # NodeMCU-32S

TobyChaloner commented 3 months ago

ignore this issue. I was being confused by the cached build output and needed to delete all the files in the build directory.