Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

about xtensa-esp-elf-g++.exe problem #11741

Open
Assignees
Labels
@ahoyogi-prog

Description

Board

ESP-32 Module DevKit V1

Device Description

Devkit V1

Hardware Configuration

Error code

Version

v3.3.0

Type

Question

IDE Name

Arduino IDE

Operating System

Windows 11

Flash frequency

40 MhZ

PSRAM enabled

no

Upload speed

115200

Description

It's been hour i get problem with this error message.

Sketch

#include <WiFi.h>
#include <WebServer.h>
// Ganti dengan SSID dan Password Wi-Fi Anda
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";
WebServer server(80);
// Pin untuk motor driver
const int motorAForward = 32; // Pin untuk motor A maju
const int motorABackward = 33; // Pin untuk motor A mundur
const int motorBForward = 25; // Pin untuk motor B maju
const int motorBBackward = 26; // Pin untuk motor B mundur
void setup() {
 Serial.begin(115200);
 
 // Inisialisasi pin motor
 pinMode(motorAForward, OUTPUT);
 pinMode(motorABackward, OUTPUT);
 pinMode(motorBForward, OUTPUT);
 pinMode(motorBBackward, OUTPUT);
 
 // Menghubungkan ke Wi-Fi
 WiFi.begin(ssid, password);
 while (WiFi.status() != WL_CONNECTED) {
 delay(1000);
 Serial.println("Menghubungkan ke WiFi...");
 }
 Serial.println("Terhubung ke WiFi");
 Serial.print("IP Address: ");
 Serial.println(WiFi.localIP());
 // Menyiapkan rute untuk kontrol
 server.on("/forward", []() {
 moveForward();
 server.send(200, "text/plain", "Moving Forward");
 });
 
 server.on("/backward", []() {
 moveBackward();
 server.send(200, "text/plain", "Moving Backward");
 });
 
 server.on("/left", []() {
 turnLeft();
 server.send(200, "text/plain", "Turning Left");
 });
 
 server.on("/right", []() {
 turnRight();
 server.send(200, "text/plain", "Turning Right");
 });
 
 server.on("/stop", []() {
 stopMotors();
 server.send(200, "text/plain", "Stopping");
 });
 server.begin();
}
void loop() {
 server.handleClient();
}
void moveForward() {
 digitalWrite(motorAForward, HIGH);
 digitalWrite(motorABackward, LOW);
 digitalWrite(motorBForward, HIGH);
 digitalWrite(motorBBackward, LOW);
}
void moveBackward() {
 digitalWrite(motorAForward, LOW);
 digitalWrite(motorABackward, HIGH);
 digitalWrite(motorBForward, LOW);
 digitalWrite(motorBBackward, HIGH);
}
void turnLeft() {
 digitalWrite(motorAForward, LOW);
 digitalWrite(motorABackward, HIGH);
 digitalWrite(motorBForward, HIGH);
 digitalWrite(motorBBackward, LOW);
}

Debug Message

xtensa-esp-elf-g++.exe: fatal error: cannot execute 'C:/Users/MAG/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2411/bin/../libexec/gcc/xtensa-esp-elf/14.2.0/cc1plus.exe': CreateProcess: No such file or directory
compilation terminated.
exit status 1
Compilation error: exit status 1

Other Steps to Reproduce

i also ask blackbox. i've been trying to re install the board manager, and trying to use platformio, but is still face the same problem

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /