After reading several posts for the settings and configuration of the problem that I found myself in programming arduino Mega2560 was always this:
Avvio del programmatore...
C:\Program Files (x86)\Flowcode 6\compilers\avr\bin\avrdude.exe -c stk500v2 -p m2560 -P COM6 -b 115200 -U flash:w:"led pulse.hex":a
...............
avrdude.exe: stk500_2_ReceiveMessage(): timeout
..............
avrdude.exe: stk500_2_ReceiveMessage(): timeout
..............
avrdude.exe: stk500_2_ReceiveMessage(): timeout
..............
avrdude.exe: stk500_2_ReceiveMessage(): timeout
C:\Program Files (x86)\Flowcode 6\compilers\avr\bin\avrdude.exe ha riportato il codice di errore 255
TERMINATO
Given that the problem is reported by several users I waited several days hoping that MATRIXmultimedia should release the solution then I decided to bang your head until you try scaraicare this test to download what I found in various distributions AVRDUDE 2 files replaced with those present in the folder where you installed Flowcode finally solved the problem.
The tests are conducted by me only at module ARDUINO MEGA 2560
Please administrators to block the link to my google drive where I hosted the files that I extracted from a package AVRDUDE
Those who need it can safely benefit from it
avrdude.exe: Device signature = 0x1e9801
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: stk500v2_command(): command failed
avrdude.exe: reading input file "led pulse.hex"
avrdude.exe: input file led pulse.hex auto detected as Intel Hex
avrdude.exe: writing flash (940 bytes):
avrdude.exe: 940 bytes of flash written
avrdude.exe: verifying flash memory against led pulse.hex:
avrdude.exe: load data flash data from input file led pulse.hex:
avrdude.exe: input file led pulse.hex auto detected as Intel Hex
avrdude.exe: input file led pulse.hex contains 940 bytes
avrdude.exe: reading on-chip flash data:
Have any changes been incorporated for the FC for AVR's yet?
Before I start modifying files with one that are 2 years old I thought I would ask first.
I have tried to edit the Compiler Options - Programmer tab but it will not let me edit the values. I did a compiler option save and made a new setting called Arduino and I still can not edit the values.
The Mega 2560 R3 will program fine with Flowcode as is using the latest v6 release.
The Mega 2560 will not program with the latest v6 release. We have used the latest AVRdude software and also tried multiple variations with no real success. Something seems to have changed. Therefore our current workaround to program this device is to use a 3rd party tool named Xloader. This takes the hex file generated by Flowcode and allows you to reprogram the Mega 2560. It's a bit more of a manual process but it works reliably.
If you want to have a try with the above workaround on your system then please let us know how you get on.
Thanks for the fast reply.
I compiled to hex and used the Arduino loader from Atmel Studio and it programmed!
I guess I will start buying R3's from now on!
OK 1 more question.
I exported the Compiler configuration and edit the file with note pad. Imported the file back to the Compiler option. But it doesn't save the file.
After import I saved the Configuration to another name. And when I return to the Compiler settings they are back the way they were.
The Arduino devices have their compiler option settings hard coded in the definition file. This overrides the settings in the compiler options window which is why you are seeing your changes overwritten.
Go into the "Flowcode 6/FCD/AVR" folder and copy the Arduino .fcdx definition file you wish to edit to your desktop.
Open the file with a text editor e.g. notepad or textpad and the compiler options are coded right at the top of the file.
Make your changes, save the file and copy back to the "Flowcode 6/FCD/AVR" folder. Reload your Flowcode project and the changes should be in effect.
You may want to create a backup of the file first so you can easily go back if you need to.