Skip to content

Commit ead3921

Browse files
authored
Update README.md
1 parent 858cf82 commit ead3921

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,50 @@
11
# cryptoauthlib_rpi_handler
22
A handler to use atecc chip library on Raspberry Pi
3+
4+
5+
# Prerequests
6+
Connect the ATECC608 to the Raspberry Pi.
7+
8+
Enable I2C on the Raspberry Pi;
9+
10+
```
11+
sudo raspi-config
12+
```
13+
- Go to Interfacing Options
14+
- Select I2C and enable it
15+
16+
```
17+
sudo apt-get install -y i2c-tools
18+
```
19+
then reboot device
20+
```
21+
sudo reboot
22+
```
23+
24+
Install the ATECC608 Library:
25+
```
26+
sudo apt-get install -y libssl-dev
27+
git clone https://github.com/MicrochipTech/cryptoauthlib.git
28+
cd cryptoauthlib
29+
mkdir build
30+
cd build
31+
cmake -DATCA_HAL_I2C=ON -DATCA_I2C_IFACE=ON ..
32+
make
33+
sudo make install
34+
```
35+
36+
Use i2cdetect to verify the ATECC608 is detected:
37+
```
38+
sudo i2cdetect -y 1
39+
```
40+
Ensure you have the correct I2C address. The default for the ATECC608 is usually 0xC0 (7-bit address 0x60).
41+
42+
# Build Project
43+
44+
```
45+
git clone git@github.com:RiddleAndCode/cryptoauthlib_rpi_handler.git
46+
mkdir build
47+
cd build
48+
cmake ..
49+
make
50+
```

0 commit comments

Comments
 (0)