-
Notifications
You must be signed in to change notification settings - Fork 19
sample atecc_csr.py fails #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Works for me with CircuitPython 7.1.1. Edit: On an ESP32-S2 not Pi though. |
python create_csr.py lost 2 modules. Any help appreciated. I am running this on RaspberryPi4 with 64bit Raspibian and the board is no longer visible with i2cdetect. i2cdetect -y 1 |
i2cdetect -y 1
occasionally shows up but it now errors with 👍 |
the atecc has very weird wakeup requirements, it is not really compatible with linux because we cannot dynamically change the i2c speed. you can try setting the pi i2c speed to 50khz or 10khz, see if that helps |
Thanks. When I set the dtparam=i2c_arm_baudrate=50000 or 10000 in /boot/config.txt the board is detected but simpletest python script fails.
|
Traceback (most recent call last):
File "atecc_csr.py", line 52, in
my_csr = csr.generate_csr()
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_cert_util.py", line 77, in generate_csr
csr = self._csr_end()
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_cert_util.py", line 127, in _csr_end
self._common,
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_asn1.py", line 97, in get_issuer_or_subject
get_name(country, 0x06, data)
File "/home/pi/atecc608/lib/python3.7/site-packages/adafruit_atecc/adafruit_atecc_asn1.py", line 125, in get_name
data.extend(name)
TypeError: 'str' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered: