Eachine F4 brushed support???
« on: May 28, 2017, 01:21:44 am »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Eachine F4 brushed support???
« Reply #1 on: May 28, 2017, 01:27:46 am »
Brushed motor can be configured like here:
https://forum.librepilot.org/index.php?topic=1501.msg11312#msg11312

The main issue with this board are the missing Mag and Baro that mean this is not a Revo board.

mr_w

  • *
  • 207
    • LibrePilot
Re: Eachine F4 brushed support???
« Reply #2 on: May 28, 2017, 07:43:16 am »
This could actually work with F3 support branch (soon to be merged into next) - as there is additional fusion algorithm that allows operation without barometer. https://bitbucket.org/librepilot/librepilot/pull-requests/426/lp-512-support-f3-boards/diff

Re: Eachine F4 brushed support???
« Reply #3 on: May 28, 2017, 05:16:46 pm »
Amazing thanks!

I will try and I let you know ;)
Thanks


Re: Eachine F4 brushed support???
« Reply #4 on: May 30, 2017, 07:43:14 pm »
I built branch LP-512 but still, it cannot recognize the board...

This is my dmesg:
[ 1667.580103] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
[ 1727.270293] usb 1-2: USB disconnect, device number 8
[ 1730.120831] usb 1-2: new full-speed USB device number 9 using xhci_hcd
[ 1730.263359] usb 1-2: New USB device found, idVendor=0483, idProduct=5740
[ 1730.263364] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1730.263367] usb 1-2: Product: Revolution
[ 1730.263369] usb 1-2: Manufacturer: BetaFlight
[ 1730.263372] usb 1-2: SerialNumber: 0x8000000

and this is lsusb:
Bus 001 Device 009: ID 0483:5740 STMicroelectronics STM32F407

If I can help on this...
Greetings

Fabrizio

Re: Eachine F4 brushed support???
« Reply #5 on: May 30, 2017, 08:10:36 pm »
It looks like you have a BetaFlight bootloader on it.

I recall that the F3 has USB support, so temporarily solder a blob on the SBL jumper, plug in USB and use something like this to flash Entire Firmware (bootloader and normal firmware).

This is the command for the Revo board.  You will have to change ef_revolution to ef_? to match the new firmware name.  Also, it is possible that the "-d 0483:df11" is wrong for this board.  Maybe remove the -d command or find the correct USBID number.

dfu-util -d 0483:df11 -c 1 -i 0 -a 0 -D build/firmware/ef_revolution/ef_revolution.bin -s 0x08000000

First you will have to "make ef_whatever" with whatever replaced by the correct name for this new firmware

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Eachine F4 brushed support???
« Reply #6 on: May 30, 2017, 09:21:08 pm »
We are talking about a F4 board.

You can also try the short method using make:
Code: [Select]
make ef_revolution_dfu
After installed dfu-util package in your system.

https://librepilot.atlassian.net/wiki/display/LPDOC/Recover+board+using+DFU#RecoverboardusingDFU-Usingconsole%28GnuLinux/OSX%29


Edit:
Code: [Select]
STMicroelectronics STM32F407Oh :)
« Last Edit: May 30, 2017, 09:32:51 pm by f5soh »

mr_w

  • *
  • 207
    • LibrePilot
Re: Eachine F4 brushed support???
« Reply #7 on: May 30, 2017, 09:37:34 pm »
If this board has cleanflight or betaflight on it, it could be easier to use cleanflight configurator to burn in librepilot bootloader. You can make bootloader for any board in hex format like this:

make bl_revolution_hex

Just use produced hex file as cleanflight firmware and then do the "Rescue" procedure from GCS/Firmware page.

Re: Eachine F4 brushed support???
« Reply #8 on: May 31, 2017, 02:27:30 am »
that's strange... After I did
Code: [Select]
make ef_revolution_dfu I had this output:

one: processed 117 XML files and generated 117 objects with no ID collisions. Total size of the data fields is 5041 bytes.
generating flight code
 FWINFO      /home/fabrizio/tools/librepilot/build/firmware/fw_revolution/fw_revolution.bin.firmware_info.c
 DFU RESCUE /home/fabrizio/tools/librepilot/build/firmware/ef_revolution/ef_revolution.bin
sudo: /home/fabrizio/tools/librepilot/tools/dfu-util/bin/dfu-util: command not found
Makefile:59: recipe for target 'dfu' failed
make[1]: *** [dfu] Error 1

But I have installed dfu-util in Debian 9 (version 0.9) and it is searching for an exec in local directory...

Anyway, with mr_w method it runs!!!! :D :D

Thanks for your help
Fabrizio
« Last Edit: May 31, 2017, 03:13:00 am by fboriero »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Eachine F4 brushed support???
« Reply #9 on: May 31, 2017, 07:23:48 am »
Quote
/home/fabrizio/tools/librepilot/tools/dfu-util/bin/dfu-util: command not found
Sorry, need dfu-util to be installed locally using 'make dfuutil_install'

Anyways flashing from Cleanflight is more simple.

Re: Eachine F4 brushed support???
« Reply #10 on: May 31, 2017, 05:58:22 pm »
Ah ok, thanks :)

The problem now is that the mag is not recognized...

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Eachine F4 brushed support???
« Reply #11 on: May 31, 2017, 06:53:32 pm »
There is no Mag and Baro in this board.

Even if you use a external Mag, the Baro still missing.