Hello everyone,
Sorry if this may seem like a dumb question, but I'm still quite new at this.
I'm trying to make the chip ATECC608B work with my Arduino Uno, but as I quickly found out, it's not an easy task.
I found a library here which states to be compatible with the Uno, but it seems I can't get it to work.
If I try to add it via zip file it fails,
Specified folder/zip file does not contain a valid library
while if I try to include the library in my sketch folder like this, whenever I try to call a function, it tells me it's undefined reference (I kinda understood it misses definitions, but I don't know how to solve this).
Sketch:
#include <Arduino.h>
#include "ATECCX08A_Arduino/cryptoauthlib.h"
ATCAIfaceCfg cfg;
ATCA_STATUS status;
void setup()
{
Serial.begin(9600);
}
void loop()
{
status = atcab_init(&cfg);
if (status != ATCA_SUCCESS)
{
Serial.println(F("atcab_init() failed : Code -> 0x"));
Serial.println(status, HEX);
}
delay(300);
}
Error:
C:\Users\marco\AppData\Local\Temp\ccGGwuB6.ltrans0.ltrans.o: In function `loop':
C:\Users\marco\Desktop\Sandbox\Test2/Test2.ino:15: undefined reference to `atcab_init'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Uno.
I already tried the troubleshooting i could find inside the forum (the headers are already wrapped for c++, tried to move files around and stuff like that). I would be really glad if someone could help me out.
Regardless, thank you for your time.