Skip to content

Can't get RNG to work on a ST Nucleo board with support for entropy driver #55915

Closed Answered by yashi
EsperLiu asked this question in Q&A
Discussion options

You must be logged in to vote

CONFIG_TEST_RANDOM_GENERATOR is not a real one. See https://docs.zephyrproject.org/latest/services/crypto/random/index.html#kconfig-options

To use a RNG on a Nucleo, you can do some like

west build -b nucleo_f429zi zephyr/samples/hello_world -- -DCONFIG_ENTROPY_GENERATOR=y

And you get

*** Booting Zephyr OS build zephyr-v3.3.0-1222-gc49a6a0b0cd9 ***                  
Hello World! nucleo_f429zi                                                        
*** Booting Zephyr OS build zephyr-v3.3.0-1222-gc49a6a0b0cd9 ***                  
My random number is: 1715436118                                                   
*** Booting Zephyr OS build zephyr-v3.3.0-1222-gc49a6a0b0cd9 ***
My random num…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EsperLiu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants