ST25DV64K Check MB_MODE failing
Hi,
I was just wondering if someone could spot why my code could be failing when my CheckMBMode function is being called in my main loop. I am successfully opening a security session before reading and writing to the MB Mode register so I am unsure what I am doing wrong.
Code:
#define ST25DV_I2C_SYST_ADDRESS 0xAE
#define MB_MODE_ADDRESS 0x000D // MB_MODE register address (for enabling FTM)
// Function to read and check the status of MB_MODE (FTM status)
HAL_StatusTypeDef CheckMBMode(uint8_t *reg_value) {
// Read the MB_MODE register (1 byte, 8-bit register)
return HAL_I2C_Mem_Read(&hi2c1, ST25DV_I2C_SYST_ADDRESS, MB_MODE_ADDRESS, I2C_MEMADD_SIZE_16BIT, reg_value, 1, HAL_MAX_DELAY);
}
Thanks.
