I'm using an ESP32-WROOM-32D connected to an ECC508A via SDA and SCL. Both have 4.7k resistors.
Libraries used:
#include <ArduinoECCX08.h>
#include <utility/ECCX08SelfSignedCert.h>
#include <utility/ECCX08DefaultTLSConfig.h>
#include <EEPROM.h>
#include "CRC32.h"
on the ESP32 EEPROM i write the input, signature and public key.
On the ECC508A, slot 0, I store the private key.
Everything writes just fine to the esp32 eeprom and I'm assuming the ECC508A. I can dump the input, sig and pub key from EEPROM on the esp32 fine. Then I get this error below when I run :
ECCX08.ecdsaVerify(settings.input, settings.signature, settings.public_key)
Error is:
[ 2188][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263
[ 4189][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263 ..... etc etc.
It supposedly does communicate with the the ECC508A:
Attempting to communicate with ECC508/ECC608... Successfully established communication with ECC508/ECC608.
I've tried to add Wire.settimeout(2000); to see if it helps but it doesnt. I'm totally stumped.