-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32 hw entropy #2611
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
STM32 hw entropy #2611
Conversation
Hello, |
@mazimkhan Looks like there was a failure with the uvisor tests, any idea what's going on here? |
Hello @-sg, |
|
||
/* Get Random byte */ | ||
for( uint32_t i = 0; i < len; i++ ){ | ||
rng_get_byte( output + i ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I noticed while reading reference manual for some STM32F4 RNG peripheral, once RNG is started, the first byte should be discarded. this is not done for any STM as I have seen so far.
dd6aafd
to
8b647ec
Compare
Hello, It's been 2 weeks and I missed the target release 126... Kind regards |
retest uvisor |
1 similar comment
retest uvisor |
8b647ec
to
f3888f9
Compare
@adustm bump. |
Hello @sg- |
... files have change of location... I'll update as soon as I can... I'll let you know |
Hello @sg- |
Thanks for handling that first number . LGTM |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 1067 All builds and test passed! |
@0xc0170 Good to remove |
@adustm target.json conflict to resolve :) |
update code accordingly
Hello @sg-, it's done. |
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], | ||
"release_versions": ["2", "5"], | ||
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"], | ||
"release_versions": ["2", "5"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put ,
after "release_versions": ["2", "5"]
. It breaks the builds.
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
|
Same deal, all failing tests are currently in the nightly 👍 LGTM |
Hello @0xc0170 and @screamerbg
This Pull Request is the completion of the HW entropy for STM32 platforms.
Every ST platform having a TrueRandomGenerator in the microcontroler is now available.
I performed the test bellow on NUCLEO_L476RG, NUCLEO_L073RZ, NUCLEO_L432KC and DISCO_L476VG
with IAR, ARM and GCC_ARM toolchains