Tool/software:
Hi champs,
I am asking this for our customer.
The user used the example and modified it a little bit by using the API, DL_I2C_getTargetStatus().
C:\ti\mspm0_sdk_2_02_00_05\examples\nortos\LP_MSPM0G3507\driverlib\i2c_target_rw_multibyte_fifo_interrupts\ticlang
On Line 116-119, the u32temp result on CCS watch window is 0xB240 on the top right, which is different from 0xB245, the CCS watch window register view I2C1_SSR on the bottom right.
The user added the codes (Line 116-119) like below with a loop and ran again up to Line 123, the user found the result became correct 0xB244, which matches I2C_SSR1 (see below).
Why the runtime result by using DL_I2C_getTargetStatus() in the first figure above is different from the watch window register I2C_SSR1?
Why the runtime result by using DL_I2C_getTargetStatus() in the second figure above becomes correct in the watch window register I2C_SSR1?