Page 1 of 1

Arduino 2560 error compiler......... Help me!!!!!

Posted: Sat Jul 24, 2021 12:33 am
by solozerouno
I can not compile in the component Arduino 2560.... I tried to re-download the toolchain avr it doesn't change anything, I tried to do the repair it doesn't change anything if I look at the compiler options it doesn't let me compile except with E-Bloks , it doesn't accept other compile parameters like USB Tiny and AVRISPmk2; if I compile it tells me that STK 500 doesn't compile or even " error returned from ( avr dude) o
FCD\batchfiles\avrc_arduinoA.bat reported the error code 0x1.
I don't understand how to correct the error.....
Please help me.
thanks solozerouno.

Re: Arduino 2560 error compiler......... Help me!!!!!

Posted: Sat Jul 24, 2021 12:25 pm
by medelec35
Hi solozerouno
solozerouno wrote:
Sat Jul 24, 2021 12:33 am
it doesn't accept other compile parameters like USB Tiny and AVRISPmk2;
That's not how it works with the Arduino range.
As the Ardunio hardware uses an onboard USB to UART converter, programming is done via a virtual com port.
Therefore all the programming parameters are fixed depending on what Arduino board you have.
The programming data is sent via USB, converted to serial RS232 and the bootloader within the microcontroller programmes the microcontroller with the code.
It's only if you purchase the microcontroller itself from new and select that e.g ATmega2560 you can program via Tiny and AVRISPmk2

It is best to have the Arduino board connected before running your Flowcode project.
When you connect any Arduino board the PC will detect the onboard USB to serial converter.
A new COM port will show up within the device manager.
Check within the PC device manager to what the comport number is.
With my Arduino UNO plugged in, the COM port is showing as COM8:
Uno COM8.png
Uno COM8.png (3.06 KiB) Viewed 2120 times
Note: Depending on what drivers used, the Ardunio may show up as Serial device rather than Ardunio.
Within Flowcode, select Build ribbon, Project options.
Make sure you have the correct COM port selected instead of n/A:
Correct port.png
Correct port.png (7.05 KiB) Viewed 2119 times
After selecting the correct COM port, then ModifyYou should be good to go.