Program Mega2560 via USB - how to?

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
jarlel
Posts: 18
Joined: Wed Dec 16, 2015 8:30 pm
Country: -

Program Mega2560 via USB - how to?

Post by jarlel »

Hi, I have used the ISCP until now to program/flash a Mega2560 Arduino. I would like to start using the USB instead, but have not made it work yet.
Which settings should I use in Companion for this? Do I need to take other actions to make it work?

Thanks.

User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Program Mega2560 via USB - how to?

Post by MikeB »

In settings, choose communications, then try to find what programmer AvrDude should use, possibly Arduino. If you have flashed the '2560 using a USBASP, it is likely you have erased any bootloader that was in the '2560, and you need one to flash using the USB connection.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Program Mega2560 via USB - how to?

Post by kalle123 »

Are you trying to use the Mega as normal Arduino or do you want to use it with openTX?

#1. case just flash the bootloader with the Arduino IDE

#2. case Download from here https://github.com/Ingwie/NextStepRc-2.18

then ... (if I recall right ;) )

1. Arduino fuses flash (usbasp ISP) "mega2560_usbasp_flash_fuses.bat"

2. Arduino bootloader flash (usbasp ISP) "mega2560_usbasp_flash_bootloader.bat" with "mega2560_stk500v2boot_opentx.hex"

3. Load Mega over USB and Companion with opentx firmware

... detailed description in "MEGA2560_FlashProcedure.pdf"
jarlel
Posts: 18
Joined: Wed Dec 16, 2015 8:30 pm
Country: -

Re: Program Mega2560 via USB - how to?

Post by jarlel »

I am using it for OpenTX. Thanks - will try #2!

:-)

Post Reply

Return to “openTx”