Library issue ATECCX08

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).


#include <Arduino.h>
#include "ATECCX08A_Arduino/cryptoauthlib.h"

ATCAIfaceCfg cfg;

void setup()

void loop()
    status = atcab_init(&cfg);
    if (status != ATCA_SUCCESS)
        Serial.println(F("atcab_init() failed : Code -> 0x"));
        Serial.println(status, HEX);




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.

clearly the library is not organised for the Arduino IDE and it's more for
you probably need to rearrange all the files and double check all the #includes to ensure they do not use relative paths

Hi, @hikari1026

there is an example in the folder

ArduinoUno-Ateccx08a / src / Examples / AES_crypto_example.ino

See if it compiles correctly.

RV mineirin

Aaaand now I feel even more dumb :smiley: (had no idea about what was, so I just ignored that).
Thanks, I'll look into it and post relevant updates if I manage to do something good.

Nope, same error sadly. I'll try J-M-L suggestion and see if something comes out of it. Thanks anyway :smiley:

if you want to explore

(I would not say better, I'd say different goal)

I installed and the project works fine. Thanks to everyone for bearing with me and my noob questions (I wonder if I should mark the thread as closed or something).

you can click on the check the box under one of the answer [] solution to mark it solved --> [x]

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.