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.
Program Mega2560 via USB - how to?
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Program Mega2560 via USB - how to?
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
Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Program Mega2560 via USB - how to?
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"
#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"
Re: Program Mega2560 via USB - how to?
I am using it for OpenTX. Thanks - will try #2!