Error compiling for ESP 32 board

I'm using Arduino ver. 1.8.15 and want to install DOIT ESP32DEVKIT.

I'm getting compiler error. Thanks for assistance.

Arduino: 1.8.15 (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"





















C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\B&G\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\B&G\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\B&G\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -ide-version=10815 -build-path C:\Users\B&G\AppData\Local\Temp\arduino_build_307965 -warnings=none -build-cache C:\Users\B&G\AppData\Local\Temp\arduino_cache_745608 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\B&G\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\B&G\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.esptool_py.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -verbose C:\Users\B&G\AppData\Local\Temp\untitled1263308942.tmp\sketch_jun02a\sketch_jun02a.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\B&G\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\B&G\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\B&G\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -ide-version=10815 -build-path C:\Users\B&G\AppData\Local\Temp\arduino_build_307965 -warnings=none -build-cache C:\Users\B&G\AppData\Local\Temp\arduino_cache_745608 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\B&G\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\B&G\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.esptool_py.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -verbose C:\Users\B&G\AppData\Local\Temp\untitled1263308942.tmp\sketch_jun02a\sketch_jun02a.ino

Using board 'esp32doit-devkit-v1' from platform in folder: C:\Users\B&G\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

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

cmd /c if exist "C:\\Users\\B&G\\AppData\\Local\\Temp\\untitled1263308942.tmp\\sketch_jun02a\\partitions.csv" copy /y "C:\\Users\\B&G\\AppData\\Local\\Temp\\untitled1263308942.tmp\\sketch_jun02a\\partitions.csv" "C:\\Users\\B&G\\AppData\\Local\\Temp\\arduino_build_307965\\partitions.csv"

& was unexpected at this time.

exit status 1

Error compiling for board DOIT ESP32 DEVKIT V1.


It looks very like the compiler or linker does not like the ampersand character in the file path

1 Like

User/B&G has never been a problem before.

Windows 10 Home Addition doesn't appear to have the ability to change user name.

These instructions won't work as "Local Users and Groups" is not listed in this video at 1:12 minute location.

https://www.youtube.com/watch?v=w5N2aaiToiQ

I think the compiler is confused by the directory named "B&G". You may have to use a different username.

1 Like

Very good. Generated another user name and get no compiler error.

So what else has changed ?

I've had this laptop for over 5 years with never having an issue with "User/B&G" until trying to install the ESP32 board info.

What changed? Adding another username that doesn't include an ampersand.

That's what changed !