9 years, 10 months ago.

Does the ST-Nucleo-F401RE have a true random generator?

Does the ST-Nucleo-F401RE have a true random generator? I found various, ambiguous, information regarding this topic. If it has, how can I use it from mbed?

Thank you very much for your help!

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32F401RET6 microcontroller.

3 Answers

9 years, 10 months ago.

As of today (January 2015), the only Nucleo board with the RNG is the STM32L053R8 nucleo board.

The STM32F4 devices embedding the RNG peripheral are not available as Nucleo platform.

Accepted Answer
9 years, 10 months ago.

After reading your question I did some checking and found http://stm32f4-discovery.com/tag/dma-generator/ with a download link http://stm32f4-discovery.com/?wpdmdl=1775. Let me know if you can get it to work!

Can't tell as it already gets stuck before somewhere in there (RNG example):

int main(void) { char buffer[20];

/* Initialize system */ SystemInit();

/* Initialize delay */ TM_DELAY_Init(); ...

I have it set to STM32F401xx and 84 MHz, device being STM32F401RETx, which should be correct.

posted by L. Volpato 21 Jan 2015
9 years, 10 months ago.

The short answer - NO

If you look into the ST CMSIS drivers the RNG module is only on :

  1. if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)

Import mbed-src and go to targets\cmsis\TARGET_STM\TARGET_STM32F4\stm32f4xx_hal_rng.c There you find the functions to handle the RNG.