[NOT SUPPORTED] I2C on GD32F103C8T6

Working libraries, libraries being ported and related hardware
Post Reply
logd32
Posts: 16
Joined: Thu Sep 07, 2017 8:41 pm

[NOT SUPPORTED] I2C on GD32F103C8T6

Post by logd32 » Thu Sep 07, 2017 8:55 pm

HI,
I am using STM32Duino with the GD32F103CBT6 core and i face a weird issue. The I2C scanner get stuck after hardwire init while the exact same code works perfectly on the same board with STM32F103CBT6, is there any specificity to GD32 regarding I2C and (hard)wire ?
Did anyone ever used I2C (sda,scl, no reset) OLED with GD32?
Thanks

User avatar
RogerClark
Posts: 7482
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: I2C on GD32F103C8T6

Post by RogerClark » Thu Sep 07, 2017 9:09 pm

We found that the GD32 is not actually hardware compatible with the STM32.

Hence the community decided to remove GD32 from the list of supported MCUs, a few weeks ago.

You could try using software I2C, but as hardly anyone else now uses the GD32, you probably need to post your question to a GD32 forum

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

Re: I2C on GD32F103C8T6

Post by martinayotte » Thu Sep 07, 2017 9:10 pm

Do you have PullUps on both SDA/SCL ?

logd32
Posts: 16
Joined: Thu Sep 07, 2017 8:41 pm

Re: I2C on GD32F103C8T6

Post by logd32 » Thu Sep 07, 2017 10:14 pm

OK i see GD32 support i now dropped. I will maybe change to STM32 since its pin compatible. Yes 10K pullups on SDA and SCL. The only thing i noted is when OLED is not powered (only SDA and SCL are connected) the init goes a tad further so it displays "Scanning..." otherwise it stalls at "I2C Scanner". The exact same code works normally with STM32, OLED address is found with or without pullups. note: if OLED is not powered it displays "scanning" but still stalls right after

User avatar
RogerClark
Posts: 7482
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: I2C on GD32F103C8T6

Post by RogerClark » Thu Sep 07, 2017 11:17 pm

logd32 wrote:
Thu Sep 07, 2017 10:14 pm
OK i see GD32 support i now dropped. I will maybe change to STM32 since its pin compatible.
Good idea

Things will be much easier to get working if you use the STM32 as there is much more community and official support for the STM32


Re: Pullups

10k is far too high.

2.7k seems to be the recommended value for 3.3V systems

Post Reply