Skip to content
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

Closed
mashu opened this issue Apr 6, 2015 · 11 comments
Closed

Compiling BLHeli on GNU/Linux #47

mashu opened this issue Apr 6, 2015 · 11 comments

Comments

@mashu
Copy link

mashu commented Apr 6, 2015

Hi,

How to compile BLHeli on GNU/Linux, because BLHeliSuit is for windows only ?

Thanks,

@marnovdm
Copy link

marnovdm commented Apr 6, 2015

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.

@mashu
Copy link
Author

mashu commented Apr 6, 2015

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 ;)

@marnovdm
Copy link

marnovdm commented Apr 6, 2015

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.

@mashu
Copy link
Author

mashu commented Apr 6, 2015

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.

@bitdump
Copy link
Owner

bitdump commented Apr 6, 2015

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.

@bitdump
Copy link
Owner

bitdump commented Apr 6, 2015

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.

@mashu
Copy link
Author

mashu commented Apr 6, 2015

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.

@mashu
Copy link
Author

mashu commented Apr 21, 2015

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

@mashu mashu closed this as completed Apr 21, 2015
@WZ9V
Copy link

WZ9V commented Aug 28, 2015

mashu what adapter are you using?

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

@mashu
Copy link
Author

mashu commented Aug 29, 2015

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.

@0xCCD
Copy link

0xCCD commented Oct 15, 2015

@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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants