avrdude.exe: stk500_recv(): programmer is not responding

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
andeug
Posts: 23
http://meble-kuchenne.info.pl
Joined: Thu Jan 07, 2021 1:42 pm
Location: Stockholm (SE)
Has thanked: 7 times
Been thanked: 2 times
Contact:

avrdude.exe: stk500_recv(): programmer is not responding

Post by andeug »

Hi,


I am receiving the error below, and I am not sure which is the problem:

Code: Select all

Target folder: C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects
Source name:   C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.fcfx
Title:         
Description:   
Device:        ARD.ATMEGA.ATMEGA328P
Generated by:  Flowcode v10.1.2.40
Date:          Thursday, August 28, 2025 10:41:20
Users:         1
Registered to: andeug (29372262)
Licence key: 29YCxx
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avra.bat  "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" atmega328p "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.c" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.lst"

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B690411241251B4A05C2B5828F4452C9F7348705C640EF477B79E0C7881D2E5EEC9BD69A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF5A24465F11D9C3B2DBA3F4E37F13004EE3637760F1F0B7DA0CC623CD30E3C7D6BAB4C3FE6151D92B8EC0ADD55E96639DAC02472BDE3806EF43AE3A028BD32A5DAE68BB191DA97CB6883A66D3C41849952BB2DD264AF32733E2C3050DA273BE4EE1FA30153290F2FAFBD2259D77AD477809E9C4D76400384BA5D2E1919BC6D834D57C406BC4A49D3F1 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM REVISION: 1.0 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM GUID: EA0828B2-5C70-41A5-8C54-F359DD5CC88B 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM DATE: 08\08\2022 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM DIR: FCD\AVR\batchfiles\avra.bat 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.c" -lm -Wl,-gc-sections 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-objdump.exe" -S "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf"  1>"C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.lst" 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-size.exe" -B -d "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf" 
   text	   data	    bss	    dec	    hex	filename
    186	      0	      0	    186	     ba	C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf

Compilation successful!

Using FCD settings for linker
Launching the linker/assembler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avrb.bat  "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.hex" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.cof"

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B69041F19754DEA3580B6825E5D6A5C09874F305C640EF477B79E0C7881D2E5EEC9BD69A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF5202CD64388F0AF24F175A82BBF7DF194C31451F662291FA2302B8E00B0793B98DE54674FED6890F09D29E6D6AF5F4CDA2A0B069D1A731E4BF7CAEBD6A00B6313A3554E78FBF27EB2E2AB377A2B2C9B1D3B75C13EB27ADD422C3050DA273BE4EEA03AAF1B2D5E9A8C92AFCC9691A050BCD9E1A3B49732FB7C850400E5B608E745107C571680B732A8 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM REVISION: 1.0 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM GUID: C4F77EBB-EDB0-4261-B01E-F0B1AB94E03A 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM DATE: 08\08\2022 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM DIR: FCD\AVR\batchfiles\avrb.bat 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-objcopy" -O ihex -R .eeprom  "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.elf" "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.hex" 

HEX file creation successful!

Using FCD settings for programmer
Launching the programmer...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avrc_arduinoA.bat  "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" m328p arduino COM5 57600 "C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects\00 - 16x WS2812 RGB Timer.hex"

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B69041072C26934F62BA2AD18E3139D88C14D7BD8C8CEEE570C34335B9BD40DC91ABF9F6A4CCB7873802B223E4F4A1008A35919A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF56C9BC3BB2590B5192C2BCACE9467A07961E9396118791606FB531939F6539CFCA719F5A675CCBEE4B35B6B3E06A3B6EA1F1C802F1E0729A39B031A08340CB3AD07D220268868A23DD35657CD8CE9A282EF4678980A2C5F4D2C3050DA273BE4EE2CC1E88F2D5F77FA0C3AE4CE7890CA0B515E308238372D4FCC6735C2880B0855018D7FE4AA495AC4 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM REVISION: 1.0 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM GUID: BC89C337-8FBB-43B7-A3A7-C7902C121931 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM DATE: 08\08\2022 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>REM DIR: FCD\AVR\batchfiles\avrc_arduinoA.bat 

C:\Users\andre\iCloudDrive\Documents\Hobby\Electronics\Projects>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avrdude.exe" -pm328p -PCOM5 -b57600 -carduino -D -Uflash:w:"00 - 16x WS2812 RGB Timer.hex"                      
. . . . . . . . . . . . . . . . . .

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
. . . . . . . . . . . . . . .

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
. . . . . . . . . . . . . . .

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
. . . . . . . . . . . . . . .

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
. . . . . . . . . . . . . . .

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
. . . . . . . . . . . . . . .

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avrc_arduinoA.bat reported error code 0xFF

Autoclose turned off


FINISHED
I have tried using Arduino IDE, and it works normally - I can program the board without any errors.
My setup consists of an Arduino Nano 328, and the baud rate is set to COM5 to 57600, as indicated above in the log message.

Do you know what I should change to make avrdude work?


Thank you,
A.

chipfryer27
Valued Contributor
Posts: 1678
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 373 times
Been thanked: 581 times

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by chipfryer27 »

Hi

You could try setting the baud rate to 115200. That's what my Nano's run at.

Regards

medelec35
Matrix Staff
Posts: 2076
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 638 times
Been thanked: 697 times

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by medelec35 »

Hello.
In addition to chipfryer27 post ,try that suggestion first.
That is not a Flowcode issue since its creating the hex file OK.
So long as the correct target device is used and within Build > Project Options the correct target an port is selected.
Make sure there is nothing else e.g terminal App that will be using the same port.

If still not working then search on the internet for the latest xLoader app and use that to send your hex file to your ATMEGA.
Martin

andeug
Posts: 23
Joined: Thu Jan 07, 2021 1:42 pm
Location: Stockholm (SE)
Has thanked: 7 times
Been thanked: 2 times
Contact:

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by andeug »

chipfryer27 wrote:
Thu Aug 28, 2025 11:10 am

You could try setting the baud rate to 115200. That's what my Nano's run at.
I tried this and nothing changed.
medelec35 wrote:
Thu Aug 28, 2025 11:17 am
If still not working then search on the internet for the latest xLoader app and use that to send your hex file to your ATMEGA.
I tried the app and it freezes. The last built was 6 years ago, and now I am running on Windows 11 with the latest updates & patches.
I have also uninstalled and reinstalled everything, and the result is the same.

Do I have any other options left to try? It seems that I am able to program my Arduino Nano via Arduino IDE, but not via Avrdude used by FC10.

chipfryer27
Valued Contributor
Posts: 1678
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 373 times
Been thanked: 581 times

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by chipfryer27 »

Hi

Is your Nano genuine or a clone? Also what chip does it use for USB? Note that these can also be clones. The 340 on paper seems better but the clones aren't very good at all.

I see other people in other forums have had similar issues to yourself so it isn't only limited to FC.

Unfortunately I have no access to hardware just now so cannot test anything.

Regards

medelec35
Matrix Staff
Posts: 2076
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 638 times
Been thanked: 697 times

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by medelec35 »

I have an Atmeg2560 R3
It successfully programmed today using both Flowcode v10 and xloader using Win11.
Xloader will freeze if there is an issue with comms port or no/corrupt boot loader or wrong target device selected.
You could try unplugging and plugging back in the atmega.
If that fails reboot pc and try again.
If all fails looking like a hardware issue.

If you do get this resolved ,can you let us know what the issue was, please.
That will help other forum members with the same issue.
Martin

andeug
Posts: 23
Joined: Thu Jan 07, 2021 1:42 pm
Location: Stockholm (SE)
Has thanked: 7 times
Been thanked: 2 times
Contact:

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by andeug »

