Skip to content

Changing board throws Error Compiling for ESP32/ESP32S2 Dev Module #4709

@harshmangukiya

Description

@harshmangukiya

I am programming and testing the same code firmware for ESP32 and ESP32S2 but when I change the from one to another it throws Error Compiling for Board ESP32 Dev Module.

Hardware:

Board: ESP32 Dev Module/ESP32S2 Dev Module
Core Installation version: 1.0.4 (idf-release/v4.2)
IDE name: Arduino IDE
Computer OS: Mac OSX

Description:

Code file is completely working file and uploading the code to Dev Board but when I switch from one board to another board like ESP32 to ESP32S2 or vice versa it is throwing me error as given below but when I copy the same whole code and make new file and then compile for other board it is working completely fine. Again in new file when I switch the board then it throws the same error.

Sketch: (leave the backquotes for code formatting)

I am uploading same code file to both ESP32 and ESP32S2

Debug Messages:

bash: line 0: [: too many arguments
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
exit status 64
/Applications/Arduino.app/Contents/Java/arduino-builder returned 64
Error compiling for board ESP32 Dev Module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions