RoboDurden / Hoverboard-Firmware-Hack-Gen2.x

with different defines_2-x.h for different board layouts :-) Compiles with Keil version 6
GNU General Public License v3.0
85 stars 28 forks source link

Gen2.3.1 (ex2.7) = GD32E230C8T6 #16

Open RoboDurden opened 1 year ago

RoboDurden commented 1 year ago

thanks to @WizzardDr who added this new layout which needs a new Keil compiler target: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/pull/15

As i am not really experienced at all with this Keil platform, help from anybody would be appreciated :-)

I see that this board has three mosfet gate driver chips instead of analog gate drivers like the original 2.0. Be aware that this firmware here was written for the 2.0 layout where the low side mosfets are turned on with a LOW signal !! With layouts having gate driver chips however, the on-signal might be HIGH for both high-side and low-side mosfets. If this is not correctly applied, all three half-bridges will short cut and burn !!

When testing a new layout it is mandatory to use a CC constant current power supply with only 1-2 A max !!!

RoboDurden commented 4 months ago

We have RC to ESP32 to Motherboard UART example code but I do not support it.

Please read the wiki and prove that you can solve problems yourself and have the happiness to contribute.

Otherwise you are only a brain degenerated consumer :-(

ITBETOITALL commented 4 months ago

I bricked all 4 boards being a noob. Just got em to j reflash jtonight. Using opencd.

RoboDurden commented 4 months ago

You still have not confirmed what boards you have. @I-hate-2FA might help with openOcd.

RoboDurden commented 4 months ago

Accidentally closed

ITBETOITALL commented 4 months ago

I have the GD32E230C8T6

RoboDurden commented 4 months ago

Layout ? Photos ?

ITBETOITALL commented 4 months ago

On the computer downstairs pushing 4am here. Lots of reading and research. Trying to do this thing. Im getting there. Ty for your time.

I-hate-2FA commented 4 months ago

do you have other board, e230 is not supported(by autodetect), you either need gd32f130 or mm32 series rc/adc is not and never will be supported officially, but there is plenty of translation layer available to convert to remote uartbus(and for 4 motor you must use a translator anyways) i sugest you to get the $2 board, it is fully reverse engineered and known to work well(sine wave)

I-hate-2FA commented 4 months ago

if you still want further support, go to my repo and join the discord server, if you submit the layout in database i may be able to help(we have allot of e230 unsupported board in database already)

RoboDurden commented 4 months ago

as he is living in the Eastern Time US time zone, there might be no shpping of the $2 board to the US ? What layout database ? I thought did not want to make a database because of your universal pinFinder approach.

RoboDurden commented 4 months ago

?? i provide gd32e230 autodetect binaries: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/tree/main/BinariesToTest But no one ever tested it ?

I-hate-2FA commented 4 months ago

yeah i also dont have e230 to test if it is not tested, we assume it does not work and only test with a board which all the pins is already manually traced

I-hate-2FA commented 4 months ago

as he is living in the Eastern Time US time zone, there might be no shpping of the $2 board to the US ?

not sure, but someone from canada ordered one and shipping included is $7 still cheap

What layout database ? I thought did not want to make a database because of your universal pinFinder approach.

yeah i dont need any board numbering i just provide a list to search board support status and hardware specs based on marking, i dont include the mpmode string because some of them is not mm32

ITBETOITALL commented 4 months ago

Hoverboard Motherboard: LC_TWO_SYS 20200825 Microcontroller: GD32E230 C8T6

I'll test the auto detect. Remember noob. What is the purpose of the auto detect

RoboDurden commented 4 months ago

You either don't use your brain or you don't have one any longer. Your board probably looks like 2.3.1

So you could start with https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/raw/main/BinariesToTest/hoverboard%202.3.1%20master%20Dummy.bin

The guy who added this board to this repo also addd RC-hoverboard control: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/issues/26

But then he disappeared and that is why the 2.3.1 binaries are still in the BinariesToTest/ folder :-(

ITBETOITALL commented 4 months ago

Thank you as stated up until 5 days ago I didn't even know what a microcontroller was. Thank you so much for your guidance.

I-hate-2FA commented 4 months ago

then maybe you should read the wiki which will show you how to identify the board, you dont provide any picture, how are we supposed to know your hardware then, you really didnt use your brain

ITBETOITALL commented 3 months ago

Apologies I am new and am just trying to learn.

I have the GD32E230C8T6

Board 1 Top

Board 2 Top

GD32E230C8T6 Controller on all boards

wired like this.

20240612_134837

20240612_134807

But this is what I get no matter what I do.

Screenshot 2024-06-12 135738

I-hate-2FA commented 3 months ago

it is just the board thats already indexed and have pre compiled binary, i think even chatgpt can tell maybe you should go read the wiki again on how to flash the board?

ITBETOITALL commented 3 months ago

I stopped at the boards. Didn't notice the bottom of the page

I-hate-2FA commented 3 months ago

It's ok, just check now, it should be linked on main page too probably

ITBETOITALL commented 3 months ago

The wiki? Should be or the board. If you follow the interactive board wiki it take you to a 404 page or it takes you to this thread
![Uploading Screenshot_20240612_180510.jpg…]()

TheHassanShahzad commented 2 months ago

Hello ive also just found that my hoverboard is the 2.3.1 with black wheels and a GD32E230 chip. Firstly i have this ftdi to serial programmer and was wondering if i can use this instead of stlink or using an esp32 to flash the device https://www.ebay.co.uk/itm/394924503900 image

If not then i will go with a wemos d1 mini esp8266 and the CMSIS‐DAP method. If keil says my hoverboard is blocked then i will go with the hard way? im using linux so i get to skip some steps

In both my go to will be keil for now

After that i guess im going to use an esp32 and the UART_BUS method to control both motors simultaneously on the 19200 baud rate with a diode.

I just want to double check that the binaries i need to be flashing are https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/blob/main/BinariesToTest/hoverboard%202.3.1%20master%20Dummy.bin this one

Some more binaries were added to the Binaries to test 3 months after this but they have a few variations. all seemingly for the GD32E230 chip.

Im guessing i will be the first to test the binaries?

RoboDurden commented 2 months ago

Buy a $2 st link v2 dongle from China.. Good night from Germany