-
Notifications
You must be signed in to change notification settings - Fork 25
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
Gen2.2.3 - New board SMART-L-V2.1, two controller boards equipped with STM32F103C8T6) #84
Comments
Watch my autodetect YouTube videos and run the gd32f103/stm32f103 autodetect binary.. with a 2A constant current power supply or the charger without any battery connected. |
thank you! i will try that |
My firmwares can be compiled for the GD32F103 and i think that this mcu is compatible to the STM32F103. But noone ever tested my F103 binaries :-( |
check with a multimeter which of the 4 pins is GND and which is 3.3V. Then there are only two options for SWCLK and SWDIO |
no your firmware does not work on f103 i have tested it, and it do not need a test to know |
And you feel no need to explain :-( |
back in #77 you already asked me to not use your firmware, theres no reason gen2 cannot work on gen1, additional motor will just be ignored, and itll work without issue if the correct set of hall sensor is detected |
good luck, i have already gave up, supporting gd32f130 on my firmware is easier then supporting mm32f103 beause it is core m3
#77 all pins is traced manually without error, but i still does not work, gen1 code is a nightmare to work with, anyone should not attempt to support none standard hardware, it is a complete waste of time and effort, and terrible customer support in the issue, working with you is much better |
If it is a 64kB mcu, my SimpleFOC should run. I tested it with a Gen1 board. |
it is 128 or 256k mcu |
25 errors :-/
gpio_pin_remap_config timer0 leads me there but i can not speak Chinese.. |
do not use CSDN website, it is complete trash, a android system developer copied code from there and caused a huge bug that involve infinite loop core m3 do not have pinmodeAF, thats why i gave up |
It might be better to start with https://github.com/Candas1/Split_Hoverboard_SimpleFOC |
|
searching for |
There is a gd32F103 Gen2 repo that seems to have done the port: https://github.com/JohMah/Hoverboard-JC2015.7.31.V2.0-Hack/blob/main/HoverBoardGD32F10x/Src/setup.c
Good night from Germany. |
Now this other repo comiles with gd32f10x_misc.c : main.c: And a gd32f1x0_3.03 software pack had to be deselected in This Hoverboard-JC2015.7.31.V2.0 is Gen2.2.1 by the way, so i should be able to test it myself.
|
i have read it anyways, but it do not explain complementary pwm, so it is not useful anyways
the repo owner didnt invest time in the readme, i doubt it have nice code structure that allow you to change all the pins, so it would be just like gen1 very hard to modify, i would be happy if it wasnt the case but well im not holding my breath |
i have checked, it is not as bad as i thought, the adc channel is editable in defines.h unlike gen1 |
According to the three issues, that firmware did actually work for some users. And take a look at the eagle/ folder! My approach in Gen2.x is to provide wrapper defines/functions in target.h. This is sufficient to remove all errors from it.c
But i guess it would be better to add a
And But this guy has already made the full port, so i could test his code with my Gen2.2.1 and then integrate it in my Gen2.x But i do not really see any future for my old block commutation motor control. It is a bit strange that you @I-hate-2FA Linux believer openly dislikes the EFeru firmware. You can find my rant here: EFeru/hoverboard-firmware-hack-FOC#134 So i dream that you have begun to love the beauty of OOP. |
i never doubted if itll work on the repo owners board, but i doubted it is modifiable for other layout(i have checked, it is actually better then i thought, not as good as mine but it is acceptable)
thats exactly what ill do , seperate initialize.c and hardware.c
indeed, sine wave is really good, but square wave is better then nothing
i used to like gen1, but after actually working with it once i now understand it is terrible, and thats not the worst part, the maintainer is not helpful, it make me not want to use it
maybe i will, i have already learned allot from this project, before this i actually write the pin number in the code without using define |
Hi guys! can i do anything to help here? i was trying to connect the board with my ST-link as mentioned earlier, i found the 3.3v and GND using the multimeter, but the other 2 pins does not seem to work as expected. i do not get the program to recognize the chip. do you have any tip on how i may solve this? would is help to run the autodetect firmware once i get connected properly? @RoboDurden |
Sorry i have no happiness to help people who go silent for three weeks :-( As you can read here, there is another github repo that succeeded with stm32f103 Gen2 board. |
for other 2 pin you can just try both combination |
Thank you for the suggestion, i do not have enough knowledge to follow everything you mentioned earlier, i only used the gen1 board which hade all this information available from different sources. when i look at the datasheet for this chip i find that PA13 is for SWDIO and PA14 for SWCLK, but i get confused of the different pinvariations mentioned that i assume is for variant models of the chip. however it seems that they should be placed in the top right corner, one on top right and one on 3rd pin down from right side. not sure what i should expect when i meassure the pins to be honest, was expecting to find a connection similar to how i was able to define GND and 3,3V, but unfortunately i am not able to. reading the datasheet i found this information, maybe this is helpful? |
oh wait. i hade it connected wrong. and assumed the position of the board was stated as the text showed on it, which it is not. i will try finding that test firmware and try it out. thank you anyway. |
Hi again. For me, this was really a challenge. i have no experience in compiling firmware or understanding the code, but i have given it some time now. however i have to admit defeat as i do not get anywhere. i really wanted to be able to contribute at this point in time. As i know it is not on you to teach these basics i can only say, sorry to have waisted your time guys. |
sorry, working on the f103 is just a waste of time, because there is no easily adaptable firmware for this mcu, this repo is for gd32f130, i also have a repo for all mm32 series, which a brand new pair of board only cost $2, i dont understand why you would use other ones |
Oh that sounds great! i bought a couple of Hoverboards and have about 4 pairs of the same f103, it seems that is the only thing selling in Sweden. Tell me, where can i find the MM32 bords for $2? that would make it so much easier. |
www,aliexpress,com/item/1005005959910034.html |
Wow Thank you! This is really helpful! i was hoping to find something like this. Appreciate the help! |
Nice. Feels like a loss tho, does it not? Not being able to use perfectly good electronics lying on the table. Wish i was capable of solving this. I am not. |
f103 is core m3 insted of m0(gd32f130 is also m3, but the structure is copied from stm32f030, which is m0), so it is impossible to adapt firmware for it, only way is to rewrite everything |
you can always replace the mcu, but i think it is just not worth the effort, unless you need a board right now |
Nah. I ordered something else to get the motors working. Maybe someone with the skills will get hold of a lot of these boards in the future and make it happend. :-) |
i have found 3 sets of these boards, but unfortunately no firmware as far as i understand it. found this issue a while ago, but still no sollution. EFeru/hoverboard-firmware-hack-FOC#218
The text was updated successfully, but these errors were encountered: