For RNG generation in STM32F407VET6 board follow below steps:
Configuration:
1. In Pinout and configuration, in security > RNG Mode & Configuration, Mode should be activated.
2. With change in point 1, tool will prompt to change clock configuration. Use automatic clock configuration fix given by tool to adjust the clock values.
Manual Code:
In main.c file, we need to call function to get random number as shown below:
No comments:
Post a Comment