Hello friends,
I am new to ATSHA204a and just want to do simlple operation like reading out the key/information, which I have written to ATSHA.
I want to use data slot 0 to data slot 14 for storing read/write data, and slot 15 for storing SecureKey information.
For the above purpose, I have written 0x0000 to all slotsconfigs (from slotconfig0 to slotconfig14) and 0xA0C0 to slotconfig15 for storing Key.
I have locked Config Zone, but Data Zone & OTP is unlocked.
Data is getting written with return Status as ATCA_SUCCESS.
But when I try to read written data in any slot, I get ATCA_EXECUTION_ERROR.
I call my atca read function as following:
atcab_read_zone(ATCA_ZONE_DATA, key_slot, 0, 0, ReadData, 32);
where, key_slot is any key id from which I want to read.
Please help me regarding this matter.