Code Monkey home page Code Monkey logo

mbed-os-example-trng's Introduction

mbed-os-example-trng

TRNG test example for Mbed OS

Getting started with TRNG test example

This is a test example of an application that uses the TRNG APIs.

The application invokes the TRNG APIs and prints the results after each such invocation, The test is composed out of three parts: the first, generate a trng buffer and try to compress it, at the end of first part we will reset the device. In second part we will generate a trng buffer with a different buffer size and try to compress it. In the third part we will again generate a trng buffer to see that the same trng output is not generated as the stored trng buffer from part one (before reseting), the new trng data will be concatenated to the trng data from the first part and then try to compress it together, if there are similar patterns the compression will succeed.

Required hardware

  • An FRDM-K64F development board.
  • An SD card.
  • A micro-USB cable.

Other hardware

Although the board shown in this examples are K64F, the example should work on any device that support the trng feature.

Getting started

  1. Import the example.

    mbed import mbed-os-example-trng
    cd mbed-os-example-trng
    
  2. Deploy mbed-os

    mbed deploy
    
  3. Compile and run test.

    For example, for K64F with GCC:

    mbed test -t GCC_ARM -m K64F -n tests-trng-basic
    
  4. The test should run and display a series of results following the StoragLite API invocations.

Troubleshooting

If you have problems, you can review the documentation for suggestions on what could be wrong and how to fix it.

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.