chipfryer27 wrote:
Thu Aug 28, 2025 3:46 pm
Is your Nano genuine or a clone? Also what chip does it use for USB? Note that these can also be clones. The 340 on paper seems better but the clones aren't very good at all.

I see other people in other forums have had similar issues to yourself so it isn't only limited to FC.

Unfortunately I have no access to hardware just now so cannot test anything.
I use an original/genuine Arduino Nano, code A000005, purchased from Mouser.
It's an Arduino Nano V3 ATmega328 Development Board, which uses the FTDI chip (at least this is what I see in Device Manager), to which I have the latest driver:
Screenshot 2025-08-28 211529.png
Screenshot 2025-08-28 211529.png (234.28 KiB) Viewed 34 times
If you want to troubleshoot together, I can make an MS Teams or TeamViewer session with you. The same, if a Matrix TSL employee wants to dig deeper into this issue - I am available to look together at my setup.
medelec35 wrote:
Thu Aug 28, 2025 3:53 pm
I have an Atmeg2560 R3
It successfully programmed today using both Flowcode v10 and xloader using Win11.
Xloader will freeze if there is an issue with comms port or no/corrupt boot loader or wrong target device selected.
You could try unplugging and plugging back in the atmega.
If that fails reboot pc and try again.
If all fails looking like a hardware issue.

If you do get this resolved ,can you let us know what the issue was, please.
That will help other forum members with the same issue.
I also have an Arduino Uno R3 PDIP, and with this one, I have not encountered any problems. While both the Arduino Nano and Arduino Uno were plugged into the USB ports, the Arduino Uno R3 PDIP worked as expected, whereas the Nano didn't allow me to program it.

One difference is that the:

- Arduino Uno was set to a baud rate of 9600bps in Device Manager, and comes with the drivers from Arduino from 2015
- Arduino Nano was set to 115200bps, and this comes with the drivers from FTDI from 2024-10-28

Some forums were suggesting to burn the bootloader of the Arduino Nano with a programmer (I have Atmel ICE), or I could use the Arduino Uno with some patch wires. Strange that with the Arduino IDE I am able to program the Arduino Nano, but with AVRdude, which FC has, I cannot.

I don't know what else to try... :roll:

mnfisher
Valued Contributor
Posts: 1626
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 757 times

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by mnfisher »

If it's programming AOK from the Arduino IDE - it's worth setting that to show 'verbose' output during upload (File->Preferences) then have a look at the command line used for avrdude by the IDE - compare this with the output from Flowcode during compilation / upload.

The old bootloader for the Nano (and still found in many clones) ran at 57600baud. It is certainly possible that yours has the new version (115200baud) - if not you'll need a hardware programmer (or another Arduino acting as one) if you want to reflash the bootloader (this from within the ArduinoIDE). Try changing target to 'Nano 115200'

Check that the USB port is set correctly too (especially if you have a Uno and a Nano attached at the same time - I've found that Windows sometimes reports two boards with the same COM port - which really shouldn't happen) Restarting Windows - or just unplugging / replugging the MCU USB can sometimes help

Try programming the Arduino from a command prompt (Windows - cmd)

cd to the program directory

Code: Select all

"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avrdude.exe" -pm328p -PCOM5 -b57600 -carduino -D -Uflash:w:"00 - 16x WS2812 RGB Timer.hex"  


or

Code: Select all

"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avrdude.exe" -pm328p -PCOM5 -b57600 -carduino -D -Uflash:w:"00 - 16x WS2812 RGB Timer.hex":i      

(Note the :i at the end...)

or

Try changing the baud to 115200 (-b115200)

If one of these works - we can work out why it's not working from within FC.

Martin

chipfryer27
Valued Contributor
Posts: 1678
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 373 times
Been thanked: 581 times

Re: avrdude.exe: stk500_recv(): programmer is not responding

Post by chipfryer27 »

hi

Further to the above, could you also post your code? That way we can look to see if anything is astray.

Regards

Post Reply