Page 2 of 3

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 4:43 pm
by d820513
2

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 4:44 pm
by d820513
2

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 4:52 pm
by BenR
You might need to click the write config now button if you're not using an Arduino Mega which comes with the bootloader and config pre-written. Hopefully that will solve things for you.

The Write config on download really only applies to PIC devices.

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 5:44 pm
by d820513
I am using arduino mega 2560 board.
microchip studio everything works correctly

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 6:00 pm
by medelec35
Hello.
As you are using the Arduino Mega 2560 board, just select Build>Project options.
Right-click on any target and select search.
Enter mega 2560 for the search term.
Alternatively, you can just select the Mega250 from the Arduino range of devices:
Arduino Range.png
Arduino Range.png (14.55 KiB) Viewed 4594 times
There will be no need to change the configuration settings as everything is preset.
Flowcode will program the Arduino board directly via USB lead.
No external programmer is required.
You stated at the start of your post:
d820513 wrote:
Sun Feb 26, 2023 4:20 pm
today switched to atmega 2560
People will assume that you are using a discrete microcontroller rather than an Arduino Mega 2560 board, which is why you are facing issues.

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 6:18 pm
by d820513
well, why blink works through microchip studio, but FC9 does not work ???

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 6:28 pm
by d820513
martin i did everything you said, but the board still doesn't work. now again checked through microchip studio everything is working correctly

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 6:48 pm
by medelec35
Have you overridden the bootloader by using microchip studio?
If you have you will need to reinstall the bootloader.
Arduinos are designed to be programmed via USB and not via microchip studio.

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 6:55 pm
by d820513
this one through the isp port I upload the firmware hex file

Re: atmega 2560 flowcode9 does not work

Posted: Mon Feb 27, 2023 7:11 pm
by medelec35
If I was you I would restore the bootloader and then only program via the USB connector and not via ISP.
This might help?