Error message after upload to LGT8F328p

Hi,
like topic say, i get a error message if i upload a sketch ( no matter which, also with the Blink from examples ) to the board.
The upload itself works ( also the Sketch at the board works ), only the verifying after the upload fails.
Here the message :

FQBN: lgt8fx:avr:328:clock_div=2
Using board '328' from platform in folder: /home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7
Using core 'lgt8f' from platform in folder: /home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7

Verwendete Bibliotheken erkennen ...
/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=(32000000L/2) -DF_OSC=32000000L -DF_DIV=2 -DARDUINO=10607 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR -I/home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7/cores/lgt8f -I/home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7/variants/lgt8fx8p /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/sketch/Blink.ino.cpp -o /dev/null
Funktionsprototypen werden generiert ...
/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=(32000000L/2) -DF_OSC=32000000L -DF_DIV=2 -DARDUINO=10607 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR -I/home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7/cores/lgt8f -I/home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7/variants/lgt8fx8p /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/sketch/Blink.ino.cpp -o /tmp/1474806754/sketch_merged.cpp
/home/herbk/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/1474806754/sketch_merged.cpp
Sketch wird kompiliert ...
/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=(32000000L/2) -DF_OSC=32000000L -DF_DIV=2 -DARDUINO=10607 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR -I/home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7/cores/lgt8f -I/home/herbk/.arduino15/packages/lgt8fx/hardware/avr/2.0.7/variants/lgt8fx8p /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/sketch/Blink.ino.cpp -o /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/sketch/Blink.ino.cpp.o
Bibliotheken werden kompiliert ...
Kern wird kompiliert ...
Using precompiled core: /tmp/arduino/cores/bdd46a5c288dd1e6ddefc0f351178ff3/core.a
Linking everything together...
/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.elf /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/sketch/Blink.ino.cpp.o /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/../../cores/bdd46a5c288dd1e6ddefc0f351178ff3/core.a -L/tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8 -lm
/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.elf /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.eep
/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.elf /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.hex

/home/herbk/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.elf
Der Sketch verwendet 1120 Bytes (3%) des Programmspeicherplatzes. Das Maximum sind 29696 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
"/home/herbk/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/herbk/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v  -patmega328p -carduino "-P/dev/ttyUSB0" -b57600 -D "-Uflash:w:/tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.hex:i"

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

         System wide configuration file is "/home/herbk/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/home/herbk/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 5.0
         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 = 0x1e950f (probably m328p)
avrdude: reading input file "/tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.hex"
avrdude: writing flash (1120 bytes):

Writing | ################################################## | 100% 0.33s

avrdude: 1120 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.hex:
avrdude: load data flash data from input file /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.hex:
avrdude: input file /tmp/arduino/sketches/889BF4E75EC16EF476E261D59382F1F8/Blink.ino.hex contains 1120 bytes
avrdude: reading on-chip flash data:

Reading | avrdude: stk500_recv(): programmer is not responding
#####avrdude: stk500_recv(): programmer is not responding
avr_read(): error reading address 0x0000
    read operation not supported for memory "flash"
avrdude: failed to read all of flash memory, rc=-2
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.

Fehlgeschlagenes Hochladen: Hochladefehler: exit status 1

The error is only at IDE 2.3.x (versions before i don't remember), at 1.8.19 verifying works well.

Btw.: I'm on Linux, OpenSuse Tumbleweed, KDE

Hi @herbk.

I'm going to ask you to post the full verbose output from an upload using Arduino IDE 1.8.19. By comparing that output to the output you already shared from Arduino IDE 2.3.x, we might be able to better understand the problem.


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


Please do this:

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compilation in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload process to finish.
  7. Click on the black console panel at the bottom of the Arduino IDE window.
  8. Press the Ctrl+A keyboard shortcut (Command+A for macOS users) to select all the text.
  9. Press the Ctrl+C keyboard shortcut (Command+C for macOS users).
    This will copy the selected text to the clipboard.
  10. Open a forum reply here by clicking the "Reply" button.
  11. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  12. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  13. Move the cursor outside of the code block markup before you add any additional text to your reply.
  14. Click the "Reply" button to post the output.

No, problem, - here the output of the 1.8.19 :

Sketch uses 1120 bytes (3%) of program storage space. Maximum is 29696 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/home/herbk/Arduino/arduino-1.8.19/portable/packages/MiniCore/tools/avrdude/7.2-arduino.1/bin/avrdude -C/home/herbk/Arduino/arduino-1.8.19/portable/packages/MiniCore/tools/avrdude/7.2-arduino.1/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_148069/Blink.ino.hex:i 

avrdude: Version 7.2-arduino.1
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /home/herbk/Arduino/arduino-1.8.19/portable/packages/MiniCore/tools/avrdude/7.2-arduino.1/etc/avrdude.conf
         User configuration file is /home/herbk/.avrduderc
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0x00 0x00
           flash                  65    10   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino for bootloader using STK500 v1 protocol
         Hardware Version: 3
         Firmware Version: 5.0
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e950f (probably m328p)

avrdude: processing -U flash:w:/tmp/arduino_build_148069/Blink.ino.hex:i
avrdude: reading input file /tmp/arduino_build_148069/Blink.ino.hex for flash
         with 1120 bytes in 1 section within [0, 0x45f]
         using 9 pages and 32 pad bytes
avrdude: writing 1120 bytes flash ...
Writing | ################################################## | 100% 0.37s
avrdude: 1120 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_148069/Blink.ino.hex
Reading | ################################################## | 100% 0.26s
avrdude: 1120 bytes of flash verified

avrdude done.  Thank you.


Command back !

There seams to be a problem with the bootloader of some of my LGT Boards. 2 of my LGT boards show this behavior, but others don't .

1 Like

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