cancel
Showing results for 
Search instead for 
Did you mean: 

ARLO Error when trying I2C interface with MCP4728 DAC

NSure.2
Associate

I am trying to do a general HAL_I2C_Master_Transmit. Everything is fine until I come here:

   /* Write data to TXDR */

   hi2c->Instance->TXDR = *hi2c->pBuffPtr;

When I pass this line, the ARLO bit is set in I2C->ISR. My pBuffPtr is correct. It's literally a pointer that points to a location containing 0x6. Additionally, the system does set TXDR. Both Instance->TXDR and I2C->TXDR changed to 6 after this line. This is happening for every instance of HAL_I2C_Master_Transmit.

Do y'all know why this ARLO error might be happening or have any solutions?

Thanks!

1 REPLY 1
vicky4414
Associate

Hallo NSure.2,

Did you find your issue , If yes would you not mind sharing the code here. Iam also trying to control MCP4728 with I2c and it would be really helpful for me to go ahead with your inputs. Thank you