-
Notifications
You must be signed in to change notification settings - Fork 114
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
Please add a makefile for my online compiler :-) #10
Comments
no answer :'( |
No, i am not experienced enough to copy and paste a Makefile :-/ |
What about Florian's firmware (this branch)? Were you able to flash it in a Gen2 board? |
I have no Gen2 board where there is a control board for either side. |
You are spoliing my issue here to kindly ask for a makefile. |
Hi I have 4 gen2 motherboard that I can't flash so I try Florian's firmware |
https://github.com/flo199213/Hoverboard-Firmware-Hack-Gen2/tree/master/HoverBoardGigaDevice |
Incoperating #16 may fix the issue. Compiling with PIO should be possible, but i dont know what amount of recoding this would take. its not accepted and merge, however the firmware works. Im stuck with flashing, but im currently trying to flash my hoverboard to see if the build works. |
For a Linux believer a make file should be no issue at all. But I am rather a Linux hater. |
Well to install PIO, you get quite good docs here: https://docs.platformio.org/en/latest/core/installation/methods/index.html To compile the project, all you need to do is run The first build takes quite some time as it downloads alot, however then builds run within a few seconds. |
Any update on this? |
no time (time = happiness) to add the PIO support. sorry. |
Ok, I broke my STLink anyways for now xD |
Here is a repository for Makefile, if you are still interested: |
Yes great, i still would like to add a gen2 firmware to my online compiler. is a bit different then my gen 2.x firmware But I guess I can port your makefile. If your makefile generates a working gen2.0 binary i would add your report to my online compiler. It might take a year before I proceed with the makefile for my repo... |
no but i have made quite a lot of reverse engeniering: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/tree/main/Schematics_2.0 |
So i have added your repo to my online compiler. But i forked it because i needed to switch to a gcc inline compiler directive. Still get a warning
but the code compiles: https://pionierland.de/hoverhack/?p=gen2 I also needed to increase a char buffer from 5 to 7 in comsBluetooth.c to remove sprintf warnings:
This should also apply to your compiler ? Thanks again. |
Thanks for adding my repo!
I have made the two changes you suggested and compiled here successfully and pushed the changes into my repo.
If you like, you could try to compile again to see if you can get rid of the warming (replace “_INLINE” by “inline”).
Have a good day!
… On Apr 26, 2023, at 12:03 PM, Robo Durden ***@***.***> wrote:
So i have added your repo to my online compiler. But i forked it because i needed to switch to a gcc inline compiler directive. Still get a warning
Src/bldc.c:90:38: warning: always_inline function might not be inlinable [-Wattributes]
90 | __attribute__((always_inline)) void blockPWM(int pwm, int pwmPos, int *y, int *b, int *g) //org __INLINE not known in gcc
but the code compiles: https://pionierland.de/hoverhack/?p=gen2 <https://pionierland.de/hoverhack/?p=gen2>
Maybe someon can test it.
I also needed to increase a char buffer from 5 to 7 in comsBluetooth.c to remove sprintf warnings:
void SendBluetoothDevice(uint8_t identifier, int16_t value)
{
int index = 0;
char charVal[7];
This should also apply to your compiler ?
Thanks again.
—
Reply to this email directly, view it on GitHub <#10 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF5J5N7DUC2M2CTZHNTIT7DXDFWRXANCNFSM4KBKBVFQ>.
You are receiving this because you commented.
|
Yes i would like to add your original and not my fork so you might be motivated to get involved. /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: build/bldc.o: in function I can remove the inline altogether and i compiles without warning. Is that function really that time critical that there is no time to make a function call ? |
I See that the blockPWM function is used only once anyway : https://github.com/weiminshen99/GD32-hover-master-slave/blob/main/Src/bldc.c#L214 So simply copy the code there ? I think it should be possible to make the function code a #define , that might be another was to get rid of that inline word ? |
I have taken out the “__INLINE”, and please compile again. Thanks!
… On Apr 27, 2023, at 12:11 AM, Robo Durden ***@***.***> wrote:
I See that the blockPWM function is used only once anyway : https://github.com/weiminshen99/GD32-hover-master-slave/blob/main/Src/bldc.c#L214 <https://github.com/weiminshen99/GD32-hover-master-slave/blob/main/Src/bldc.c#L214>
So simply copy the code there ?
I think it should be possible to make the function code a #define , that might be another was to get rid of that inline word ?
—
Reply to this email directly, view it on GitHub <#10 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF5J5NZSISCE3GUJ6NQI2I3XDIL3FANCNFSM4KBKBVFQ>.
You are receiving this because you commented.
|
Fine, i switched the repo back to yours :-) https://pionierland.de/hoverhack/?p=gen2 Would be nice if you could add a simple arduino example that spins the two motors a bit forward and backwards. For my Gen 2.x firmware i rewrote all the serial communication, so people can not rely on my arduino example when using your firmware. Ideas welcome :-) |
Please open an issue at the repos: https://github.com/weiminshen99/GD32-hover-master-slave |
Hello from Germany :-)
I would like to add your repo to my online compiler www.pionierland.de/hoverhack
videos: https://www.youtube.com/playlist?list=PLa9VLvJBLbTMmpslED2FMClIBv5URBMIa
But you only offer the Keil project files. If you are already compiling with GCC, a port should be possible: https://community.arm.com/developer/tools-software/oss-platforms/f/gnu-toolchain-forum/45142/how-to-move-from-keil-to-linux
Ideas welcome !
www.robo4future.de :-)
The text was updated successfully, but these errors were encountered: