Skip to main content
Associate
May 10, 2024
Question

STM32F103 SMBus Communication via CubeMX

  • May 10, 2024
  • 4 replies
  • 2937 views

Hi there,

I am a new at SMBus communication. I design a board. Board have STM32F103 MCU and BQ40Z80. I need to make a communication between STM32 MCU and BQ IC but I couldn't find parameter settings in CubeMX. 

Software is STM32CubeMX Version 6.11.1

I also attached a picture that shows there is no parameter settings for SMBus.

If anyone has sample code for SMBus communication that will be helpful.

 

Best Regards,

BY

4 replies

mƎALLEm
Technical Moderator
May 10, 2024

Hello,

SMBus is configurable in that menu:

SofLit_0-1715359738822.png

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
mƎALLEm
Technical Moderator
May 10, 2024

Umm well now I understood the request ..

Meanwhile, you can also refer to that package: X-CUBE-SMBUS and AN4502 "STM32 SMBus/PMBus™ expansion package for STM32Cube™"

Need toc check internally why there is only one setting in the parameters to set for SMBus!

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
BY_itAuthor
Associate
May 10, 2024

By the way, BQ40Z80 interface is SMBus v.1.1

Before I sent first post I already installed X-CUBE-SMBUS. 

 

Waiting for your feedback.

Tesla DeLorean
Guru
May 10, 2024

I recall there being examples for the SPL (pre HAL)

https://github.com/selat/stm32-smbus

 

Use Google, search on GitHub, heck read/review RM0008

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
BY_itAuthor
Associate
May 10, 2024

Oh thanks. I already read that but will try to research again.

mƎALLEm
Technical Moderator
May 13, 2024

Update: the fix is planned to be fixed in the next version CubeMx 6.12.0

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
mƎALLEm
Technical Moderator
June 11, 2024

FYI,

Internal Ticket 181150 has been already created for follow-up.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."