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
73 stars 24 forks source link

New Split Board Based on GD32E230C8T6 #15

Closed WizzardDr closed 10 months ago

WizzardDr commented 10 months ago

I have a hoverboard which uses a split board design but there isn't any firmware available for it. It is based on a GigaDevice GD32E230C8T6 but is otherwise very similar to the other GD32F130C8T6 boards. I have added some photos and have traced out the PCB (I will add the annotated images once they are tidy).

To allow the firmware to be compiled for the E23 board I have added a second target and requisite modules. There doesn't appear to be any hardware used on the F13 chip that isn't available on the E23 so hopefully it will just work.

To point to correctly point to the E23 modules rather than the E13 modules (i.e. #include "gd32e23x.h" vs #include "gd32f1x0.h") I intend to add an identifier statement to each file to select between the modules dependent on #ifdef MCU_GD32E23x #else

RoboDurden commented 10 months ago

Oh what a great honor for me, the first pull request :-) I see that you have not made any changes to the code, so i would be happy to accept it. Do i simply have to hit the green button and select "Create a merge commit" ? Were you able to compile your new E230 target successfully ?

WizzardDr commented 10 months ago

I have no idea, I am new to using GitHub too lol. I would assume the green button is the one to use. I haven't been successful yet. I get the error #error "Please select GD32E23x device category( GD32E230 or GD32E231 )" from gd32e23x.h(54) despite now having #define GD32E230 at the top of config.h

RoboDurden commented 10 months ago

Have accepted your pull request :-) Please continue here: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/issues/16