cancel
Showing results for 
Search instead for 
Did you mean: 

wrong data send with slave i2c1 on STM32F103RCT6

yqiu.11
Associate

STM32F103RCT6 i2c work as slave mode,master i2c machine worked with clock speed 400KHz.When master read many bytes from slave,a wrong data will come out behind the address byte.

in normal,master transmits 0xA1,then it will receive 0x11 0x22 0x33 0x44

but actually,master transmits 0xA1, it received 0xA1 0x11 0x22 0x33

it seems like that address byte appears in DR register.

but it is normal when master clock is not bigger than 100KHz.

how to solve this problem,appreciate to your reply😁

1 REPLY 1
yqiu.11
Associate

Hello ?