cancel
Showing results for 
Search instead for 
Did you mean: 

Question about PMBUS Slave Data Handling on STM32G0B1

jackhung9527
Associate

Hi everyone,

I am working on an experiment using the STM32G0B1 NUCLEO board to implement the PMBUS slave functionality with the SMBUS middleware.

According to AN4502, the buffer in SMBUS_StackHandleTypeDef *pStackContext is described as being used for IO. I have a question regarding handling master requests. When the master sends a command to read the input voltage, such as PMBC_READ_VIN (0x88), at what point should the application layer populate the buffer with the data so that the master receives the correct value?

If anyone has experience with this or could provide example code, I would greatly appreciate your help.

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
jackhung9527
Associate

I solved this issue, for example:

 

jackhung9527_0-1733470658650.png

 

 

jackhung9527_1-1733470691526.png

 

 

 

View solution in original post

1 REPLY 1
jackhung9527
Associate

I solved this issue, for example:

 

jackhung9527_0-1733470658650.png

 

 

jackhung9527_1-1733470691526.png