Spark Logic

Hacking the GD32 based ‘Autool X50 OBD2 Monitor and diagnostic Display’

carl0s

Hi!

I’m Carl

My first project with STM32 will hopefully be to get some code onto this GD32F103 board, and drive the LCD. I first need to figure out what the driver is. It appears to be using 17 pins.. Hopefully the ILI9341.

I will then use this as a screen / controller for my vehicle datalogger that I have already built on an Adafruit Feather M0.

Here’s the thing I want to hack..

Note that the mini-USB on the back here is actually for a vehicle OBD connection, and will be expecting +12v as well as K-Line, L-Line, CAN-Hi/CAN-Lo, etc.. It’s *not* a Mini-USB connection!

(in most web browsers, you can right-click on the images below and choose Open Image in New tab, to view at full resolution).

Image

Image

Image

Image

Image

Replies4

carl0s Fri Jun 22, 2018 8:09 am

[ahull – Thu Jun 21, 2018 8:25 pm] –
I used an ST-LinkV2 clone to program mine. This thread has a few clues -> viewtopic.php?f=28&t=604
… and here -> http://wiki.stm32duino.com/index.php?ti … 103C8_mini

If you have an ST-Link or clone, you then need to identify Gnd, SWDIO (PA13) and SWCLK (PA14) connect those to your ST-Link and progam as per most of the STM32F103 board. There is a GD32 version of the bootloader, but I don’t know how up to date it is.

If the firmware is locked on your device, you may not be able to back it up, and may have to do a complete erase when you first flash any new code to it.
@carl0s may be able to fill in a few more details, as I last played with my red pill GD32 board a couple of years back.

Yes that’s right. I had issues with the tvcc pin I think it was – target vcc or vdd, used to check/measure target voltage. Had to put that to a different +3.3 maybe. I talk about it near the start of this thread I think. Also I had to have the target device powered externally as the st link wasn’t able to supply enough power for the whole device.

Vivio Fri Jun 22, 2018 11:52 am

Thank you ahull & carl0s for sharing!

My version is GD32F130 and I see here there’s about GD32F103 :cry:

But your ideas might apply in my case. I’ll see what I get.

For future questions can I post here or it would be thread trashing?

Have a cool weekend!

ahull Fri Jun 22, 2018 2:17 pm

I would start a new thread for this new device. It will keep things tidy.

Vivio Sun Jun 24, 2018 8:26 pm

@ahull

I have found to test a chip more closely to the one used by carl0s: GD32F103C8 and I’ve had some luck with it but, I’m still in the woods… I’ll use my old thread to ask questions before I get to the other uC.

@ carl0s I haven’t been able to find the pin you’ve mention here on the thread. I’ve tried to use more powerful source for 3.3V, but nothing has changed yet.

Please have a look here: viewtopic.php?f=3&t=3753&p=46635#p46635

Post a reply