Skip to content

Conversation

@dleach02
Copy link
Member

There are situations after certain types of resets of the
board, that the underlying TRNG IP reports an error when
making a request for TRNG_GetRandomData(). The function
will clear the error bit but doesn't try to retrieve the
entropy data so this change will retry once on the error.

The observation is that the error only occurs once and
since this function is likely only called a couple of
times to provide a seed to RNG functions there is little
impact.

Fixes #37619

Signed-off-by: David Leach [email protected]

@dleach02 dleach02 added platform: NXP NXP DNM This PR should not be merged (Do Not Merge) labels Aug 11, 2021
@dleach02 dleach02 added this to the v2.7.0 milestone Aug 11, 2021
There are situations after certain types of resets of the
board, that the underlying TRNG IP reports an error when
making a request for TRNG_GetRandomData(). The function
will clear the error bit but doesn't try to retrieve the
entropy data so this change will retry once on the error.

The observation is that the error only occurs once and
since this function is likely only called a couple of
times to provide a seed to RNG functions there is little
impact.

fixes: #37619

Signed-off-by: David Leach <[email protected]>
Copy link
Contributor

@hakehuang hakehuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test OK at my board

@dleach02
Copy link
Member Author

Turns out the fix is also in the SDK 2.10 driver which is an active PR

@dleach02 dleach02 closed this Aug 13, 2021
@MaureenHelm MaureenHelm deleted the fix_37619 branch August 13, 2021 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DNM This PR should not be merged (Do Not Merge) platform: NXP NXP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RT6xx TRNG reports error on first request after reset

2 participants