-
Notifications
You must be signed in to change notification settings - Fork 3
SecureElement::random
always returns 0
#9
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
Hi @StefanaHanc |
Hi @pennam , Thanks, now it works ! :)
Should I do anything else? Here is #ifndef SECURE_ELEMENT_CONFIG_H_
#define SECURE_ELEMENT_CONFIG_H_
#if defined(ARDUINO_AVR_UNO_WIFI_REV2) || \
defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) || \
defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKR1000) || \
defined(ARDUINO_SAMD_MKRNB1500) || \
defined(ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_OPTA) || \
defined(ARDUINO_GIGA)
#define SECURE_ELEMENT_IS_ECCX08
#endif
#if defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_PORTENTA_C33) || defined(ARDUINO_PORTENTA_H7_M7)
#define SECURE_ELEMENT_IS_SE050
#endif
#if defined(ARDUINO_UNOR4_WIFI)
#define SECURE_ELEMENT_IS_SOFTSE
#endif |
Hi @StefanaHanc, |
@StefanaHanc please take a look at this draft PR #12 using it should allow you to use SE050 on PortentaH7, you will also need this additional library not yet published on library manager https://github.com/pennam/Arduino_PortentaH7_SE05X |
Hello @pennam |
Hello @pennam I think the given library is private and I don't have access to it https://github.com/pennam/Arduino_PortentaH7_SE05X (Error 404). |
@StefanaHanc the repo is public now |
Hello @pennam |
I put this code in Arduino IDE. I have an Arduino Portenta H7.
It always generates 0 instead of random numbers.
I see the message printed in Serial Monitor:
The text was updated successfully, but these errors were encountered: