Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketch upload failed for ATtiny1627 Curiosity Nano with optiboot_x #852

Closed
mcuee opened this issue Nov 1, 2022 · 18 comments
Closed

Sketch upload failed for ATtiny1627 Curiosity Nano with optiboot_x #852

mcuee opened this issue Nov 1, 2022 · 18 comments
Labels
bug Something isn't working
Milestone

Comments

@mcuee
Copy link

mcuee commented Nov 1, 2022

It seems to me there is a bug with sketch compilation when using "Sketch -- Upload" menu option. I am not so sure why it does not build the hex file with the 0x200 offset. I choose the right board option, "Official Microchip board w/Optiboot".

Build log:

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xfchen\AppData\Local\Arduino15\packages -hardware C:\Users\xfchen\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xfchen\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xfchen\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchipo:board_name=cn1627,clocko=20internal,bodvoltage=1v8,bodmode=disabled,millis=enabled,resetpin=UPDIaltrst,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=03EB_2175 -ide-version=10819 -build-path C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277 -warnings=all -build-cache C:\Users\xfchen\AppData\Local\Temp\arduino_cache_297627 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avr-gcc.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.arduinoOTA.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.python3.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\xfchen\Documents\Arduino\Tiny1627\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xfchen\AppData\Local\Arduino15\packages -hardware C:\Users\xfchen\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xfchen\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xfchen\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchipo:board_name=cn1627,clocko=20internal,bodvoltage=1v8,bodmode=disabled,millis=enabled,resetpin=UPDIaltrst,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=03EB_2175 -ide-version=10819 -build-path C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277 -warnings=all -build-cache C:\Users\xfchen\AppData\Local\Temp\arduino_cache_297627 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avr-gcc.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.arduinoOTA.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.python3.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\xfchen\Documents\Arduino\Tiny1627\Blink\Blink.ino
Using board 'microchipo' from platform in folder: C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Using core 'megatinycore' from platform in folder: C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Warning: Board DxCore:megaavr:avrddopti doesn't define a 'build.board' preference. Auto-set to: MEGAAVR_AVRDDOPTI
Detecting libraries used...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\xfchen\\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\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\xfchen\AppData\Local\Temp\arduino_cache_297627\core\core_b87e9c43c257b6490a37055a786fe751.a
Linking everything together...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mrelax -mmcu=attiny1627 -o "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp.o" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/..\\arduino_cache_297627\\core\\core_b87e9c43c257b6490a37055a786fe751.a" "-LC:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277" -lm
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.bin"
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.eep"
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.hex"
cmd /C "C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" > "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.lst"
cmd /C "C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-nm" --numeric-sort --line-numbers --demangle --print-size --format=s "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" > "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.map"
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-size" -A "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf"
Sketch uses 678 bytes (4%) of program storage space. Maximum is 15972 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 2044 bytes for local variables. Maximum is 2048 bytes.

"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-size" -A "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf"
Sketch uses 678 bytes (4%) of program storage space. Maximum is 15972 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 2044 bytes for local variables. Maximum is 2048 bytes.
C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18/bin/avrdude -CC:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf -v -pattiny1627 -carduino -D -PCOM21 -PCOM21 -b115200 -Uflash:w:C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277/Blink.ino.hex:i 

avrdude: Version 6.3-20201216
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf"

         Using Port                    : COM21
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATtiny1627
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
           fuses          0     0     0    0 no          9   10      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
           usersig        0     0     0    0 no         32   32      0     0     0 0x00 0x00
           flash          0     0     0    0 no      16384   64      0     0     0 0x00 0x00
           eeprom         0     0     0    0 no        256   32      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 9.1
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9428 (probably t1627)
avrdude: reading input file "C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277/Blink.ino.hex"
avrdude: writing flash (1190 bytes):

Writing | ################################################## | 100% 0.07s

avrdude: 1190 bytes of flash written
avrdude: verifying flash memory against C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277/Blink.ino.hex:
avrdude: load data flash data from input file C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277/Blink.ino.hex:
avrdude: input file C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277/Blink.ino.hex contains 1190 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.07s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0200
         0xff != 0x3b
avrdude: verification error; content mismatch

avrdude done.  Thank you.

the selected serial port 
 does not exist or your board is not connected

C:\work\avr\avrdude_test\avrdude_bin> cat .\optiboot_Curiosity1627.hex
:1000000001C0D8C0112480914000882369F0282FB6
:1000100030E083FD03C02D7F232B31F4809340001B
:100020008CBB80E0AFD0ECC0A895229A2A9A10929F
:10003000E205809182128370813061F58CE590E059
:10004000809308089093090881E080930B0883E06F
:10005000809307081092050880EC809306088BE0D7
:1000600091D0279A88E08150C1F4A8950DE983E0EA
:10007000D82E7CD08134E9F479D0182F8CD081E04F
:10008000123821F089E0113809F083E068D080E16E
:1000900066D0EFCF83E790E0D3CF379A2EEC36E5EA
:1000A000A8959091040897FDE1CF21503109C1F73F
:1000B000DACF823419F484E176D0E9CF853411F4B3
:1000C00085E0FACF853531F451D0C82F4FD0D82FE5
:1000D00062D0DDCF863521F484E065D080E0D6CFD4
:1000E0008436B9F443D042D0182F40D0863479F406
:1000F000D0583CD0888321961150D9F74CD004BFFA
:10010000D0920010809102108370E1F7C0CFDC5EC6
:10011000F0CF843791F42AD029D0182F27D0F82E89
:100120003AD086E4F81207C0D0588881219617D0BB
:100130001150D9F7ACCFDC5EF8CF853751F42BD016
:10014000809100110CD08091011109D08091021191
:100150009DCF813509F0BCCF81E014D0B9CF90910B
:10016000040895FFFCCF809302080895809104084D
:1001700087FFFCCF909101088091000892FD01C09B
:10018000A89508959091010190FDFCCF98ED94BF42
:10019000809300010895EADF803219F081E0F2DFF8
:1001A000FFCF84E1DCCFCF93C82FE0DFC150E9F768
:1001B000CF91F1CF683048F48DE984BF609300108F
:1001C000809102108370E1F70895FC014083089547
:0201FE000109F5
:00000001FF
@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

Bootloader initially failed to burn due to the known issues.

C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18/bin/avrdude -CC:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf -v -pattiny1627 -ccuriosity_updi -Pusb -e -Ufuse0:w:0x00:m -Ufuse1:w:0x00:m -Ufuse5:w:0b1111{bootloader.altreset}10:m -Ufuse6:w:0x04:m -Ufuse8:w:0x00:m -Ufuse7:w:0x00:m -Uflash:w:C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex:i 

