The wolfDemo board is designed by wolfSSL as an example board to show wolfSSL projects at events such as trade shows. These are example projects for the board.
This is a demo to PWM the LED "bark bars" on the wolfDemo board to show a give a nice visual display.
This runs the wolfCrypt benchmark with STM32 HAL hardware optimisations enabled.
Each log line output will cycle the LED "bark bars" one step. Log data will be output on the USB's UART at 115200bps.
This runs the wolfTPM benchmark. It requires the wolfDemo ST33K TPM addon board to be inserted in mikroBus socket 1. It talks to this board via SPI.
As with the wolfCrypt-bench, each log line will cycle the LED "bark bars" one step. The log data will also be output on the USB's UART at 115200bps.
This is using a patch to fix a bug in the SPI driver for the STM32 HAL. If you
regenerate from the .ioc file, this patch will be erased it it will no longer
be able to talk to the TPM. Make sure you backup stm32h7xx_hal_spi.c first.
The wolfTPM configuration will also be erased by such an action, and that should be backed-up too.
This script takes the live wolfCrypt benchmark output via UART and displays it
in a easy to consume table form. This requires Python rich to be installed
using the following, or by using your package manager:
pip3 install rich
Usage (in Linux):
python bench_tui.py /dev/ttyUSB0 115200
Usage (in Windows):
- Install Python 3 from the Windows Store
- Find the COM port for the CH340 on the wolfDemo board (usually
COM3) by using:
pnputil /enum-devices /class Ports
- Install dependencies (PowerShell or Command Prompt):
pip install rich pyserial
- Run:
python bench_tui.py COM3 115200
Usage (in macOS):
ls /dev/tty.usbserial*
Note the result, and then do the following (assuming the result is tty.usbserial-1440):
python3 bench_tui.py /dev/tty.usbserial-1440
A demo mode can be executed using:
python bench_tui.py --demo
This is very similar to bench_tui.py, but is designed to work with the
wolfTPM benchmark output.
Usage (in Linux):
python bench_tpm_tui.py /dev/ttyUSB0 115200
Usage (in Windows):
python bench_tpm_tui.py COM3 115200
A demo mode can be executed using:
python bench_tpm_tui.py --demo