Cant compile for ESP32, error & was unexpected

justigninB
Posts: 1
Joined: Thu Jul 28, 2022 9:11 pm

Cant compile for ESP32, error & was unexpected

Postby justigninB » Thu Jul 28, 2022 9:14 pm

Hi !

I'm trying to use an ESP32 for a lights installation. Everything works fine with an ESP8266 for the compiling and uploading part but I have further issues, this is why I want to switch to an ESP32. This is where my problem is. When compiling I get this error message in the IDE (with the "show verbose output during : compilation" toggled on) :
Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\justi\AppData\Local\Arduino15\packages -hardware C:\Users\justi\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\justi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\justi\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\justi\AppData\Local\Temp\arduino_build_453758 -warnings=none -build-cache C:\Users\justi\AppData\Local\Temp\arduino_cache_898798 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.esptool_py.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-97-gc752ad5-5.2.0.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -verbose D:\PTVN\Projets\Apex\R&D\arduino\multiUniArtnet\multiUniArtnet.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\justi\AppData\Local\Arduino15\packages -hardware C:\Users\justi\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\justi\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\justi\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\justi\AppData\Local\Temp\arduino_build_453758 -warnings=none -build-cache C:\Users\justi\AppData\Local\Temp\arduino_cache_898798 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.esptool_py.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-97-gc752ad5-5.2.0.path=C:\Users\justi\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -verbose D:\PTVN\Projets\Apex\R&D\arduino\multiUniArtnet\multiUniArtnet.ino

Using board 'esp32' from platform in folder: C:\Users\justi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

Using core 'esp32' from platform in folder: C:\Users\justi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

cmd /c if exist "D:\\PTVN\\Projets\\Apex\\R&D\\arduino\\multiUniArtnet\\partitions.csv" copy /y "D:\\PTVN\\Projets\\Apex\\R&D\\arduino\\multiUniArtnet\\partitions.csv" "C:\\Users\\justi\\AppData\\Local\\Temp\\arduino_build_453758\\partitions.csv"

& was unexpected.

exit status 1

Error compiling for board ESP32 Dev Module.
I dug the net for few days to find any similar issues and try to fix mine but can't find out what it is.
I tried different additional URL for the board, different board module, manually installing esp core and libs, uninstalling/reinstalling arduino IDE and hold the "boot" button.

Even with an empty sketch I can't manage to compile for ESP32, the only thing I can compile and upload is an example file from the esp32 dev module, I also can copy/paste my code into the example and it still compile/upload but as soon I save my sketch in a new place I get the same error back.

If anyone has seen that before or has hint to progress I'd be very thankfull !

(I'm not a native english speaker so please pardon my mistakes ;) )

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Cant compile for ESP32, error & was unexpected

Postby ESP_Sprite » Fri Jul 29, 2022 2:38 am

It looks like the tools are stumbling over the '&' character in your 'R&D' folder.

Who is online

Users browsing this forum: No registered users and 2 guests