X-Cube-SMBUS for STM32H7 not working
Hi, This is the first time im working with SMBUS peripheral and want to implement this for a project.
I have gone through AN4502 document for SMBUS but im having hard time understanding stack of SMBUS module.
why do we need stack for communication for just one SMBUS peripheral from STM32H7 board. whats the difference between SMBUS_StackHandleTypeDef & SMBUS_HandleTypeDef and whats use of this.
i have read the 6.1 Host side point from the same document and initialised things as mentioned in it.
MX_GPIO_Init();
MX_SMBus_PMBus_Stack_Init();
MX_I2C1_SMBUS_Init();
STACK_SMBUS_Init(&hsmbus1);
STACK_SMBUS_GetBuffer()
MX_SMBus_PMBus_Stack_Init();
STACK_SMBUS_HostCommand(&hsmbus1, 0x17, 10, 0x17);
but HAL_SMBUS_IsDeviceReady fnction returning HAL_ERROR in response.
can someone guide me in a right direction for this
