LibrePilot
« on: October 29, 2019, 07:27:37 pm »
Hi everyone, I want to set my Cc3d using LibrePilot, but LP doesn’t recognize my cart, despite the fact that when I connect to Cleanflight it detects my cart. Any suggestions, thanks a lot

Re: LibrePilot
« Reply #1 on: October 29, 2019, 08:00:16 pm »
You need a bootloader that is recognized by LibrePilot.  I suggest that you use CleanFlight to flash the attached LibrePilot HEX bootloader.

Then use LibrePilot GCS "Manual Method" to "Upgrade and Erase".  Follow instructions carefully.  You must press button before plugging in the CC3D.
https://librepilot.atlassian.net/wiki/spaces/LPDOC/pages/5669026/Firmware+Tab#FirmwareTab-Manualmethod
« Last Edit: October 29, 2019, 08:05:58 pm by TheOtherCliff »

Re: LibrePilot
« Reply #2 on: October 29, 2019, 08:23:09 pm »
The exact problem is that when I plug Cc3d, there is no Tx Rx signals. When I tried to flash using Cleanflight this message appears (no response from bootloader)

Re: LibrePilot
« Reply #3 on: October 30, 2019, 02:41:54 am »
I would either try a different USB cable, or prove the one you have works with a different device.

(Assuming Windows) I would also remove the Windows CC3D drivers (Device Manager) and then plug CC3D in to let them automatically reinstall.
https://librepilot.atlassian.net/wiki/spaces/LPDOC/pages/12812343/Troubleshooting

Use the hex file I posted and try this page.  You will need a USB to serial adapter (FTDI) and you will need to make a cable to go from the FTDI to the CC3D.
https://web.archive.org/web/20190701124058/http://www.southquay3d.com/index.php?route=news/article&news_id=9
« Last Edit: October 30, 2019, 04:40:44 am by TheOtherCliff »

Re: LibrePilot
« Reply #4 on: October 30, 2019, 01:48:14 pm »
In my device manager there is STMmicroelectronics Virtual Com Port, is it the right one for cc3d ?

Re: LibrePilot
« Reply #5 on: October 30, 2019, 05:06:32 pm »
First of all, are you sure this is a CC3D?  :)  Overseas sellers put the name CC3D in many unrelated ads, just to get you to look at it.  A real CC3D will have the words CC3D OpenPilot.org and Copter Control on it.

Quote
STMmicroelectronics Virtual Com Port, is it the right one for cc3d ?
I don't think so.  I use Linux, not Windows, so I can't easily check for sure.  The STM CPU in the CC3D does not have USB "USB SBL/DFU" capability and the wiki help that I linked to says: "You need to uninstall the USB Composite Device, uninstalling the Virtual Com Port has no effect because this is not used by default."

The CC3D has an extra (non-STM) chip for USB so I am guessing that the CC3D USB chip driver will not have an STM brand.  (Edit: Sorry, that is some other boards that use a separate USB chip.  These other boards are not, at least currently, LibrePilot compatible.)  Revo has USB USB with SBL/DFU built into the CPU chip.

That said, it generally doesn't hurt to uninstall an extra USB/COM driver or two on Windows.  They get automatically reinstalled when you plug that device back in.
« Last Edit: October 30, 2019, 11:05:43 pm by TheOtherCliff »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: LibrePilot
« Reply #6 on: October 30, 2019, 05:39:05 pm »
Quote
The CC3D has an extra (non-STM) chip for USB
No, CC3D is connected directly to USB but simply do not support DFU like the Revo.

Quote
The exact problem is that when I plug Cc3d, there is no Tx Rx signals.
What happens if you try a rescue ?
- Disconnect board
- Hit Rescue button (Firmware tab)

If you do not see a timeout, please post a screenshot from Firmware tab.

After you connect the CC3D, is "CopterControl" displayed into the bottom-right corner ?

Re: LibrePilot
« Reply #7 on: November 06, 2019, 06:42:38 am »
We can fix that .... Its super simple and for the record only use the newest release of librepilot ... We need to get u the right driver and right process of flashing the FC and we'll have you in the air in no time...

Re: LibrePilot
« Reply #8 on: November 20, 2019, 11:46:41 am »
In my cc3d there is no copter control, so I think it's not original one unfortunately. I have an other question which is when I dowloaded the cc3d firmware it is .hex file, in which language it is written ? and can we take a look on the original one ? thank you very much

Re: LibrePilot
« Reply #9 on: November 21, 2019, 09:01:50 am »
Upload a picture of the board (both sides) so we can see if it is a CC3D.

The source code is in C and C++.  It can be downloaded and viewed, modified, compiled.
https://librepilot.atlassian.net/wiki/spaces/LPDOC/pages/4128776/Developer+Manual

Re: LibrePilot
« Reply #10 on: December 02, 2019, 08:47:57 am »
Thanks a lot, how can I build or modify a code ? and about the cc3d I couldn't load the picture I'm still trying

Re: LibrePilot
« Reply #11 on: December 03, 2019, 08:19:55 pm »
That link answers those questions, but you need to know how to write programs for a computer.  :)