cancel
Showing results for 
Search instead for 
Did you mean: 

How to create SMBus slave?

rokko
Associate II
Posted on November 24, 2017 at 20:52

I was using I2C connection between two STM32F030, but decided to try SMBus, because of I2C issues with analog filter, when lines stay high/low. I'm trying to send 1 byte and have issues with slave: master sends address and receives ACK bit, but after that slave holds SCK low until timeout, why does it happen? Also I'm using only HAL functions without SMBus Stack library for Cube, because I need simple exchange of 4-5 bytes data without SMBus v2 and PMBus functions.

P.S. Any recommendations for using SMBus Rx/Tx modes (SMBUS_FIRST_FRAME, SMBUS_NEXT_FRAME, SMBUS_FIRST_AND_LAST_FRAME_NO_PEC, SMBUS_LAST_FRAME_NO_PEC, SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC , SMBUS_LAST_FRAME_WITH_PEC )?

#stm32 #smbus #i2c
0 REPLIES 0