Hardware requirements
USB-C cable
FRDM-MCXE31B board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
This example depends on HSE firmware being installed on your device. For firmware installation steps, please refer to the
ele_hseb_demo
README.Connect a USB cable between the host PC and the MCU-LINK USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the psa crypto example demo in the terminal window:
* PSA crypto example *
cipher encrypt/decrypt AES CBC no padding:
success!
cipher encrypt/decrypt AES CBC PKCS7 multipart:
success!
cipher encrypt/decrypt AES CTR multipart:
success!
cipher encrypt/decrypt AES CBC no padding one go:
success!
cipher encrypt/decrypt AES CBC PKCS7 padding one go:
success!
Hash a message SHA-256:
success!
* Example End *