ARLO Error when trying I2C interface with MCP4728 DAC
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!