avrdude: Version 6.3-20201216
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : curiosity_updi
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATtiny1627
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
           fuses          0     0     0    0 no          9   10      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
           usersig        0     0     0    0 no         32   32      0     0     0 0x00 0x00
           flash          0     0     0    0 no      16384   64      0     0     0 0x00 0x00
           eeprom         0     0     0    0 no        256   32      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Microchip Curiosity in UPDI mode
         ICE hardware version: 0
         ICE firmware version: 1.21 (rel. 37)
         Serial number   : MCHP3258021800000382
         Vtarget         : 3.31 V
         JTAG clock megaAVR/program: 0 kHz
         JTAG clock megaAVR/debug:   0 kHz
         JTAG clock Xmega: 0 kHz
         PDI clock Xmega : 100 kHz

avrdude: Partial Family_ID returned: "tiny"
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9428 (probably t1627)
avrdude: erasing chip
avrdude: reading input file "0x00"
avrdude: writing fuse0 (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse0 written
avrdude: verifying fuse0 memory against 0x00:
avrdude: load data fuse0 data from input file 0x00:
avrdude: input file 0x00 contains 1 bytes
avrdude: reading on-chip fuse0 data:

Error while burning bootloader.
Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of fuse0 verified
avrdude: reading input file "0x00"
avrdude: writing fuse1 (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse1 written
avrdude: verifying fuse1 memory against 0x00:
avrdude: load data fuse1 data from input file 0x00:
avrdude: input file 0x00 contains 1 bytes
avrdude: reading on-chip fuse1 data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of fuse1 verified
avrdude: reading input file "0b1111{bootloader.altreset}10"
avrdude: invalid byte value (0b1111{bootloader.altreset}10) specified for immediate mode
avrdude: read from file '0b1111{bootloader.altreset}10' failed

avrdude done.  Thank you.

But I work around the issue by using avrdude directly.

C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -v -pattiny1627 -cpkobn_updi -Pusb -e -Ufuse0:w:0x00:m -Ufuse1:w:0x00:m -Ufuse5:w:0b11111110:m -Ufuse6:w:0x04:m -Ufuse8:w:0x00:m -Ufuse7:w:0x00:m -Uflash:w:C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex:i

avrdude: Version 7.0-20221029 (b569966)
         Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg Wunsch

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\avrdude.conf

         Using Port                    : usb
         Using Programmer              : pkobn_updi
avrdude: found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATtiny1627
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse4       tcd0cfg     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuses                   0     0     0    0 no          9   10      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           prodsig                 0     0     0    0 no         61   61      0     0     0 0x00 0x00
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
           eeprom                  0     0     0    0 no        256   32      0     0     0 0x00 0x00
           flash                   0     0     0    0 no      16384   64      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity nano (nEDBG) in UPDI mode
         ICE HW version  : 0
         ICE FW version  : 1.21 (rel. 37)
         Serial number   : MCHP3258021800000382
         Vtarget         : 3.31 V
         PDI/UPDI clock Xmega/megaAVR : 100 kHz
avrdude: partial Family_ID returned: "tiny"
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
erasing chip
avrdude: reading input file 0x00 for fuse0/wdtcfg
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse0/wdtcfg ...
avrdude: 1 byte of fuse0/wdtcfg written
avrdude: verifying fuse0/wdtcfg memory against 0x00
avrdude: 1 byte of fuse0/wdtcfg verified
avrdude: reading input file 0x00 for fuse1/bodcfg
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse1/bodcfg ...
avrdude: 1 byte of fuse1/bodcfg written
avrdude: verifying fuse1/bodcfg memory against 0x00
avrdude: 1 byte of fuse1/bodcfg verified
avrdude: reading input file 0b11111110 for fuse5/syscfg0
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse5/syscfg0 ...
avrdude: 1 byte of fuse5/syscfg0 written
avrdude: verifying fuse5/syscfg0 memory against 0b11111110
avrdude: 1 byte of fuse5/syscfg0 verified
avrdude: reading input file 0x04 for fuse6/syscfg1
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse6/syscfg1 ...
avrdude: 1 byte of fuse6/syscfg1 written
avrdude: verifying fuse6/syscfg1 memory against 0x04
avrdude: 1 byte of fuse6/syscfg1 verified
avrdude: reading input file 0x00 for fuse8/bootend
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse8/bootend ...
avrdude: 1 byte of fuse8/bootend written
avrdude: verifying fuse8/bootend memory against 0x00
avrdude: 1 byte of fuse8/bootend verified
avrdude: reading input file 0x00 for fuse7/append
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse7/append ...
avrdude: 1 byte of fuse7/append written
avrdude: verifying fuse7/append memory against 0x00
avrdude: 1 byte of fuse7/append verified
avrdude: reading input file C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex for flash
         with 466 bytes in 2 sections within [0, 0x1ff]
         using 8 pages and 46 pad bytes
avrdude: writing 466 bytes flash ...

Writing | ################################################## | 100% 0.28 s

avrdude: 466 bytes of flash written
avrdude: verifying flash memory against C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex

Reading | ################################################## | 100% 0.14 s

avrdude: 466 bytes of flash verified

avrdude done.  Thank you.

@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

Using "Export compiled Binary" and the exported binary will have the 0x200 offset.

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xfchen\AppData\Local\Arduino15\packages -hardware C:\Users\xfchen\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xfchen\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xfchen\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchipo:board_name=cn1627,clocko=20internal,bodvoltage=1v8,bodmode=disabled,millis=enabled,resetpin=UPDIaltrst,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=03EB_2175 -ide-version=10819 -build-path C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277 -warnings=all -build-cache C:\Users\xfchen\AppData\Local\Temp\arduino_cache_297627 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avr-gcc.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.arduinoOTA.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.python3.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\xfchen\Documents\Arduino\Tiny1627\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xfchen\AppData\Local\Arduino15\packages -hardware C:\Users\xfchen\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xfchen\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xfchen\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchipo:board_name=cn1627,clocko=20internal,bodvoltage=1v8,bodmode=disabled,millis=enabled,resetpin=UPDIaltrst,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=03EB_2175 -ide-version=10819 -build-path C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277 -warnings=all -build-cache C:\Users\xfchen\AppData\Local\Temp\arduino_cache_297627 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avr-gcc.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.arduinoOTA.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.python3.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\xfchen\Documents\Arduino\Tiny1627\Blink\Blink.ino
Using board 'microchipo' from platform in folder: C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Using core 'megatinycore' from platform in folder: C:\Users\xfchen\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Warning: Board DxCore:megaavr:avrddopti doesn't define a 'build.board' preference. Auto-set to: MEGAAVR_AVRDDOPTI
Detecting libraries used...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\xfchen\\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\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\xfchen\AppData\Local\Temp\arduino_cache_297627\core\core_b87e9c43c257b6490a37055a786fe751.a
Linking everything together...
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mrelax -mmcu=attiny1627 -o "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277\\sketch\\Blink.ino.cpp.o" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/..\\arduino_cache_297627\\core\\core_b87e9c43c257b6490a37055a786fe751.a" "-LC:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277" -lm
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.bin"
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.eep"
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.hex"
cmd /C "C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" > "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.lst"
cmd /C "C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-nm" --numeric-sort --line-numbers --demangle --print-size --format=s "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf" > "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.map"
"C:\\Users\\xfchen\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-size" -A "C:\\Users\\xfchen\\AppData\\Local\\Temp\\arduino_build_550277/Blink.ino.elf"
Sketch uses 678 bytes (4%) of program storage space. Maximum is 15972 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 2044 bytes for local variables. Maximum is 2048 bytes.
cmd /C copy C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277\Blink.ino.lst C:\Users\xfchen\Documents\Arduino\Tiny1627\Blink\Blink.ino.t1627opti.20c0.mB1.v261.lst 
        1 file(s) copied.
cmd /C copy C:\Users\xfchen\AppData\Local\Temp\arduino_build_550277\Blink.ino.map C:\Users\xfchen\Documents\Arduino\Tiny1627\Blink\Blink.ino.t1627opti.20c0.mB1.v261.map 
        1 file(s) copied.

C:\work\avr\avrdude_test\avrdude_bin> cat .\Blink.ino.t1627opti.20c0.mB1.v261.hex
:100200003BC0000055C0000053C0000051C00000BA
:100210004FC000004DC000004BC0000049C00000AE
:1002200047C0000045C0000043C0000041C00000BE
:100230003FC000003DC000003BC0000039C00000CE
:1002400037C0000035C0000033C0000031C00000DE
:100250002FC000002DC000002BC0000029C00000EE
:1002600027C00000ADC0000023C0000021C0000076
:100270001FC000001DC0000011241FBECFEFCDBF66
:10028000DFE3DEBF8091400080934000811105C014
:1002900098ED21E094BF209341008CBB28E3A0E0BF
:1002A000B8E301C01D92A430B207E1F7A5D0F9C0B0
:1002B000A7CF9FB7F894E0919A0AF0919B0A80919A
:1002C000960A2091003830910138409102385091BF
:1002D00003389FBF80FF08C0CF018827892B21F4F6
:1002E0002F5F3F4F4F4F5F4F0F01169407941694A7
:1002F000079416940794F0011694079416940794A3
:10030000E019F109169407940694102C169416948B
:10031000011816941694010C1124E00DF11DA8EE9D
:10032000B3E0A6D06E0F7F1F811D911D0895CF925F
:10033000DF92EF92FF92CF93DF93BBDFEB0188EE6A
:10034000C82E83E0D82EE12CF12CB3DF6C1B7D0B83
:10035000683E7340A0F0C114D104E104F10439F403
:10036000DF91CF91FF90EF90DF90CF90089581E0E3
:10037000C81AD108E108F108C851DC4FE6CFC11412
:10038000D104E104F10409F7EBCF90E1811111C030
:10039000909326049091200494FD0AC09FB7F8948E
:1003A00081110AC080913404877F809334049FBFF9
:1003B000089590932504EECF809134048860F5CFA2
:1003C000AF93BF93A0E0B8E38F938FB78F938C91D7
:1003D0008F5F8D938C918F4F8D938C918F4F8D93D9
:1003E0008C918F4F8C9381E08093960A8F918FBF71
:1003F0008F91BF91AF91189588ED90E084BF909355
:10040000610083E0809301069FE09093080691E2EB
:100410009093000690EA909302069AE090930B0660
:10042000E1E0E093030A9EEF9093260A9093270A57
:100430009BE09093000A2FE037E220939C0A3093D0
:100440009D0AE093950A1092910A8093900A7894FD
:10045000E295EE0FF0E0F46080E181838489877F8C
:10046000848B81E092DF63DF80E08FDF60DFF9CF94
:1004700009D0A59F900DB49F900DA49F800D911D54
:1004800011240895A29FB001B39FC001A39F700DD6
:10049000811D1124911DB29F700D811D1124911D8C
:0604A0000895F894FFCF5F
:0400000300000200F7
:00000001FF

@mcuee mcuee changed the title Sketch upload failed for ATtiny1627 with optiboot_x Sketch upload failed for ATtiny1627 Curiosity Nano with optiboot_x Nov 1, 2022
@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

@SpenceKonde
The bootloader burning issue is a known one which you have already fixed in git.

The avrdude git issue is not your issue and I will raise an issue in avrdude.

@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

I think this issue has been fixed in the git master. I just copied the three txt files in the directory and it works fine. Take note I am using the latest avrdude git main (including avrdude.conf). I need to change programmer name from curiosity_updi to pkobn_updi for avrdude git main.

PS C:\work\arduino> git clone https://github.com/SpenceKonde/megaTinyCore.git

PS C:\work\arduino\megaTinyCore\megaavr> ls

    Directory: C:\work\arduino\megaTinyCore\megaavr

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----           1/11/2022  7:20 pm                bootloaders
d----           1/11/2022  7:20 pm                cores
d----           1/11/2022  7:20 pm                extras
d----           1/11/2022  7:20 pm                libraries
d----           1/11/2022  7:20 pm                tools
d----           1/11/2022  7:20 pm                variants
-a---           1/11/2022  7:20 pm         567532 avrdude.conf
-a---           1/11/2022  7:20 pm         247507 boards.txt
-a---           1/11/2022  7:20 pm          26776 LICENSE.md
-a---           1/11/2022  7:20 pm          17455 platform.txt
-a---           1/11/2022  7:20 pm           3851 programmers.txt

PS C:\work\arduino\megaTinyCore\megaavr> cp *.txt C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\

Now buring the bootloader and sketch upload will both work.

"C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18/bin/avrdude" "-CC:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf" -v -pattiny1627 -cpkobn_updi -Pusb -e "-Ufuse0:w:0x00:m" "-Ufuse1:w:0b00000101:m" "-Ufuse5:w:0b11110110:m" "-Ufuse6:w:0x04:m" "-Ufuse8:w:0x00:m" "-Ufuse7:w:0x00:m" "-Uflash:w:C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex:i"

avrdude: Version avrdude-main-test-libusb-compat
         Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg Wunsch

         System wide configuration file is C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\avrdude.conf

         Using Port                    : usb
         Using Programmer              : pkobn_updi
avrdude: found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATtiny1627
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse4       tcd0cfg     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuses                   0     0     0    0 no          9   10      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           prodsig                 0     0     0    0 no         61   61      0     0     0 0x00 0x00
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
           eeprom                  0     0     0    0 no        256   32      0     0     0 0x00 0x00
           flash                   0     0     0    0 no      16384   64      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity nano (nEDBG) in UPDI mode
         ICE HW version  : 0
         ICE FW version  : 1.21 (rel. 37)
         Serial number   : MCHP3258021800000382
         Vtarget         : 3.31 V
         PDI/UPDI clock Xmega/megaAVR : 100 kHz
avrdude: partial Family_ID returned: "tiny"
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
erasing chip
avrdude: reading input file 0x00 for fuse0/wdtcfg
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse0/wdtcfg ...
avrdude: 1 byte of fuse0/wdtcfg written
avrdude: verifying fuse0/wdtcfg memory against 0x00
avrdude: 1 byte of fuse0/wdtcfg verified
avrdude: reading input file 0b00000101 for fuse1/bodcfg
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse1/bodcfg ...
avrdude: 1 byte of fuse1/bodcfg written
avrdude: verifying fuse1/bodcfg memory against 0b00000101
avrdude: 1 byte of fuse1/bodcfg verified
avrdude: reading input file 0b11110110 for fuse5/syscfg0
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse5/syscfg0 ...
avrdude: 1 byte of fuse5/syscfg0 written
avrdude: verifying fuse5/syscfg0 memory against 0b11110110
avrdude: 1 byte of fuse5/syscfg0 verified
avrdude: reading input file 0x04 for fuse6/syscfg1
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse6/syscfg1 ...
avrdude: 1 byte of fuse6/syscfg1 written
avrdude: verifying fuse6/syscfg1 memory against 0x04
avrdude: 1 byte of fuse6/syscfg1 verified
avrdude: reading input file 0x00 for fuse8/bootend
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse8/bootend ...
avrdude: 1 byte of fuse8/bootend written
avrdude: verifying fuse8/bootend memory against 0x00
avrdude: 1 byte of fuse8/bootend verified
avrdude: reading input file 0x00 for fuse7/append
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse7/append ...
avrdude: 1 byte of fuse7/append written
avrdude: verifying fuse7/append memory against 0x00
avrdude: 1 byte of fuse7/append verified
avrdude: reading input file C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex for flash
         with 466 bytes in 2 sections within [0, 0x1ff]
         using 8 pages and 46 pad bytes
avrdude: writing 466 bytes flash ...

Writing | ################################################## | 100% 0.24s

avrdude: 466 bytes of flash written
avrdude: verifying flash memory against C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex

Reading | ################################################## | 100% 0.11s

avrdude: 466 bytes of flash verified

avrdude done.  Thank you.
Using board 'microchipo' from platform in folder: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Using core 'megatinycore' from platform in folder: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Detecting libraries used...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\xiaof\\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\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\ExtraWiring.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\ExtraWiring.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\UART0.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\UART0.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\Tone.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\Tone.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\WInterrupts_PB.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts_PB.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\WInterrupts_PA.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts_PA.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\WInterrupts.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\UART.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\UART.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\UART1.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\UART1.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\WInterrupts_PC.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts_PC.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\WMath.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WMath.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\abi.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\abi.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\Common.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\Common.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\IPAddress.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\IPAddress.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\PluggableUSB.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\PluggableUSB.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\Print.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\Print.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\RingBuffer.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\RingBuffer.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\Stream.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\Stream.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\hooks.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\hooks.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\api\\String.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\String.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\main.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\main.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\new.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\new.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\wiring_pulse.S" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_pulse.S.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\wiring.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\wiring_digital.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_digital.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\wiring_analog.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_analog.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\wiring_pulse.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_pulse.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -c -g -Os -Wall -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mrelax -Werror=implicit-function-declaration -Wundef -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore\\wiring_shift.c" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_shift.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\ExtraWiring.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\Tone.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\UART.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\UART0.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\UART1.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts_PA.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts_PB.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WInterrupts_PC.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\WMath.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\abi.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\Common.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\IPAddress.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\PluggableUSB.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\Print.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\RingBuffer.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\Stream.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\api\\String.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\hooks.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\main.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\new.cpp.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_analog.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_digital.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_pulse.S.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_pulse.c.o"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc-ar" rcs "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\core.a" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\core\\wiring_shift.c.o"
Archiving built core (caching) in: C:\Users\xiaof\AppData\Local\Temp\arduino-core-cache\core_6561b52f8f4a97bfc7553cd8ed4fd0f9.a
Linking everything together...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -Wall -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mrelax -mmcu=attiny1627 -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp.o" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/core\\core.a" "-LC:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984" -lm
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.bin"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.eep"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.hex"
cmd /C echo. && "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" > "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.lst"
 
cmd /C echo. && "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-nm" --numeric-sort --line-numbers --demangle --print-size --format=s "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" > "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.map"
 
Bootloader file specified but missing: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\bootloaders\optiboot_Curiosity1627.hex

"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-size" -A "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf"
Sketch uses 722 bytes (4%) of program storage space. Maximum is 15972 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 2044 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18/bin/avrdude" "-CC:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf" -v -V -pattiny1627 -carduino -D -PCOM20 -PCOM20 -b115200 "-Uflash:w:C:\Users\xiaof\AppData\Local\Temp\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.hex:i"

avrdude: Version avrdude-main-test-libusb-compat
         Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg Wunsch

         System wide configuration file is C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\avrdude.conf

         Using Port                    : COM20
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATtiny1627
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse4       tcd0cfg     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuses                   0     0     0    0 no          9   10      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           prodsig                 0     0     0    0 no         61   61      0     0     0 0x00 0x00
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
           eeprom                  0     0     0    0 no        256   32      0     0     0 0x00 0x00
           flash                   0     0     0    0 no      16384   64      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino for bootloader using STK500 v1 protocol
         Hardware Version: 3
         Firmware Version: 9.1

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
avrdude: reading input file C:\Users\xiaof\AppData\Local\Temp\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.hex for flash
         with 722 bytes in 1 section within [0x200, 0x4d1]
         using 12 pages and 46 pad bytes
avrdude: writing 722 bytes flash ...

Writing | ################################################## | 100% 0.10s

avrdude: 722 bytes of flash written

avrdude done.  Thank you.

@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

The only strange thing is the warning.

Bootloader file specified but missing: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\bootloaders\optiboot_Curiosity1627.hex

It is missing a hex in betwern. The file is here:
C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\bootloaders\hex\optiboot_curiosity1607.hex.

Same warning when exporting the binary.

Using board 'microchipo' from platform in folder: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Using core 'megatinycore' from platform in folder: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Detecting libraries used...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\xiaof\\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\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10607 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\xiaof\AppData\Local\Temp\arduino-core-cache\core_6561b52f8f4a97bfc7553cd8ed4fd0f9.a
Linking everything together...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -Wall -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mrelax -mmcu=attiny1627 -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984\\sketch\\Blink.ino.cpp.o" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/..\\arduino-core-cache\\core_6561b52f8f4a97bfc7553cd8ed4fd0f9.a" "-LC:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984" -lm
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.bin"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.eep"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.hex"
cmd /C echo. && "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" > "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.lst"
 
cmd /C echo. && "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-nm" --numeric-sort --line-numbers --demangle --print-size --format=s "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf" > "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.map"
 
Bootloader file specified but missing: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\bootloaders\optiboot_Curiosity1627.hex

"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-size" -A "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino-sketch-CFD7186EB0E645E355FF22678D2A1984/Blink.ino.elf"
Sketch uses 722 bytes (4%) of program storage space. Maximum is 15972 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 2044 bytes for local variables. Maximum is 2048 bytes.

@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

@SpenceKonde

I will close this issue as the main issue has been fixed in git master. The warning is a small thing you can take a look to see if it has been fixed or not.

@mcuee mcuee closed this as completed Nov 1, 2022
@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

Hmm, the above is with Arduino IDE 2.01.

With 1.8.19 it failed to upload the sketech, but no more warnings.

BTW, it failed to burn the bootloader so I have to use avrdude_git.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude_git -pattiny1627 -cpkobn_updi -Pusb -e -Ufuse0:w:0x00:m -Ufuse1:w:0x00:m -Ufuse5:w:0b11111110:m -Ufuse6:w:0x04:m -Ufuse8:w:0x00:m -Ufuse7:w:0x00:m -Uflash:w:C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex:i

             Vtarget                      : 3.31 V
             PDI/UPDI clock Xmega/megaAVR : 100 kHz
avrdude_git: AVR device initialized and ready to accept instructions
avrdude_git: device signature = 0x1e9428 (probably t1627)
erasing chip
avrdude_git: reading input file 0x00 for fuse0/wdtcfg
             with 1 byte in 1 section within [0, 0]
avrdude_git: writing 1 byte fuse0/wdtcfg ...
avrdude_git: 1 byte of fuse0/wdtcfg written
avrdude_git: verifying fuse0/wdtcfg memory against 0x00
avrdude_git: 1 byte of fuse0/wdtcfg verified
avrdude_git: reading input file 0x00 for fuse1/bodcfg
             with 1 byte in 1 section within [0, 0]
avrdude_git: writing 1 byte fuse1/bodcfg ...
avrdude_git: 1 byte of fuse1/bodcfg written
avrdude_git: verifying fuse1/bodcfg memory against 0x00
avrdude_git: 1 byte of fuse1/bodcfg verified
avrdude_git: reading input file 0b11111110 for fuse5/syscfg0
             with 1 byte in 1 section within [0, 0]
avrdude_git: writing 1 byte fuse5/syscfg0 ...
avrdude_git: 1 byte of fuse5/syscfg0 written
avrdude_git: verifying fuse5/syscfg0 memory against 0b11111110
avrdude_git: 1 byte of fuse5/syscfg0 verified
avrdude_git: reading input file 0x04 for fuse6/syscfg1
             with 1 byte in 1 section within [0, 0]
avrdude_git: writing 1 byte fuse6/syscfg1 ...
avrdude_git: 1 byte of fuse6/syscfg1 written
avrdude_git: verifying fuse6/syscfg1 memory against 0x04
avrdude_git: 1 byte of fuse6/syscfg1 verified
avrdude_git: reading input file 0x00 for fuse8/bootend
             with 1 byte in 1 section within [0, 0]
avrdude_git: writing 1 byte fuse8/bootend ...
avrdude_git: 1 byte of fuse8/bootend written
avrdude_git: verifying fuse8/bootend memory against 0x00
avrdude_git: 1 byte of fuse8/bootend verified
avrdude_git: reading input file 0x00 for fuse7/append
             with 1 byte in 1 section within [0, 0]
avrdude_git: writing 1 byte fuse7/append ...
avrdude_git: 1 byte of fuse7/append written
avrdude_git: verifying fuse7/append memory against 0x00
avrdude_git: 1 byte of fuse7/append verified
avrdude_git: reading input file C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex for flash
             with 466 bytes in 2 sections within [0, 0x1ff]
             using 8 pages and 46 pad bytes
avrdude_git: writing 466 bytes flash ...

Writing | ################################################## | 100% 0.28 s

avrdude_git: 466 bytes of flash written
avrdude_git: verifying flash memory against C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/bootloaders/hex/optiboot_Curiosity1627.hex

Reading | ################################################## | 100% 0.13 s

avrdude_git: 466 bytes of flash verified

avrdude_git done.  Thank you.

PS C:\work\avr\avrdude_test\avrdude_bin> ls *.hex

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xiaof\AppData\Local\Arduino15\packages -hardware C:\Users\xiaof\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xiaof\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xiaof\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchipo:board_name=cn1627,clocko=20internaltuned,bodvoltage=1v8,bodmode=disabled,millis=enabled,resetpin=UPDIaltrst,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=03EB_2175 -ide-version=10819 -build-path C:\Users\xiaof\AppData\Local\Temp\arduino_build_13713 -warnings=none -build-cache C:\Users\xiaof\AppData\Local\Temp\arduino_cache_691517 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avrdude.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.arduinoOTA.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.python3.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\xiaof\Documents\Arduino\Uno\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\xiaof\AppData\Local\Arduino15\packages -hardware C:\Users\xiaof\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\xiaof\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\xiaof\Documents\Arduino\libraries -fqbn=megaTinyCore:megaavr:microchipo:board_name=cn1627,clocko=20internaltuned,bodvoltage=1v8,bodmode=disabled,millis=enabled,resetpin=UPDIaltrst,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=03EB_2175 -ide-version=10819 -build-path C:\Users\xiaof\AppData\Local\Temp\arduino_build_13713 -warnings=none -build-cache C:\Users\xiaof\AppData\Local\Temp\arduino_cache_691517 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino6.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avr-gcc\7.3.0-atmel3.6.1-azduino6 -prefs=runtime.tools.avrdude.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18 -prefs=runtime.tools.arduinoOTA.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.python3.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1 -verbose C:\Users\xiaof\Documents\Arduino\Uno\Blink\Blink.ino
Using board 'microchipo' from platform in folder: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Using core 'megatinycore' from platform in folder: C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1
Detecting libraries used...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\xiaof\\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\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-g++" -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny1627 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERB1 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_CuriosityNano1627 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.6.1\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=6UL -DMEGATINYCORE_PATCH=1UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -DLED_BUILTIN=PIN_PB4 -DPIN_BUTTON_BUILTIN=PIN_PB7 -DCLOCK_TUNE_INTERNAL "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore/api/deprecated" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\cores\\megatinycore" "-IC:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\megaTinyCore\\hardware\\megaavr\\2.6.1\\variants\\txy7" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\sketch\\Blink.ino.cpp" -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\xiaof\AppData\Local\Temp\arduino_cache_691517\core\core_f00dbb8a54bc2eb95d019920030979cc.a
Linking everything together...
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-gcc" -Wall -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mrelax -mmcu=attiny1627 -o "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713\\sketch\\Blink.ino.cpp.o" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/..\\arduino_cache_691517\\core\\core_f00dbb8a54bc2eb95d019920030979cc.a" "-LC:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713" -lm
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.bin"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.eep"
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf" "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.hex"
cmd /C echo. && "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf" > "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.lst"
 
cmd /C echo. && "C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-nm" --numeric-sort --line-numbers --demangle --print-size --format=s "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf" > "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.map"
 
"C:\\Users\\xiaof\\AppData\\Local\\Arduino15\\packages\\DxCore\\tools\\avr-gcc\\7.3.0-atmel3.6.1-azduino6/bin/avr-size" -A "C:\\Users\\xiaof\\AppData\\Local\\Temp\\arduino_build_13713/Blink.ino.elf"
Sketch uses 722 bytes (4%) of program storage space. Maximum is 15972 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 2044 bytes for local variables. Maximum is 2048 bytes.
C:\Users\xiaof\AppData\Local\Arduino15\packages\DxCore\tools\avrdude\6.3.0-arduino17or18/bin/avrdude -CC:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1/avrdude.conf -v -pattiny1627 -carduino -D -PCOM20 -PCOM20 -b115200 -Uflash:w:C:\Users\xiaof\AppData\Local\Temp\arduino_build_13713/Blink.ino.hex:i 

avrdude: Version avrdude-main-test-libusb-compat
         Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg Wunsch

         System wide configuration file is C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.1\avrdude.conf

         Using Port                    : COM20
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATtiny1627
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse4       tcd0cfg     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuses                   0     0     0    0 no          9   10      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           prodsig                 0     0     0    0 no         61   61      0     0     0 0x00 0x00
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
           eeprom                  0     0     0    0 no        256   32      0     0     0 0x00 0x00
           flash                   0     0     0    0 no      16384   64      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino for bootloader using STK500 v1 protocol
         Hardware Version: 3
         Firmware Version: 9.1

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
avrdude: reading input file C:\Users\xiaof\AppData\Local\Temp\arduino_build_13713/Blink.ino.hex for flash
         with 722 bytes in 1 section within [0x200, 0x4d1]
         using 12 pages and 46 pad bytes
avrdude: writing 722 bytes flash ...

Writing | ################################################## | 100% 0.09s

avrdude: 722 bytes of flash written
avrdude: verifying flash memory against C:\Users\xiaof\AppData\Local\Temp\arduino_build_13713/Blink.ino.hex

Reading | ################################################## | 100% 0.09s

avrdude avr_verify() error: verification mismatch, first encountered at addr 0x0200
        device 0xff != input 0x3b
avrdude do_op() error: verification mismatch

avrdude done.  Thank you.

the selected serial port 
 does not exist or your board is not connected

@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

I will carry out more testing to have more consistent test results.

@mcuee mcuee reopened this Nov 1, 2022
@mcuee
Copy link
Author

mcuee commented Nov 1, 2022

Looks I will have to wait for the next release to carry out more consisten testing. The current results may not be valid.

Arduino IDE 2.0.1 somehow can not display the menu option for UPDI/Reset pin function and use the default UPDI (no reset pin) option and that is why it is successful writing the bootloader.

I am using the other option UPDI with reset on PB4 (2-series only) with Arduino 1.8.19 and that is why the bootloader buring works. When I use the default option, then the bootloader buring will work.

However, sketch upload still fails.

For Arduino 2.0.1, sketch uploading appears to pass but then verify using the on_board programmer shows that it fails in reality.

@mcuee mcuee closed this as completed Nov 1, 2022
@mcuee
Copy link
Author

mcuee commented Nov 4, 2022

Issue has been fixed by using another hex file optiboot_tx2z_rst.hex (default UART0 pins, UPDI on RA0, Reset on the alternative PB4 pin) instead of optiboot_curiosity1627.hex.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -qq -pattiny1627 -cpkobn_updi -Pusb -e 
-Ufuse0:w:0x00:m -Ufuse1:w:0x00:m -Ufuse5:w:0b11111110:m -Ufuse6:w:0x04:m 
-Ufuse8:w:0x02:m -Ufuse7:w:0x00:m -Uflash:w:optiboot_tx2z_rst.hex:i && echo OK
OK

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -c arduino -P COM20 -b 115200 -p t1627 -D 
-U .\hello_world_256B_offset_0x200.hex

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
avrdude: reading input file .\hello_world_256B_offset_0x200.hex for flash
         with 256 bytes in 1 section within [0x200, 0x2ff]
         using 4 pages and 0 pad bytes
avrdude: writing 256 bytes flash ...

Writing | ################################################## | 100% 0.01 s

avrdude: 256 bytes of flash written
avrdude: verifying flash memory against .\hello_world_256B_offset_0x200.hex

Reading | ################################################## | 100% 0.01 s

avrdude: 256 bytes of flash verified

avrdude done.  Thank you.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -c pkobn_updi -p t1627 
-U flash:v:.\hello_world_256B_offset_0x200.hex:i -qq && echo OK
OK

@mcuee mcuee reopened this Dec 4, 2022
@mcuee
Copy link
Author

mcuee commented Dec 4, 2022

Basically optiboot_curiosity1627.hex is broken.

Same for optiboot_xplained817.hex.

I do not have the other boards, but I suspect that all the optiboot hex files are broken for Microchip boards.

@SpenceKonde
Copy link
Owner

Huh. Well I've got a curiosity 1627. I'll subject this specimen to a thorough investigation.

If it does not divulge to me the nature of the problem and fix in an expedient manner, I'll make that chip wish it were still silicate rock!

@SpenceKonde
Copy link
Owner

Okay, I have found multiple problems in every Microchip board def. Except the 1627 which is the one tyou claim is broken,.

@mcuee
Copy link
Author

mcuee commented Dec 5, 2022

Okay, I have found multiple problems in every Microchip board def. Except the 1627 which is the one you claim is broken,.

I actually did not claim that the board def for ATtiny1627 Curiosity Nano was broken.

I only say that optiboot_curiosity1627.hex is broken whereas optiboot_tx2z_rst.hex is good. I will check again.

@mcuee
Copy link
Author

mcuee commented Dec 6, 2022

Same issue here. The default optiboot hex file optiboot_xplained817.hex is broken but the alternative hex file optiboot_txyz.hex is okay for the Microchip ATtiny817 Xplained Mini and Pro board.

@SpenceKonde SpenceKonde added the bug Something isn't working label Dec 24, 2022
@SpenceKonde SpenceKonde added this to the 2.6.5 milestone Dec 24, 2022
@SpenceKonde
Copy link
Owner

These will be fixed in 2.6.5

@mcuee
Copy link
Author

mcuee commented Dec 25, 2022

@SpenceKonde

Still missing one optiboot_x hex file for ATtiny817 Xplained Pro. Now you only have bootloaders/hex/optiboot_xplainedmini817.hex.

@mcuee
Copy link
Author

mcuee commented Dec 25, 2022

The hex file is now working for ATtiny1627 Curiosity Nano -- but I am using avrdude as I could not get megaTinyCore to work. I will test again using 2.6.5 release once it is released.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -v -pattiny1627 -cpkobn_updi -Pusb -e -Ufuse0:w:0x00:m -Ufuse1:w:0x00:m -Ufuse5:w:0b11111110:m -Ufuse6:w:0x04:m -Ufuse8:w:0x02:m -Ufuse7:w:0x00:m -Uflash:w:optiboot_Curiosity1627.hex:i

avrdude: Version 7.0-20221223 (8573442)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\avrdude.conf

         Using Port                    : usb
         Using Programmer              : pkobn_updi
avrdude: found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATtiny1627
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse4       tcd0cfg     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuses                   0     0     0    0 no          9   10      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           prodsig                 0     0     0    0 no         61   61      0     0     0 0x00 0x00
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
           eeprom                  0     0     0    0 no        256   32      0     0     0 0x00 0x00
           flash                   0     0     0    0 no      16384   64      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity nano (nEDBG) in UPDI mode
         ICE HW version  : 0
         ICE FW version  : 1.21 (rel. 37)
         Serial number   : MCHP3258021800000382
         Vtarget         : 3.31 V
         PDI/UPDI clk    : 100 kHz

avrdude: partial Family_ID returned: "tiny"
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
avrdude: erasing chip
avrdude: reading input file 0x00 for fuse0/wdtcfg
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse0/wdtcfg ...
avrdude: 1 byte of fuse0/wdtcfg written
avrdude: verifying fuse0/wdtcfg memory against 0x00
avrdude: 1 byte of fuse0/wdtcfg verified
avrdude: reading input file 0x00 for fuse1/bodcfg
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse1/bodcfg ...
avrdude: 1 byte of fuse1/bodcfg written
avrdude: verifying fuse1/bodcfg memory against 0x00
avrdude: 1 byte of fuse1/bodcfg verified
avrdude: reading input file 0b11111110 for fuse5/syscfg0
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse5/syscfg0 ...
avrdude: 1 byte of fuse5/syscfg0 written
avrdude: verifying fuse5/syscfg0 memory against 0b11111110
avrdude: 1 byte of fuse5/syscfg0 verified
avrdude: reading input file 0x04 for fuse6/syscfg1
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse6/syscfg1 ...
avrdude: 1 byte of fuse6/syscfg1 written
avrdude: verifying fuse6/syscfg1 memory against 0x04
avrdude: 1 byte of fuse6/syscfg1 verified
avrdude: reading input file 0x02 for fuse8/bootend
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse8/bootend ...
avrdude: 1 byte of fuse8/bootend written
avrdude: verifying fuse8/bootend memory against 0x02
avrdude: 1 byte of fuse8/bootend verified
avrdude: reading input file 0x00 for fuse7/append
         with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte fuse7/append ...
avrdude: 1 byte of fuse7/append written
avrdude: verifying fuse7/append memory against 0x00
avrdude: 1 byte of fuse7/append verified
avrdude: reading input file C:\Users\xiaof\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.4/bootloaders/hex/optiboot_Curiosity1627.hex for flash
         with 476 bytes in 2 sections within [0, 0x1ff]
         using 8 pages and 36 pad bytes
avrdude: writing 476 bytes flash ...

Writing | ################################################## | 100% 0.31 s

avrdude: 476 bytes of flash written
avrdude: verifying flash memory against optiboot_Curiosity1627.hex
Reading | ################################################## | 100% 0.14 s

avrdude: 476 bytes of flash verified

avrdude done.  Thank you.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -c urclock -P COM3 -p t1627 -xshowall -xbootsize=512

avrdude: AVR device initialized and ready to accept instructions
0 0000-00-00 00.00  application 0 store 0 meta 0 boot 512 x0.0 ......... vector 0 (RESET) ATtiny1627
PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -c urclock -P COM3 -p t1627 -xbootsize=512 -U .\blink_attiny1627_optiboot.hex

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9428 (probably t1627)
avrdude: Note: flash memory has been specified, an erase cycle will be performed.
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file .\blink_attiny1627_optiboot.hex for flash
         with 722 bytes in 1 section within [0x200, 0x4d1]
         using 12 pages and 46 pad bytes
avrdude: preparing flash input for device bootloader
avrdude: writing 722 bytes flash ...

Writing | ################################################## | 100% 0.14 s

avrdude: 722 bytes of flash written
avrdude: verifying flash memory against .\blink_attiny1627_optiboot.hex

Reading | ################################################## | 100% 0.14 s

avrdude: 722 bytes of flash verified

avrdude done.  Thank you.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -c urclock -P COM3 -p t1627 -xshowall -xbootsize=512

avrdude: AVR device initialized and ready to accept instructions
0 2022-11-01 21.04 blink_attiny1627_optiboot.hex 1234 store 15109 meta 41 boot 512 x0.0 ......... vector 0 (RESET) ATtiny1627

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude -c pkobn_updi -p t1627 -qqt
avrdude> dump fuses
0000  00 00 02 ff ff fe 04 00  02                       |.........       |

avrdude> dump flash
0000  01 c0 dd c0 11 24 80 91  40 00 81 11 05 c0 98 ed  |.....$..@.......|
0010  21 e0 94 bf 20 93 41 00  28 2f 30 e0 83 fd 03 c0  |!... .A.(/0.....|
0020  2d 7f 23 2b 31 f4 80 93  40 00 8c bb 80 e0 af d0  |-.#+1...@.......|
0030  e7 c0 a8 95 22 9a 2a 9a  10 92 e2 05 80 91 82 12  |....".*.........|
0040  83 70 81 30 61 f5 8c e5  90 e0 80 93 08 08 90 93  |.p.0a...........|
0050  09 08 81 e0 80 93 0b 08  83 e0 80 93 07 08 10 92  | ..... .........|
0060  05 08 80 ec 80 93 06 08  8b e0 91 d0 27 9a 88 e0  |............'...|
0070  81 50 c1 f4 a8 95 0d e9  83 e0 d8 2e 7c d0 81 34  |.P.... .....|..4|
0080  e9 f4 79 d0 18 2f 8c d0  81 e0 12 38 21 f0 89 e0  |..y../.....8!...|
0090  11 38 09 f0 83 e0 68 d0  80 e1 66 d0 ef cf 83 e7  |.8 ...h...f.....|
00a0  90 e0 d3 cf 37 9a 2e ec  36 e5 a8 95 90 91 04 08  |....7...6.......|
00b0  97 fd e1 cf 21 50 31 09  c1 f7 da cf 82 34 19 f4  |....!P1 .....4..|
00c0  84 e1 76 d0 e9 cf 85 34  11 f4 85 e0 fa cf 85 35  |..v....4.......5|
00d0  31 f4 51 d0 c8 2f 4f d0  d8 2f 62 d0 dd cf 86 35  |1.Q../O../b....5|
00e0  21 f4 84 e0 65 d0 80 e0  d6 cf 84 36 b9 f4 43 d0  |!...e......6..C.|
00f0  42 d0 18 2f 40 d0 86 34  79 f4 d0 58 3c d0 88 83  |B../@..4y..X<...|

avrdude> dump
0100  21 96 11 50 d9 f7 4c d0  04 bf d0 92 00 10 80 91  |!..P..L.........|
0110  02 10 83 70 e1 f7 c0 cf  dc 5e f0 cf 84 37 91 f4  |...p.....^...7..|
0120  2a d0 29 d0 18 2f 27 d0  f8 2e 3a d0 86 e4 f8 12  |*.)../'...:.....|
0130  07 c0 d0 58 88 81 21 96  17 d0 11 50 d9 f7 ac cf  |...X..!....P....|
0140  dc 5e f8 cf 85 37 51 f4  2b d0 80 91 00 11 0c d0  |.^...7Q.+..... .|
0150  80 91 01 11 09 d0 80 91  02 11 9d cf 81 35 09 f0  |.... ........5 .|
0160  bc cf 81 e0 14 d0 b9 cf  90 91 04 08 95 ff fc cf  |................|
0170  80 93 02 08 08 95 80 91  04 08 87 ff fc cf 90 91  |................|
0180  01 08 80 91 00 08 92 fd  01 c0 a8 95 08 95 90 91  |................|
0190  01 01 90 fd fc cf 98 ed  94 bf 80 93 00 01 08 95  |................|
01a0  ea df 80 32 19 f0 81 e0  f2 df ff cf 84 e1 dc cf  |...2............|
01b0  cf 93 c8 2f e0 df c1 50  e9 f7 cf 91 f1 cf 68 30  |.../...P......h0|
01c0  48 f4 8d e9 84 bf 60 93  00 10 80 91 02 10 83 70  |H.....`........p|
01d0  e1 f7 08 95 fc 01 40 83  08 95 ff ff ff ff ff ff  |......@.........|
01e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff 01 09  |............... |

avrdude> dump
0200  3b c0 00 00 55 c0 00 00  53 c0 00 00 51 c0 00 00  |;...U...S...Q...|
0210  4f c0 00 00 4d c0 00 00  4b c0 00 00 49 c0 00 00  |O...M...K...I...|
0220  47 c0 00 00 45 c0 00 00  43 c0 00 00 41 c0 00 00  |G...E...C...A...|
0230  3f c0 00 00 3d c0 00 00  3b c0 00 00 39 c0 00 00  |?...=...;...9...|
0240  37 c0 00 00 35 c0 00 00  33 c0 00 00 31 c0 00 00  |7...5...3...1...|
0250  2f c0 00 00 2d c0 00 00  2b c0 00 00 29 c0 00 00  |/...-...+...)...|
0260  27 c0 00 00 ad c0 00 00  23 c0 00 00 21 c0 00 00  |'.......#...!...|
0270  1f c0 00 00 1d c0 00 00  11 24 1f be cf ef cd bf  |.........$......|
0280  df e3 de bf 80 91 40 00  80 93 40 00 81 11 05 c0  |......@...@.....|
0290  98 ed 21 e0 94 bf 20 93  41 00 8c bb 28 e3 a0 e0  |..!... .A...(...|
02a0  b8 e3 01 c0 1d 92 a4 30  b2 07 e1 f7 a5 d0 0f c1  |.......0........|
02b0  a7 cf 9f b7 f8 94 e0 91  9a 0a f0 91 9b 0a 80 91  |......... ... ..|
02c0  96 0a 20 91 00 38 30 91  01 38 40 91 02 38 50 91  |.  [email protected].|
02d0  03 38 9f bf 80 ff 08 c0  cf 01 88 27 89 2b 21 f4  |.8.........'.+!.|
02e0  2f 5f 3f 4f 4f 4f 5f 4f  0f 01 16 94 07 94 16 94  |/_?OOO_O........|
02f0  07 94 16 94 07 94 f0 01  16 94 07 94 16 94 07 94  |................|

avrdude> dump
0300  e0 19 f1 09 16 94 07 94  06 94 10 2c 16 94 16 94  |... .......,....|
0310  01 18 16 94 16 94 01 0c  11 24 e0 0d f1 1d a8 ee  |....... .$. ....|
0320  b3 e0 bc d0 6e 0f 7f 1f  81 1d 91 1d 08 95 cf 92  |....n...........|
0330  df 92 ef 92 ff 92 cf 93  df 93 bb df eb 01 88 ee  |................|
0340  c8 2e 83 e0 d8 2e e1 2c  f1 2c b3 df 6c 1b 7d 0b  |.......,.,..l.} |
0350  68 3e 73 40 a0 f0 c1 14  d1 04 e1 04 f1 04 39 f4  |h>[email protected].|
0360  df 91 cf 91 ff 90 ef 90  df 90 cf 90 08 95 81 e0  |................|
0370  c8 1a d1 08 e1 08 f1 08  c8 51 dc 4f e6 cf c1 14  |.........Q.O....|
0380  d1 04 e1 04 f1 04 09 f7  eb cf 90 e8 81 11 11 c0  |...... .........|
0390  90 93 26 04 90 91 20 04  97 fd 0a c0 9f b7 f8 94  |..&... ... .....|
03a0  81 11 0a c0 80 91 37 04  87 7f 80 93 37 04 9f bf  |.. ...7.....7...|
03b0  08 95 90 93 25 04 ee cf  80 91 37 04 88 60 f5 cf  |....%.....7..`..|
03c0  af 93 bf 93 a0 e0 b8 e3  8f 93 8f b7 8f 93 8c 91  |................|
03d0  8f 5f 8d 93 8c 91 8f 4f  8d 93 8c 91 8f 4f 8d 93  |._.....O.....O..|
03e0  8c 91 8f 4f 8c 93 81 e0  80 93 96 0a 8f 91 8f bf  |...O....... ....|
03f0  8f 91 bf 91 af 91 18 95  90 91 18 11 20 91 15 13  |............ ...|

avrdude> dump
0400  80 91 17 13 2f 3f 81 f4  8b e1 89 0f e6 9a 87 fd  |..../?..........|
0410  8f e7 98 ed 94 bf 80 93  71 00 00 00 00 00 80 e0  |........q.......|
0420  94 bf 80 93 61 00 03 c0  80 38 99 f7 e7 9a 83 e0  |....a....8......|
0430  80 93 01 06 9f e0 90 93  08 06 91 e2 90 93 00 06  |................|
0440  90 ea 90 93 02 06 9a e0  90 93 0b 06 e1 e0 e0 93  |.......... .....|
0450  03 0a 9e ef 90 93 26 0a  90 93 27 0a 9b e0 90 93  |. ....& ..' ....|
0460  00 0a 2f e0 37 e2 20 93  9c 0a 30 93 9d 0a e0 93  |. /.7. .. 0.. ..|
0470  95 0a 10 92 91 0a 80 93  90 0a 78 94 e2 95 ee 0f  |. ... ... x.....|
0480  f0 e0 f4 60 80 e8 81 83  87 89 87 7f 87 8b 81 e0  |...`............|
0490  7c df 4d df 80 e0 79 df  4a df f9 cf 09 d0 a5 9f  ||.M...y.J... ...|
04a0  90 0d b4 9f 90 0d a4 9f  80 0d 91 1d 11 24 08 95  |. ... ... ...$..|
04b0  a2 9f b0 01 b3 9f c0 01  a3 9f 70 0d 81 1d 11 24  |..........p ...$|
04c0  91 1d b2 9f 70 0d 81 1d  11 24 91 1d 08 95 f8 94  |....p ...$......|
04d0  ff cf ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
04e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
04f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

avrdude> dump flash 0x3f00
3f00  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f10  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f20  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f30  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f40  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f50  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f60  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f70  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f80  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3f90  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3fa0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3fb0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3fc0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
3fd0  ff ff ff ff ff ff ff 62  6c 69 6e 6b 5f 61 74 74  |.......blink_att|
3fe0  69 6e 79 31 36 32 37 5f  6f 70 74 69 62 6f 6f 74  |iny1627_optiboot|
3ff0  2e 68 65 78 00 e6 07 0b  01 15 04 d2 04 05 3b 1e  |.hex... ......;.|

avrdude> quit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants