cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 SMBus Communication via CubeMX

BY
Associate II

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

7 REPLIES 7
SofLit
ST Employee

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.
SofLit
ST Employee

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
Associate II

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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

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.
SofLit
ST Employee

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.