cancel
Showing results for 
Search instead for 
Did you mean: 

I2C ISSUE in BLUENRG232. No data is written to TFR Tx FIFO resistor TDATA.

pankajauengg
Associate II

Now the issue concluded to the source of issue. 

The value of Dtata is 0x38 but its not getting transfered to TFR. Though for other resistors its working fine. The value of TFR always stays 0x00000000.  Since the data is not loaded to Tx FIFO, the communcation not starts.

void I2C_FillTxFIFO(I2C_Type* I2Cx, uint8_t Data)

{

 /* Check the parameters */

 assert_param(IS_I2C_ALL_PERIPH(I2Cx));

 /* Write in the DR register the data to be sent */

 I2Cx->TFR = (uint32_t)Data;

}

0 REPLIES 0