Property 'upload.tool.serial' is undefined

Hi, I have this error "Property 'upload.tool.serial' is undefined" when trying to upload sketch, is there a solution?
Pro Mini ATmega32U4
Thank you


FQBN: spacemouse:avr:leonardo
Utilizzo della scheda 'leonardo' dalla piattaforma nella cartella: C:\Users\domen\Documents\arduino\hardware\spacemouse\avr
Utilizzo del core 'arduino' dalla piattaforma nella cartella: C:\Users\domen\Documents\arduino\hardware\spacemouse\avr

Rilevamento delle librerie utilizzate in corso...
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Spacemouse" -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\cores\arduino -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\variants\leonardo C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\sketch\HE_Spacemouse.ino.cpp -o nul
Alternative per HID.h: [HID@1.0]
ResolveLibrary(HID.h)
  -> candidati: [HID@1.0]
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Spacemouse" -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\cores\arduino -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\variants\leonardo -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\libraries\HID\src C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\sketch\HE_Spacemouse.ino.cpp -o nul
Utilizzo delle dipendenze delle librerie nella cache per i file: C:\Users\domen\Documents\arduino\hardware\spacemouse\avr\libraries\HID\src\HID.cpp
Sto generando i prototipi di funzione...
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Spacemouse" -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\cores\arduino -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\variants\leonardo -IC:\Users\domen\Documents\arduino\hardware\spacemouse\avr\libraries\HID\src C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\sketch\HE_Spacemouse.ino.cpp -o C:\Users\domen\AppData\Local\Temp\3746413003\sketch_merged.cpp
C:\Users\domen\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\domen\AppData\Local\Temp\3746413003\sketch_merged.cpp
Compilazione dello sketch in corso...
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Spacemouse\"" "-IC:\\Users\\domen\\Documents\\arduino\\hardware\\spacemouse\\avr\\cores\\arduino" "-IC:\\Users\\domen\\Documents\\arduino\\hardware\\spacemouse\\avr\\variants\\leonardo" "-IC:\\Users\\domen\\Documents\\arduino\\hardware\\spacemouse\\avr\\libraries\\HID\\src" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\sketch\\HE_Spacemouse.ino.cpp" -o "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\sketch\\HE_Spacemouse.ino.cpp.o"
Compilazione delle librerie in corso...
Compilazione della libreria "HID"
Uso il file precedentemente compilato: C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\libraries\HID\HID.cpp.o
Compilazione del core in corso...
Utilizzo del core precompilato: C:\Users\domen\AppData\Local\arduino\cores\spacemouse_avr_leonardo_a84a4c98c49819a689ad656a343742e7\core.a
Collegare tutto insieme...
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\sketch\\HE_Spacemouse.ino.cpp.o" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\libraries\\HID\\HID.cpp.o" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/..\\..\\cores\\spacemouse_avr_leonardo_a84a4c98c49819a689ad656a343742e7\\core.a" "-LC:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF" -lm
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.eep"
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.hex"

Uso la libreria HID alla versione 1.0 nella cartella: C:\Users\domen\Documents\arduino\hardware\spacemouse\avr\libraries\HID 
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf"
Lo sketch usa 7088 byte (24%) dello spazio disponibile per i programmi. Il massimo è 28672 byte.
Le variabili globali usano 303 byte (11%) di memoria dinamica, lasciando altri 2257 byte liberi per le variabili locali. Il massimo è 2560 byte.
La proprietà 'upload.tool.serial' non è definita

The Pro Mini does not use the ATmega32U4. Please provide a link to the exact board that you bought.

Hi, I'm a newbe with arduino, this is my first project, you can read more here

Here the link for the board

https://it.aliexpress.com/item/1005006645661865.html?srcSns=sns_Copy&spreadType=socialShare&bizType=ProductDetail&social_params=60967746450&aff_fcid=ed0d5dd4144b44f493cf9dc478e7857e-1738259650757-06179-_EGXFMRq&tt=MG&aff_fsk=_EGXFMRq&aff_platform=default&sk=_EGXFMRq&aff_trace_key=ed0d5dd4144b44f493cf9dc478e7857e-1738259650757-06179-_EGXFMRq&shareId=60967746450&businessType=ProductDetail&platform=AE&terminal_id=423ed8b90ae24082bd7e3d8f8a1ee464&afSmartRedirect=y

OK, that seems to be a Pro Micro, not a Pro Mini. So indeed 32U4.

See if this will help to your issue: Custom Bord not showing up in IDE - #4 by ptillisch

You can find the file boards.txt at the following location on your system:
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\boards.txt

You can open the file with a normal text editor (e.g. notepad) and search for leonardo; you should find in the entries that start with leonardo the below lines

leonardo.name=Arduino Leonardo
...
...
leonardo.upload.tool=avrdude
leonardo.upload.tool.default=avrdude
leonardo.upload.tool.network=arduino_ota
leonardo.upload.protocol=avr109
leonardo.upload.maximum_size=28672
leonardo.upload.maximum_data_size=2560
leonardo.upload.speed=57600
leonardo.upload.disable_flushing=true
leonardo.upload.use_1200bps_touch=true
leonardo.upload.wait_for_upload_port=true
...
...

If the line leonardo.upload.tool=avrdude is not there, you can add that line. If there is more missing from what is shown, please let us know.

Yes I make always confusion with mini and micro sorry XD. I don't know why but this file is missing, I've disintalled and reinstalled now IDE2.3.4 but this file is however missing

C:\Users\domen\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\boards.txt

I tried to reinstall several times, I also deleted all the Arduino folders before reinstalling it and now I only have builtins folder in the folder C:\Users\domen\AppData\Local\Arduino15\packages\

The file might be hidden. In windows explorer, you can change it under (tools) → options.


The file should not be missing else you would not be able to select Leonardo as the board; instead of re-installing the IDE, use the board manager in the IDE to downgrade the AVR board package (should be 1.8.6) to a version lower, test and next upgrade again.

the appdata folder in my pc is hidden so the hidden folder are yet showed, for the downgrade I don't know how I can do it. I'm going crazy...

I've reinsalled AVR 1.8.6 now seem to work I don't know why but ok XD.

Edit Something work now I think, I can upload blink sketch, I uploaded the sketch I need too but without the documents folder with the board.txt modified, if I use the document folders I have the "Property 'upload.tool.serial' is undefined" error.

I've checked the board file and it had all the mentionated line


FQBN: spacemouse:avr:leonardo
Utilizzo della scheda 'leonardo' dalla piattaforma nella cartella: C:\Users\domen\Documents\Arduino\hardware\spacemouse\avr
Utilizzo del core 'arduino' dalla piattaforma nella cartella: C:\Users\domen\Documents\Arduino\hardware\spacemouse\avr

Rilevamento delle librerie utilizzate in corso...
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="SpaceMouse Pro Wireless (cabled)" -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\cores\arduino -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\variants\leonardo C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\sketch\HE_Spacemouse.ino.cpp -o nul
Alternative per HID.h: [HID@1.0]
ResolveLibrary(HID.h)
  -> candidati: [HID@1.0]
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="SpaceMouse Pro Wireless (cabled)" -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\cores\arduino -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\variants\leonardo -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\libraries\HID\src C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\sketch\HE_Spacemouse.ino.cpp -o nul
Utilizzo delle dipendenze delle librerie nella cache per i file: C:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\libraries\HID\src\HID.cpp
Sto generando i prototipi di funzione...
C:\Users\domen\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="SpaceMouse Pro Wireless (cabled)" -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\cores\arduino -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\variants\leonardo -IC:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\libraries\HID\src C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\sketch\HE_Spacemouse.ino.cpp -o C:\Users\domen\AppData\Local\Temp\641274869\sketch_merged.cpp
C:\Users\domen\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\domen\AppData\Local\Temp\641274869\sketch_merged.cpp
Compilazione dello sketch in corso...
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x256f -DUSB_PID=0xc631 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"SpaceMouse Pro Wireless (cabled)\"" "-IC:\\Users\\domen\\Documents\\Arduino\\hardware\\spacemouse\\avr\\cores\\arduino" "-IC:\\Users\\domen\\Documents\\Arduino\\hardware\\spacemouse\\avr\\variants\\leonardo" "-IC:\\Users\\domen\\Documents\\Arduino\\hardware\\spacemouse\\avr\\libraries\\HID\\src" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\sketch\\HE_Spacemouse.ino.cpp" -o "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\sketch\\HE_Spacemouse.ino.cpp.o"
Compilazione delle librerie in corso...
Compilazione della libreria "HID"
Uso il file precedentemente compilato: C:\Users\domen\AppData\Local\arduino\sketches\BCBCD5912FF851E975BCFB61ADAD43DF\libraries\HID\HID.cpp.o
Compilazione del core in corso...
Utilizzo del core precompilato: C:\Users\domen\AppData\Local\arduino\cores\spacemouse_avr_leonardo_736d6360a774a2b53169c4c42d92aaa3\core.a
Collegare tutto insieme...
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\sketch\\HE_Spacemouse.ino.cpp.o" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF\\libraries\\HID\\HID.cpp.o" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/..\\..\\cores\\spacemouse_avr_leonardo_736d6360a774a2b53169c4c42d92aaa3\\core.a" "-LC:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF" -lm
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.eep"
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf" "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.hex"

Uso la libreria HID alla versione 1.0 nella cartella: C:\Users\domen\Documents\Arduino\hardware\spacemouse\avr\libraries\HID 
"C:\\Users\\domen\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\domen\\AppData\\Local\\arduino\\sketches\\BCBCD5912FF851E975BCFB61ADAD43DF/HE_Spacemouse.ino.elf"
Lo sketch usa 7110 byte (24%) dello spazio disponibile per i programmi. Il massimo è 28672 byte.
Le variabili globali usano 303 byte (11%) di memoria dinamica, lasciando altri 2257 byte liberi per le variabili locali. Il massimo è 2560 byte.
La proprietà 'upload.tool.serial' non è definita

I've tried to add 2 missing lines to board.txt in documents folder

leonardo.upload.tool.default=avrdude
leonardo.upload.tool.network=arduino_ota

and the upload worked, 3dconnexion detect the hardware and it works, it works in debug 1 and not in debug 0 but details XD, Thank you sterretje

I have no idea what you're talking about; sorry. What is the "documents" folder that you're referring to?

for this project we need to create a folder in documents folder, the folder in every PC called documents, with a modified board.txt for recognised the micro as a Spacemouse, so I think than we don't use the board.txt you mentioned but the other in document folders, all the specs of this project are in the link in my second message here, the printables link.

or you can see in this video at 9:52

I don't know why this don't work for me I needed to add your 2 line in the modified board.txt

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.