cheali-charger icon indicating copy to clipboard operation
cheali-charger copied to clipboard

What usb serial adapter can be used?

Open shkup opened this issue 6 years ago • 10 comments

The documentation assumes we are all Arduino programmers... What serial usb adapter can be used in the flashing process? All I've seen have RX, TX pins... How does it connect to the IMAX b6 board? Do you have maybe some guide?

shkup avatar Apr 15 '18 18:04 shkup

Anyone can be an Arduino programmer, it is child's play.

Any 5V ones will do. 5V power goes (for serial adapter, don't connect it if it is already powered on its own) closest to input power connector, then RX in middle and GND.

specing avatar Apr 15 '18 21:04 specing

But the picture in the flash tutorial states that the connection for flashing is done via MOSI, MISO, SCK etc. How do you connect a regular serial adapter with RX, TX into it?

shkup avatar Apr 17 '18 08:04 shkup

but you are not flashing ?! USB-serial is for saving logs to computer. You cannot flash cheali-charger with an usb-serial adapter.

specing avatar Apr 17 '18 12:04 specing

Search for usbasp to find a suitable programmer.

Edit: Assuming you want to flash an AVR based target.

Smeat avatar Apr 17 '18 16:04 Smeat

I want to flash cheali firmware into my b6 skyrc charger...I assume I need to connect it to the pc using serial adapter and then flash the hex file using appropriate software..Am I wrong?

shkup avatar Apr 18 '18 05:04 shkup

yes, you are wrong.

specing avatar Apr 19 '18 14:04 specing

Can you please kindly explain?

shkup avatar Apr 20 '18 19:04 shkup

Just connect MISO, MOSI, SCK, RESET, VCC and GND to the usbasp (or any other programmer), install avrdude and flash the hex using the following command: avrdude -patmega32 -cusbasp -Uflash:w:cheali-charger-[VERSION].hex:a

For further information see: https://github.com/stawel/cheali-charger/blob/master/docs/flashing.md

Smeat avatar Apr 20 '18 19:04 Smeat

It helps to read documentation every once in a while :)

specing avatar Apr 21 '18 00:04 specing

Just the usbasp part was missing... I found this: https://www.amazon.com/USBasp-Programming-Quadcopter-Atomic-Market/dp/B00V42E8JC

shkup avatar Apr 22 '18 05:04 shkup