Skip to content

Instantly share code, notes, and snippets.

@bshambaugh
Created August 5, 2020 22:41
Show Gist options
  • Save bshambaugh/07fc95c7b129a2614c6bbc2288f124b5 to your computer and use it in GitHub Desktop.
Save bshambaugh/07fc95c7b129a2614c6bbc2288f124b5 to your computer and use it in GitHub Desktop.
Running the Example1 sparkfun/SparkFun_ATECCX08a_Arduino_Library with a Heltec CubeCell. Output
Copyright @ 2019 Heltec Automation.All rights reserved.
Successful wakeUp(). I2C connections are good.
configZone:
0: 0x01 0b00000001
1: 0x23 0b00100011
2: 0x8B 0b10001011
3: 0x93 0b10010011
4: 0x00 0b00000000
5: 0x00 0b00000000
6: 0x50 0b01010000
7: 0x00 0b00000000
8: 0x3F 0b00111111
9: 0x8B 0b10001011
10: 0x73 0b01110011
11: 0xD0 0b11010000
12: 0xEE 0b11101110
13: 0xC0 0b11000000
14: 0x55 0b01010101
15: 0x00 0b00000000
16: 0xC0 0b11000000
17: 0x00 0b00000000
18: 0x55 0b01010101
19: 0x00 0b00000000
20: 0x83 0b10000011
21: 0x20 0b00100000
22: 0x83 0b10000011
23: 0x20 0b00100000
24: 0x8F 0b10001111
25: 0x20 0b00100000
26: 0xC4 0b11000100
27: 0x8F 0b10001111
28: 0x8F 0b10001111
29: 0x8F 0b10001111
30: 0x8F 0b10001111
31: 0x4B 0b01001011
32: 0x9F 0b10011111
33: 0x8F 0b10001111
34: 0xAF 0b10101111
35: 0x8F 0b10001111
36: 0x00 0b00000000
37: 0x00 0b00000000
38: 0x00 0b00000000
39: 0x00 0b00000000
40: 0x00 0b00000000
41: 0x00 0b00000000
42: 0x00 0b00000000
43: 0x00 0b00000000
44: 0x00 0b00000000
45: 0x00 0b00000000
46: 0x00 0b00000000
47: 0x00 0b00000000
48: 0x00 0b00000000
49: 0x00 0b00000000
50: 0xAF 0b10101111
51: 0x8F 0b10001111
52: 0xFF 0b11111111
53: 0xFF 0b11111111
54: 0xFF 0b11111111
55: 0xFF 0b11111111
56: 0x00 0b00000000
57: 0x00 0b00000000
58: 0x00 0b00000000
59: 0x00 0b00000000
60: 0xFF 0b11111111
61: 0xFF 0b11111111
62: 0xFF 0b11111111
63: 0xB2 0b10110010
64: 0x00 0b00000000
65: 0x00 0b00000000
66: 0x00 0b00000000
67: 0x00 0b00000000
68: 0xFF 0b11111111
69: 0xFF 0b11111111
70: 0xFF 0b11111111
71: 0xFF 0b11111111
72: 0xFF 0b11111111
73: 0xFF 0b11111111
74: 0xFF 0b11111111
75: 0xFF 0b11111111
76: 0xFF 0b11111111
77: 0xFF 0b11111111
78: 0xFF 0b11111111
79: 0xFF 0b11111111
80: 0xFF 0b11111111
81: 0xFF 0b11111111
82: 0xFF 0b11111111
83: 0xFF 0b11111111
84: 0x00 0b00000000
85: 0x00 0b00000000
86: 0x00 0b00000000
87: 0x00 0b00000000
88: 0xFE 0b11111110
89: 0xFF 0b11111111
90: 0x00 0b00000000
91: 0x00 0b00000000
92: 0x00 0b00000000
93: 0x00 0b00000000
94: 0x00 0b00000000
95: 0x2F 0b00101111
96: 0x33 0b00110011
97: 0x00 0b00000000
98: 0x33 0b00110011
99: 0x00 0b00000000
100: 0x33 0b00110011
101: 0x00 0b00000000
102: 0x1C 0b00011100
103: 0x00 0b00000000
104: 0x1C 0b00011100
105: 0x00 0b00000000
106: 0x1C 0b00011100
107: 0x00 0b00000000
108: 0x1C 0b00011100
109: 0x00 0b00000000
110: 0x1C 0b00011100
111: 0x00 0b00000000
112: 0x3C 0b00111100
113: 0x00 0b00000000
114: 0x3C 0b00111100
115: 0x00 0b00000000
116: 0x3C 0b00111100
117: 0x00 0b00000000
118: 0x3C 0b00111100
119: 0x00 0b00000000
120: 0x3C 0b00111100
121: 0x00 0b00000000
122: 0x3C 0b00111100
123: 0x00 0b00000000
124: 0x3C 0b00111100
125: 0x00 0b00000000
126: 0x1C 0b00011100
127: 0x3A 0b00111010
Serial Number: 01238B933F8B73D0EE
Rev Number: 00005000
Config Zone: Locked
Data/OTP Zone: Locked
Data Slot 0: Locked
Failure to generate This device's Public Key
Would you like to configure your Cryptographic Co-processor with SparkFun Standard settings? (y/n)
***Note, this is PERMANENT and cannot be changed later***
***If you do not want to do this, type an 'n' or unplug now.***
@bshambaugh
Copy link
Author

@bshambaugh
Copy link
Author

bshambaugh commented Aug 25, 2020

The ESP32 appears to use esp32-hal-i2c.h for the error codes, but the Cubcell appears to use all sorts of weird things for i2c. There is something custom for every sensor? Do I need something custom for the cryptochip? see; https://github.com/bshambaugh/heltecesp32andCubeCell_Wire/

@bshambaugh
Copy link
Author

@bshambaugh
Copy link
Author

/home/ubuntu/Arduino/libraries/SparkFun_ATECCX08a_Arduino_Library-Aug26 { I modified this library} ... I need to rename the .cpp and header files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment