Hello everyone!
I have encountered an unfortunate problem with my custom board, which has the ATSAMD21G18A microcontroller. I am trying to connect the ATECC508A chip via I²C, but it simply won't be recognized.
I have 4.7kΩ pull-up resistors on the SDA and SCL lines, so theoretically, everything should be fine. Unfortunately, I have no communication with the ATECC508A.
I have tried different bootloaders, but none of them were successful, and I have also changed the address in the libraries (0x60).
I'm using a regular I²C scanner code:
#include <Wire.h>
void setup()
{
Wire.begin();
SerialUSB.begin(9600);
while (!SerialUSB); // Wait for Serial to be ready
SerialUSB.println("\nI2C Scanner");
}
void loop()
{
byte error, address;
int nDevices;
SerialUSB.println("Scanning...");
nDevices = 0;
for (address = 1; address < 127; address++ )
{
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0)
{
SerialUSB.print("I2C device found at address 0x");
if (address < 16)
SerialUSB.print("0");
SerialUSB.print(address, HEX);
SerialUSB.println(" !");
nDevices++;
}
else if (error == 4)
{
SerialUSB.print("Unknown error at address 0x");
if (address < 16)
SerialUSB.print("0");
SerialUSB.println(address, HEX);
}
}
if (nDevices == 0)
SerialUSB.println("No I2C devices found\n");
else
SerialUSB.println("done\n");
delay(5000); // Wait 5 seconds for next scan
}
I also attach screenshots of the schematic, the board was manufactured at PCBWay.