Getting error code "Property 'upload.tool.serial' is undefined" when trying to upload on my leonardo

hey im really new to using arduinos, i have never used one before and when i try to upload something/anything to it it just throws this error at me Property 'upload.tool.serial' is undefined along with Sketch uses 3462 bytes (12%) of program storage space. Maximum is 28672 bytes. Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes. Property 'upload.tool.serial' is undefined

Hi @the1raccoon. I'm going to ask you to provide the full verbose output from an upload attempt.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.
1 Like

FQBN: arduino:avr:leonardo
Using board 'leonardo' from platform in folder: C:\Users\codyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\codyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\codyc\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=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Leonardo" -IC:\Users\codyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\codyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\leonardo C:\Users\codyc\AppData\Local\arduino\sketches\71A83C8EBBDFDB0C3AA1854D0FD6EEF7\sketch\sketch_dec24a.ino.cpp -o nul
Generating function prototypes...
C:\Users\codyc\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=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Leonardo" -IC:\Users\codyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\codyc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\leonardo C:\Users\codyc\AppData\Local\arduino\sketches\71A83C8EBBDFDB0C3AA1854D0FD6EEF7\sketch\sketch_dec24a.ino.cpp -o C:\Users\codyc\AppData\Local\Temp\3508681672\sketch_merged.cpp
C:\Users\codyc\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\codyc\AppData\Local\Temp\3508681672\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\codyc\\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=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" "-IC:\\Users\\codyc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\codyc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\leonardo" "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7\\sketch\\sketch_dec24a.ino.cpp" -o "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7\\sketch\\sketch_dec24a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\codyc\AppData\Local\arduino\cores\arduino_avr_leonardo_407e773f4b78e7f3a11768822875e5b4\core.a
Linking everything together...
"C:\\Users\\codyc\\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\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/sketch_dec24a.ino.elf" "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7\\sketch\\sketch_dec24a.ino.cpp.o" "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/..\\..\\cores\\arduino_avr_leonardo_407e773f4b78e7f3a11768822875e5b4\\core.a" "-LC:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7" -lm
"C:\\Users\\codyc\\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\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/sketch_dec24a.ino.elf" "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/sketch_dec24a.ino.eep"
"C:\\Users\\codyc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/sketch_dec24a.ino.elf" "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/sketch_dec24a.ino.hex"

"C:\\Users\\codyc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\codyc\\AppData\\Local\\arduino\\sketches\\71A83C8EBBDFDB0C3AA1854D0FD6EEF7/sketch_dec24a.ino.elf"
Sketch uses 3462 bytes (12%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
Property 'upload.tool.serial' is undefined

hey man i responded with the full error code :slight_smile:

To me it sounds like a corrupt installation of the AVR board package.

What I would try is to downgrade the AVR board package to versions 1.8.3 using the boards manager, test and next upgrade again to 1.8.6.

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