2024-05-10 08:51 AM - last edited on 2024-06-11 07:53 AM by Amel NASRI
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
2024-05-10 09:49 AM
Hello,
SMBus is configurable in that menu:
2024-05-10 09:54 AM - edited 2024-05-10 09:56 AM
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!
2024-05-10 11:16 AM
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.
2024-05-10 11:22 AM
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
2024-05-10 12:46 PM
Oh thanks. I already read that but will try to research again.
2024-05-13 07:20 AM
Update: the fix is planned to be fixed in the next version CubeMx 6.12.0
2024-06-11 07:40 AM
FYI,
Internal Ticket 181150 has been already created for follow-up.