-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling BLHeli on GNU/Linux #47
Comments
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. |
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 ;) |
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. |
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. |
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. |
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/ |
I am sorry, I tried compiling Atmel code, but I think I know (stupid me) where the error comes from :) |
Ok it was possible to flash BLHeli using BLHeliSuit running in wine after linking |
mashu what adapter are you using? I tried your suggestion with an Arduino Uno (ttyACM0) and I still could not get it going. |
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. |
@mashu have you installed any drivers for AfroUSB under Windows ? |
Hi,
How to compile BLHeli on GNU/Linux, because BLHeliSuit is for windows only ?
Thanks,
The text was updated successfully, but these errors were encountered: