[HarmonyV3] [Pic32mx530F128H]: Facing issues to do I2C interface with ATECC608 Crypto chip
I am facing issues while interfacing ATECC608 Crypto with Pic32mx over the I2C using HarmonyV3.
Ground work: I have interfaced EEPROM [at24c32] with Pic32mx using Harmony V3 successfully [wrote and read data are same]. For this I used the reference example code provided in the path "../Harmony/csp/apps/i2c/master/i2c_eeprom/firmware/src/main.c from i2c_eeprom_pic32mx470_curiosity project. I thank & appreciate the team for providing such a supporting project for reference.
Issue statement: I have used the same above developed code to achieve my goal of interfacing ATECC608 Crypto chip with pic32mx530f128h micro by doing slight modifications[updated with Atecc608a address = 0x60] using Harmony V3 drivers.
I could observe that the write and read is happening successfully (as understood/concluded by the return value of the I2c_write and i2c_WriteRead functions). But when I try to check for the size received or read , unfortunately wrote size and read size are not matching.
Copy pasting the transferred data and received data below for better understanding,
#define APP_AT24MAC_DEVICE_ADDR 0x0060
#define APP_AT24MAC_MEMORY_ADDR 0x00
#define APP_AT24MAC_MEMORY_ADDR1 0x00
static uint8_t testTxData[APP_TRANSMIT_DATA_LENGTH] =
//testTxData = M
//testTxData = C
//testTxData = H
//testTxData = P
static uint8_t testRxData[APP_RECEIVE_DATA_LENGTH];
//testRxData = 3
//testRxData = C
I am not understanding that even after read and write is successful why i am not receiving exact array as I transferred!?
Please make me understand whats my mistake and where am I going wrong...
Expecting for the quick response.
Thanks in advance.