It would be nice if users of other versions of Arduino boards (i.e. original and clones with different integrated circuits for USB-UART communication) could perform upload tests.
I am watching this thread and didn't react sooner because I see you use STK500, while I am using USBasp. I also use USBasp (or rather a clone).
No, I do not have an STK500 programmer. This is an error that appeared yesterday during tests, done late at night.
I use various Arduino boards and different AVRs (such as ATtiny85 and ATmega2560). I program them directly from Lazarus (with command after build: C:\avrdude\avrdude.exe -patmega328p -cusbasp -V -Uflash:w:$NameOnly($(ProjFile)).hex:i).
Unfortunately, I didn't have chance to try AVRpascal yet, due to the lack of time.
Maybe important for this thread is that I also had problems with avrdude. I can't remember what problems I had, but previous version of avrdude I have on disk is avrdude-6.3-mingw32, and now I use version 8.0.
I have only one Arduino board, a clone from Waveshare. And two Atmel microcontrollers: ATTINY13A and ATMEGA16A (bought a few days ago together with the
USBasp programmer), which I test on a breadboard using
Arduino IDE and
AVRPascal. It seems that you encountered similar problems in
avrdude as I did.
@VisualLab, that's really very interesting... I have an idea: could you replace avrdude.exe and avrdude.conf near AVRPascal.exe with the files from Arduino 2.3.3 and try to upload your binary? I suppose the problem is in avrdude 7.2...
I renamed the file avrdude.exe located in the directory: C:\Program Files\AVRPascal\bin\win64. Then I copied the file avrdude.exe from the directory belonging to the Arduino IDE (directory:
C:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\etc
Then I ran AVRPascal and loaded the file: TestBlink.pas from the directory containing the examples. The compilation was fast and correct. However, when trying to upload, the following message appears:
avrdude.exe: error at C:\Program Files\AVRPascal\bin\win64\avrdude.conf:421: syntax error
avrdude.exe: error reading system wide configuration file "C:\Program Files\AVRPascal\bin\win64\avrdude.conf"
Line 421 is: default_spi = "";. Of course, this is included in the arvdude.exe configuration file in version 7.2. However, in the configuration file for version 6.3 (used by Arduino IDE) there is no default_spi parameter.
I renamed the file arvdude.conf located in the directory: C:\Program Files\AVRPascal\bin\win64. Then I copied the file arvdude.conf from the directory belonging to the Arduino IDE. I started the upload, but AVRPascal stopped responding for some time (the mouse cursor indicated that the program is busy), and after some time (1-2 minutes) the message appeared:
„avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 1 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 2 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 3 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 4 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 5 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 6 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 7 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 8 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 9 of 10: not in sync: resp=0x54
avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 10 of 10: not in sync: resp=0x54
avrdude.exe done. Thank you.”
I analyzed the tests from message no. 43 again. Yesterday's
avrdude file swap was not a good idea. As a result of the file swap, something went wrong during the test and
avrdude stated that my programmer is
STK500. Most likely I confused the CONF files between versions 6.3 and 7.2.
I am using a clone of the
USBasp programmer. Today's test was done correctly, i.e.:
- first I changed the names of both avrdude files: EXE and CONF,
- only then I copied the new (8.0) versions of avrdude.
A moment ago I also did a test of the ATTINY13A on a breadboard. I used a clone of the
USBasp programmer and
AVRPascal version 2.8. The program compiled without any problems. The programmer was also detected without problems. The upload was done immediately, without any jams or problems. In my next free time, I will also try to test the ATMEGA16A microcontroller, also on a breadboard.