Hi,
Is there a procedure/document to port a library from Atmel library for 1 of there authentication chips. This has .c and .h files. It has got the mangling done.
Currently I am observing Undefined reference once i call these functions from the library.
Thanks.
It would probably be helpful if you provided the code and full error output.
I have placed the libraries as mentioned in pic1. I am accessing files in basic folder as shown in pic2.
Below is the code for Arduino.
Pic1 and Pic2 attached.
Sketch:
#include <cryptoauthlib.h>
ATCA_STATUS initAtcaComm(void);
ATCA_STATUS initAtcaComm(void)
{
cfg_ateccx08a_i2c_default.atcai2c.slave_address = 0x80;//INIT_I2C;
return atcab_init( &cfg_ateccx08a_i2c_default );
}
void setup()
{
Serial.begin(9600);
initAtcaComm();
}
void loop()
{
// put your main code here, to run repeatedly:
}
Error Message:
Arduino: 1.6.12 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
WARNING: Category '' in library CryptoAuth is not valid. Setting to 'Uncategorized'
C:\Users\andanapp\AppData\Local\Temp\ccTtYGzZ.ltrans0.ltrans.o: In function `main':
ccTtYGzZ.ltrans0.o:(.text.startup+0x154): undefined reference to `atcab_init'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Note:
#include <cryptoauthlib.h> has included the files required for calling the function.
I feel it is finding the file but not able to ref the function.
Note:
#include <cryptoauthlib.h> has included the files required for calling the function.
Prove that, by posting the code!

