Skip to content
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

Enable (t)rng support for STM32H7 and NANO RP2040 #895

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

pennam
Copy link
Contributor

@pennam pennam commented Jun 13, 2024

This PR enables TRNG support for STM32H7 boards: Portenta H7 OPTA GIGA and NiclaVision.

https://www.st.com/resource/en/application_note/dm00073853.pdf

And pseudo random number generation for RP2040 CONNECT using multiple hardware sources of entropy:

  • ROSC
  • Uninitialized RAM
  • Hardware timestamp
  • Bus performance counter

TRNG is automatically used as seed for random() libc functions if random(max) or random(min,max) are called from the Sketch. Alternatively user can still use srandom() to manually seed the random() function.

This PR contains a patch, please check patch number before merging

@pennam pennam changed the title Enable trng support for STM32H7 boards Enable (t)rng support for STM32H7 and NANO RP2040 Jun 17, 2024
@pennam pennam marked this pull request as ready for review June 18, 2024 12:08
@pennam pennam merged commit 496ffbd into arduino:main Jun 28, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant