I2C_MasterReadBuf(); does not shoot error.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PAB
Level 2
Level 2
First like given Welcome!

I2C_MasterReadBuf();  does not shoot error, when the slave addressed specified in API was not present on the bus.

the i2c status returned by the api is '0'.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I usually use a sequence of

SCB_I2CMasterSendStart()

SCB_I2CMasterSendStop() APIs to test if the addressed device is ready/existing. The returned status will show.

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I usually use a sequence of

SCB_I2CMasterSendStart()

SCB_I2CMasterSendStop() APIs to test if the addressed device is ready/existing. The returned status will show.

Bob

0 Likes