ESP32 + ECC508A getting i2c error?

themagicm
Posts: 10
Joined: Tue Mar 28, 2023 2:27 am

ESP32 + ECC508A getting i2c error?

Postby themagicm » Mon Jul 31, 2023 1:24 pm

I'm using an ESP32-WROOM-32D connected to an ECC508A via SDA and SCL. Both have 4.7k resistors. I checked the voltage at the ECC508A and I'm getting a solid 3.22v.

What I'm doing is storing a key in slot 0 on my test board but when I try to read it I get this error:
[ 2188][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263
[ 4189][E][Wire.cpp:513] requestFrom(): i2cRead returned Error 263 ..... etc etc.
I'm using arduino framework, not idf. Here are the libs I'm using:
#include <ArduinoECCX08.h>
#include <utility/ECCX08SelfSignedCert.h>
#include <utility/ECCX08DefaultTLSConfig.h>
#include <EEPROM.h>
#include "CRC32.h"

My connect test using ECC08.begin() works so I know comms is working but this line is where I get the i2cread error:
ECCX08.ecdsaVerify(settings.input, settings.signature, settings.public_key)

Are the libraries I'm using correct for the ESP32? I've also tried adjusting Wire.settimeout(2000); and that didnt fix anything. Stumped.

Who is online

Users browsing this forum: No registered users and 123 guests