Question
Hi I'm using STM32F030R8 and trying to communicate with atecc508a using I2C. The datasheet of atecc508a says that it needs a wake up command by transmitting 0x00 at its I2C address 0xC0.
I use the HAL library function to transmit the wake up command to its I2C address.
#define I2C_ADDRESS 0xC0
HAL_I2C_Master_Transmit(&hi2c1, I2C_ADDRESS, 0x00, 4, 1000)
but my code always return HAL_ERROR and the chip never acknowledges. I'm fairly new to STM32 so Please correct me if I'm doing it wrong. Appreciate your answers!
