Author Topic: GD32F425RGT6 MCU are there any HAL library  (Read 2041 times)

0 Members and 1 Guest are viewing this topic.

Offline FlyingDutchTopic starter

  • Regular Contributor
  • *
  • Posts: 145
  • Country: pl
GD32F425RGT6 MCU are there any HAL library
« on: May 31, 2022, 10:58:14 am »
Hello forum,

I am seeking possibility to use MCU GD32F425RGT6 instead of couterpart from STM32 family. I have code written for STM32 using HAL library. I download firmware library from www.gigadevice.com WWW page. As far as I can see there is not provided HAL library, but only "Standard Peripheral" library. Is anybody aware if it is possible to use HAL library from counterpart STM32 MCU? Can GD32xx MCUs be programmed in "STM32CubeIDE"? All co9mmens are warmly welcome  :)

Thanks in advance and Regards
 

Offline mon2

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: ca
Re: GD32F425RGT6 MCU are there any HAL library
« Reply #1 on: May 31, 2022, 11:11:25 am »
See attached - not sure if this helps.
 

Offline FlyingDutchTopic starter

  • Regular Contributor
  • *
  • Posts: 145
  • Country: pl
Re: GD32F425RGT6 MCU are there any HAL library
« Reply #2 on: May 31, 2022, 11:24:49 am »
Hello @mon2,

 thanks for your answer, but this link is for GD32F103 device which is different from GD32F425RGT6 (it is ARM Cortex-M4) and it also seems that these library called HAL is stil "Standard Peripheral" library (it is not counterpart for STM32 HAl library.

Thanks and Regards
 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4174
  • Country: nl
Re: GD32F425RGT6 MCU are there any HAL library
« Reply #3 on: May 31, 2022, 11:59:16 am »
My guess is that when the two devices have the same peripheral setup you would be able to use the STM32 HAL to write your code and run it on the GD32. But when there is a slight difference in register or bit usage you can experience strange errors and can be hell to find what is wrong.

So the first step to take is to compare the two devices. Just learned about cmsis-svd. There are XML files that hold the peripheral layout of the devices. Attached is the one from the GigaDevice one. It can be found in the Addon package here: https://www.gd32mcu.com/en/download/0?kw=GD32F4

Look for the svd file for the STM32 device you have in mind on the net and compare if the peripherals are the same and have the same register setup.

Offline FlyingDutchTopic starter

  • Regular Contributor
  • *
  • Posts: 145
  • Country: pl
Re: GD32F425RGT6 MCU are there any HAL library
« Reply #4 on: May 31, 2022, 12:24:56 pm »
Hello @pcprogrammer,

thanks for your comment - it seems to be good idea.

Thanks nad Regards
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6159
  • Country: es
Re: GD32F425RGT6 MCU are there any HAL library
« Reply #5 on: May 31, 2022, 02:12:46 pm »
I recall Gigadevices having a device library, almost identical to the previous ST library, before the HAL.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: FlyingDutch

Offline mon2

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: ca
Re: GD32F425RGT6 MCU are there any HAL library
« Reply #6 on: May 31, 2022, 03:27:47 pm »
Sharing a good FAE contact to receive proper support from the factory. Please do update this thread.
 
The following users thanked this post: andyturk, FlyingDutch


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf