Test application can't access to ATECC608A device via I2C the bug
Used platform
- Microchip sam5d27-wlsom1 with custom buildroot's linux distribution.
- ATECC608A with UDFN socket with XPRO connector.
Compiling
We cross-compile cryptoauth library and test app on Ubuntu 20.04 LTS machine (without errors or warnings).
After that, we send all compiled content to platform via scp.
Bug
In sam5d27-wlsom1 platform, we run the test app succesfully.
However, when we are running info attribute, test app returns the next lines:
/home/victor/cryptoauthlib/lib/atca_iface.c:98:e1:Failed to configure HAL
/home/victor/cryptoauthlib/lib/atca_iface.c:54:e1:atinit
atcab_init() failed with ret=0x000000E1
ATECC608A is correctly connected to platform via I2C in XPRO connector. Running i2cdetect -y 1 command, we can check that ATECC608A has 0x60 address in i2c bus. Result of i2cdetect command:
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Any idea?
Thank guys!
Test application can't access to ATECC608A device via I2C the bug
Used platform
Compiling
We cross-compile cryptoauth library and test app on Ubuntu 20.04 LTS machine (without errors or warnings).
After that, we send all compiled content to platform via scp.
Bug
In sam5d27-wlsom1 platform, we run the test app succesfully.
However, when we are running
infoattribute, test app returns the next lines:/home/victor/cryptoauthlib/lib/atca_iface.c:98:e1:Failed to configure HAL
/home/victor/cryptoauthlib/lib/atca_iface.c:54:e1:atinit
atcab_init() failed with ret=0x000000E1
ATECC608A is correctly connected to platform via I2C in XPRO connector. Running
i2cdetect -y 1command, we can check that ATECC608A has 0x60 address in i2c bus. Result of i2cdetect command:00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Any idea?
Thank guys!