Code Monkey home page Code Monkey logo

stm32_rand's Introduction

STM32 Random Number Generator

This project turns STM32F4-Discovery board, or any STM32F4 board with USB port into a hardware random number generator.

Prerequisite

  1. GNU Arm Embedded Toolchain
  2. STM32CubeMX
  3. Firmware programming tool

Compiling the Code

  1. Clone this project, open stm32_rand.ioc with STM32CubeMX. The click Generate Code under Project menu to download and copy STM32F4 drivers and USB libraries to Drivers/CMSIS, Drivers/STM32F4xx_HAL_Driver and Middlewares/ST/STM32_USB_Device_Library.
  2. Type make to build, or make DEBUG=0 OPT=-O2 to build a release version.

Programing and Running

  1. Programme the binary to board. With the onboard ST-Link, varity of tools can be employed to programme the flash memory. Such as ST-LINK utility on Windows, or stlink from texane which works on both Linux and macOS.
  2. Connect the micro USB port to PC, a new serial port will be available.
  3. Random numbers can be accessed by simply reading data from the new serial port. A python script dump_rand.py is provided as an example.

stm32_rand's People

Contributors

wangyeee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.