-
Notifications
You must be signed in to change notification settings - Fork 3k
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 TRNG: update init to match all configs #14722
Conversation
@jeromecoutant, thank you for your changes. |
targets/TARGET_STM/trng_api.c
Outdated
if (HAL_RNG_GenerateRandomNumber(&obj->handle, &dummy) != HAL_OK) { | ||
printf("trng_init: HAL_RNG_GenerateRandomNumber error 0x%x\n", obj->handle.ErrorCode); // should not occur | ||
while (HAL_RNG_GenerateRandomNumber(&obj->handle, &dummy) != HAL_OK) { | ||
// printf("trng_init: HAL_RNG_GenerateRandomNumber error 0x%x\n", obj->handle.ErrorCode); |
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.
Either remove or propagate the error
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.
The comment should be updated as the while changes it a bit - we are waiting until we get a number
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.
@0xc0170 done
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
After more tests and discussions with experts, patch done in #14687 is removed,
and replaced by a better init procedure that matches all cases and chips.
@JeanMarcR
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers