Skip to main content
PYF.1
Associate
March 1, 2023
Question

In slave mode, How to respond NACK when host issue block read protocol

  • March 1, 2023
  • 1 reply
  • 692 views

..

This topic has been closed for replies.

1 reply

PYF.1
PYF.1Author
Associate
March 1, 2023

Hello everyone,

I have a application on STM32L5xx, I configuration I2C1 to slave mode,

when slave receive first unwanted command code, I want to response NACK to master. I judge the command code in AL_SMBUS_SlaveRxCpltCallback call back function, and set NACK bit at CR2 register but unfortunately cannot success.