Information about and reprogramming the GD32 processor on UNIHIKER

userHead Ste7an 2023-10-21 16:12:10 277 Views2 Replies

I have a few questions related to the UART using PinPong library:

- is it possible to use one of the 4-pin i2c ports as a UART; I only seem to be able to configure a UART on the extension connector

- Is it possible to reprogram the GD32 by myself? In that way, I could implement a low level Lego compatible protocol? See

- Would it be possible to share the Firmata Unihiker source code that generates the binary file:

- Are there any schematics available for the UNIHIKER, especially to see how the external pins are mapped to the GD32 MCU?

2023-10-29 16:06:04

Thank you for the schematic. I do know how to program a GD32 (using Arduino or native STM32 C code). So, to reprogram the GD32 using an STM32 programmer,  I can use the GD_SWIO and GD_SWCLK. But it seems that the UNIHIKER can also reprogram the GD32 from the Linux side by uploading the /FirmataExpress.UNIHIKER.3.7.bin firmware. Can you describe how that works?Furthermore, it would be helpful to publish the source code of the program that is currently running on the GD32. Then, I could use that as a starting point, and need not to program the IMU, Gravity and keys by myself again.

userHeadPic Ste7an
2023-10-25 14:06:26

This is the schematic of the pins.


And The i2c port on the unihiker cannot be used as a UART port. You can use P0 and P3 on the gold finger (|-%206.1-Serial%20Port%EF%BC%88UART%EF%BC%89), or you can connect a USB to TTL module to the USB-A port on the unihiker to derive a UART port (


Additionally, the source code for gd32 is written in C. If you understand how to program for gd32, you can try writing a new program.

userHeadPic Tonny12138