1) Flash button does nothing or freezes console window in GCB IDE
2) need to unplug arduino usb cable every single time a code flash needs to be done
Resolution:
Download xloader (use your favorite search engine and search for "hobbytronics xloader')
extract the ZIP to a folder
xloader uses a modified configuration that is able to repeatedly program non-official mega 2560 boards without resetting them/unplugging USB cable each time.
Copy and paste these three files from xloader into the AVRdude directory in the GCBasic\GCB@syn\ folder, (overwriting existing files) . Save the original files to a backup folder first if desired.
averdude.conf
avrdude.exe
libusb0.dll
In the GCB IDE menu, select IDE tools ->GCB tools -> edit programmer preferences
Find "Avrdude (Stk500V2 @ 115200)" in the list. Click and hold then drag it to the very top of the "Programmers to Use" section.
Click "Avrdude (Stk500V2 @ 115200)" to highlight it then click edit.
Delete everything in the command line parameters box then paste in the following line:
On the righthand side of the editor select your comport from the dropdown list. Use device manager in Windows to identify which serial comm port your mega 2560 is connected to.a
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I selected mega2560 in programmer preferences and pasted it to the top of the list and it flashed and worked ok. This is using the clone board I must have had problems with at the time... 5 years ago!
Compiler Version: 0.98.07 2021-05-27 (Windows 64 bit) Program Memory: 342/262144 bytes (0.13%) RAM: 0/8192 bytes (0.0%) OSC: 16Mhz Chip: MEGA2560
So I guess it's been sorted in gcb later releases.
As I'd forgotten I had a 2560 board I ordered another and it says arduino and the logo so may be genuine. Still in it's anti static bag but told seller that it arrived with socket A8 to A15 bent like it got damaged in post but bent them back while still in anti static so don't know if to send back or open and try it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problem:
1) Flash button does nothing or freezes console window in GCB IDE
2) need to unplug arduino usb cable every single time a code flash needs to be done
Resolution:
Download xloader (use your favorite search engine and search for "hobbytronics xloader')
extract the ZIP to a folder
xloader uses a modified configuration that is able to repeatedly program non-official mega 2560 boards without resetting them/unplugging USB cable each time.
Copy and paste these three files from xloader into the AVRdude directory in the GCBasic\GCB@syn\ folder, (overwriting existing files) . Save the original files to a backup folder first if desired.
averdude.conf
avrdude.exe
libusb0.dll
In the GCB IDE menu, select IDE tools ->GCB tools -> edit programmer preferences
Find "Avrdude (Stk500V2 @ 115200)" in the list. Click and hold then drag it to the very top of the "Programmers to Use" section.
Click "Avrdude (Stk500V2 @ 115200)" to highlight it then click edit.
Delete everything in the command line parameters box then paste in the following line:
-c STK500v2 -b 115200 -P %port% -p m2560 -D -U flash:w:"%filename%":i
On the righthand side of the editor select your comport from the dropdown list. Use device manager in Windows to identify which serial comm port your mega 2560 is connected to.a
Wow! This is so old I forgot. I just tried this on a mega2560 board I had forgotten I had!
I selected mega2560 in programmer preferences and pasted it to the top of the list and it flashed and worked ok. This is using the clone board I must have had problems with at the time... 5 years ago!
Compiler Version: 0.98.07 2021-05-27 (Windows 64 bit) Program Memory: 342/262144 bytes (0.13%) RAM: 0/8192 bytes (0.0%) OSC: 16Mhz Chip: MEGA2560
So I guess it's been sorted in gcb later releases.
As I'd forgotten I had a 2560 board I ordered another and it says arduino and the logo so may be genuine. Still in it's anti static bag but told seller that it arrived with socket A8 to A15 bent like it got damaged in post but bent them back while still in anti static so don't know if to send back or open and try it.