Coder Social home page Coder Social logo

Compiling BLHeli on GNU/Linux about blheli HOT 11 CLOSED

mashu avatar mashu commented on June 3, 2024
Compiling BLHeli on GNU/Linux

from blheli.

Comments (11)

mashu avatar mashu commented on June 3, 2024 1

As far as I can see BLHeliSuit can configure firmware and reconfiguring usually requires recompiling, unless they have binaries for every setting, but making that would be time consuming. I am aware that BLHeliSuit is only for windows, hence I asked about possibilities of compiling BLHeli (not suit) on GNU/Linux ;)

from blheli.

marnovdm avatar marnovdm commented on June 3, 2024

It seems like you're confusing 2 things; compiling the firmware from source and using BLHeliSuite to flash it to your ESCs. I don't know how to flash BLHeli from Linux either (I dualboot to Windows for it at the moment, though I'd really like a native BLHeliSuite for Linux as well). I don't think you need to manually compile the firmware unless you modify things in the source obviously.

There is some mention of flashing from Linux in the comments on this post by FliteTest, maybe it's of use to you: http://flitetest.com/articles/how-to-flashing-blheli-firmware-using-arduino.

from blheli.

marnovdm avatar marnovdm commented on June 3, 2024

Alright sorry I misunderstood your question :-) With BLHeliSuite on Windows you flash the firmware once, and then you can change settings through the tool, which is way faster than flashing. I don't think it's changing hardcoded values in source and recompiling & then uploading that firmware, I think it has a settings register of some sort which it just updates.

from blheli.

mashu avatar mashu commented on June 3, 2024

Ah thanks, you might be right ! :) I think I will stick to what I have now, but it should be possible to quickly sketch gtk ui in glade, make callbacks and simple app in python. Too bad firmware cannot be compiled without involving commercial software, I usually lose interest in such cases.

from blheli.

bitdump avatar bitdump commented on June 3, 2024

Well, it is only 8051 asm you are talking about right? Linux has pretty good support for AVR chips. I assume it is not a problem for AVR ESC. I have look into this problem. I think there is possibility to compile the 8051 asm in Linux. All we need is a pre-processor convert the Ride IDE asm into SDCC 8051 asm. I think it can be done in python or some thing like that.

from blheli.

bitdump avatar bitdump commented on June 3, 2024

Regarding flashing BLHeli in Linux. It can be done with some hacking. Linux kernel already have some support for the C2 protocol. See http://lwn.net/Articles/304330/
It just need some hacking if you have a Linux can access to the GPIO pins, e.g. RPi.

from blheli.

mashu avatar mashu commented on June 3, 2024

I am sorry, I tried compiling Atmel code, but I think I know (stupid me) where the error comes from :)
I am using "avra" but I didnt declare device type. Should be possible then to flash it via servo with RapidFlash plugin for GoogleChrome I guess? My ESC have bootloader.

from blheli.

mashu avatar mashu commented on June 3, 2024

Ok it was possible to flash BLHeli using BLHeliSuit running in wine after linking
ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
wine BLHeliSuite.exe

from blheli.

WZ9V avatar WZ9V commented on June 3, 2024

mashu what adapter are you using?

I tried your suggestion with an Arduino Uno (ttyACM0) and I still could not get it going.

from blheli.

mashu avatar mashu commented on June 3, 2024

I used AfroUSB Programmer. Afro ESC mcu are Amtel AVR chips you should be able to program them with arduino as well but I didnt try that route myself. Maybe try openpilot wiki.

from blheli.

0xCCD avatar 0xCCD commented on June 3, 2024

@mashu have you installed any drivers for AfroUSB under Windows ?
i'll try the same but with an DYS USB-Linker i already tried the symlink, but unfortunately it don't get a connection !

from blheli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.