The right way to Join/Flash FC to Betaflight with Damaged USB Port?


USB port falling off shouldn’t be unusual in flight controllers. In case your FC has a damaged USB port, can’t connect with Betaflight (or INAV Configurator) or flash firmware, listed here are some fixes you possibly can try to save lots of your FC.

A number of the hyperlinks on this web page are affiliate hyperlinks. I obtain a fee (at no further value to you) in case you make a purchase order after clicking on one in all these affiliate hyperlinks. This helps assist the free content material for the group on this web site. Please learn our Affiliate Hyperlink Coverage for extra info.

Earlier than you start, examine in case you can solder the USB port again on although it’s often not a simple soldering job. In my expertise, in case your USB port broke off, likelihood is the tiny solder pads are in all probability ripped and irreparable, however it’s value checking, flight controllers are costly nowadays!

Get some spare USB ports right here:

Iflight Nazgul5 Flight Controller Usb Port Connector Fall Off Broken Rip

Connecting FC to Pc by way of FTDI Adapter

For those who simply wish to join your FC to Betaflight Configurator (or INAV configurator), all you want is only a FTDI adapter (aka serial converter).

Purchase an FTDI adapter right here:

For FPV drone builders, it’s a useful gizmo to have round, I extremely suggest getting one. You can even use an Arduino board loaded with customized code (be happy to google it I gained’t go into particulars right here), however it’s much more difficult than utilizing a $3 plug-and-play FTDI adapter.

Relying on the kind of USB connection your flight controller has (i.e. CP2102 or VCP), further steps could be needed which I’ll clarify on this tutorial. Nearly all trendy FC makes use of VCP connection nowadays, just some very outdated FC use CP2102, in case you are unsure, this submit explains tips on how to establish which one you will have.

FC with VCP

For those who purchased your FC in the previous few years, it in all probability makes use of VCP connection. It’s not as easy as CP2102 as a result of {hardware} UART’s usually are not needed enabled for USB connection by default. The excellent news is, it’s fairly frequent that flight controllers are shipped with UART1 enabled for MSP (it permits USB connection), so you possibly can attempt connecting your FTDI adapter to UART1 first, and see in case you can connect with the Configurator.

Strive different UART if that didn’t work, in case you are fortunate one of many UART may need MSP enabled.

Make sure that nothing else is linked to that UART, however the FTDI adapter.

Flight Controller Damaged Usb Port Fall Off Broken Fdti Adapter Serial Converter

FC UART1 is linked solely to FTDI adapter

See this instance under, “Configuration/MSP” is enabled on UART1, this lets you use the FTDI adapter to attach it to Betaflight Configurator.

Betaflight 4.4 Configurator 10.9.0 Ports Msp Hd Osd Vtx Displayport Peripherals

If not one of the UART’s have MSP enabled, that is going to get difficult:

  • You’ll have to flash your flight controller with a “rescue” firmware that has MSP enabled on UART1 (with Erase choice enabled). However doing this, you’ll lose the present FC configuration in case you didn’t beforehand backup your settings.
  • And you may’t flash FC firmware utilizing the FTDI adapter, as a result of it must be in DFU mode. You will want a STLink Software that lets you add a firmware file (.hex) to the processor utilizing the STM32 ST-Hyperlink Utility.
  • Purchase the ST Hyperlink V2 Software right here: Amazon | AliExpress
  • Obtain STM32 ST-LINK utility: https://www.st.com/en/development-tools/stsw-link004.html

So that you see, it’s not straightforward. Anyway in case you resolve to go forward, that is tips on how to do it.

Join FC to STLink Software to flash rescue firmware:

  • 5V to 5V
  • GND to GND
  • SWCLK (clock) to SWC
  • SWDIO (knowledge) to SWD

Right here’s an excellent educational tutorial about tips on how to use the STLink software (begins from 4:40): https://youtu.be/5VmhoyL6Z7Q?t=280

One of many most important challenges with this methodology is discovering the SWC or SWD pads, they don’t seem to be all the time damaged out to solder pads on the FC. Test if you will discover them on yours earlier than continuing, if current, they’re often tiny and close to the processor for debugging functions, generally not even labelled so that you may need to do a little bit of “trial and error”.

To be sincere most individuals would have given up at this stage and simply get a brand new flight controller. I believe scraping off the solder masks and expose the USB port knowledge traces can be simpler in case you don’t have already got the instruments available. Maintain studying.

FC with CP2102 Chip

For those who purchased the FC earlier than 2020, likelihood is USB connection is by way of the CP2102 chip: UART 1 is reserved for USB connection.

On this case, it’s essential to join the FTDI Adapter to UART1 (and solely UART1), join these 4 wires:

  • TX to RX
  • RX to TX
  • 5V to 5V
  • GND to GND

Make sure that nothing else however the FTDI adapter is linked to that UART.

FTDI Adapter on the left, linked to UART1 of my FC on the best

Then join the FTDI adapter to your pc, you must see a brand new COM port seem.

Windows Device Manager Com Ports Silicon Labs

Typically, you shouldn’t want to fret about driver in case your pc is already working together with your flight controller, which suggests driver is already put in. But when driver is required, you will notice a warning signal icon on that COM port. You possibly can usually get the motive force file on the product web page of your FTDI adapter, or just google the kind of adapter you will have.

In Betaflight/INAV Configurator, choose this COM port and hit the Join button. That’s it.

The right way to Repair Broken USB Port

If FTDI adapter methodology fails, and you can not flash rescue firmware, you possibly can attempt attaching a breakout board to the FC. The concept is to seek out the D+ and D- pads within the USB port, and join them to a USB breakout board. You should utilize it identical to a standard USB port.

You should buy some USB breakout boards right here, very good to have some spare:

Flight Controller Usb D D+ Adapter Board Extension

If these D+ and D- pads on the FC usually are not ripped, you possibly can merely solder wires to these pads. Connections:

    • D+ to D+
    • D- to D-
    • VBUS to any 5V on the FC
    • GND to GND

Listed below are the pinout of a micro USB breakout board, flight controllers use the identical 5-pin connector has the identical pinout:

Micro Usb Connector Female Pinout 5v Gnd D D+ Data

Right here’s the pinout of a USB-C port, there are usually 16 pins (two rows of 8-pin), D- and D+ are often the middle two pins on each high and backside row rotated 180-degree:

Usb C Connector Female Male Pinout D D+ Data

If these pads are ripped, you possibly can attempt to observe the copper traces and discover the place they go, often find yourself at a small capacitor which is comparatively straightforward to solder to. Right here’s an instance the place D- and D+ are on a Matek FC.

Flight Controller Usb D+ D Capacitor Solder Expose Pad

For those who can’t discover that, you possibly can scrap off the solder masks and expose the copper traces for D- and D+, and solder the wires to them. I take advantage of a small file for that.

Flight Controller Damaged Usb Scraped Pcb Solder Mask Expose Trace D D+ Pads

Flight Controller Damaged Usb Scraped Pcb Solder Mask Expose Trace D D+ Pads Solder Wires

Flight Controller Damaged Usb Scraped Pcb Solder Mask Expose Trace D D+ Adapter Board Extension

If you’d like these wires to remain on the FC completely you undoubtedly wish to glue the cables and solder joints securely so that you don’t break these tremendous tiny solder joints.

Edit Historical past

  • Might 2018 – article created
  • Apr 2021 – Betaflight now provides USB Rescue firmware within the firmware flasher, you now not must obtain it manually from google drive
  • Feb 2023 – Added data about flashing FC with out USB port, diagrams of USB port pinout
  • July 2026 – Up to date hyperlinks

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *