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

New Split Board Based on GD32E230C8T6 #15

Merged
merged 4 commits into from
Sep 7, 2023
Merged

Conversation

WizzardDr
Copy link

@WizzardDr WizzardDr commented Sep 7, 2023

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

Renamed "Target1" to "GD32F130C8", Added new Target named "GD32E230C8T6", Set device to "GD32E230C8", Deselected F1x0 modules and Selected E23x modules. In "Manage Run-Time Environment".
Added Schematics_2.7 Folder including Photos, Created defines_2-7.h and assigned Drive and Hall pins (Drive pins have Hi Lo swapped compare to 2-0.h)
Defined correct pins for the master board for all functions except LEDs and Buzzer. A second UART isn't available.
@RoboDurden
Copy link
Owner

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
Copy link
Author

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 RoboDurden merged commit 5624322 into RoboDurden:main Sep 7, 2023
@RoboDurden
Copy link
Owner

Have accepted your pull request :-)
Please continue here: #16

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

Successfully merging this pull request may close these issues.

2 participants