psa_crypto_examples#
Overview#
PSA Crypto example to demonstrate cipher operation.
Supported Boards#
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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 *
FRDM-MCXE247
Hardware requirements
USB-C cable
FRDM-MCXE247 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Before running this demo, please study the flash partitioning required by the ELA_CSEC module. Correct partitioning of the flash is also showcased in the ela_csec driver example. This partitioning step is NOT done by the mbedtls3x examples and must be completed before running these examples in order to utilize the underlying ELA_CSEC acceleration.
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 *
FRDM-MCXN236
Hardware requirements
Mini/micro USB cable
FRDM-MCXN236 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
FRDM-MCXN947
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
FRDM-MCXN947T
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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.
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
FRDM-RW612
Hardware requirements
Mini/micro USB cable
FRDM-RW612 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
LPCXpresso55S16
Hardware requirements
Mini/micro USB cable
LPCXpresso55S16 board
Personal Computer
Board settings
The jumper setting: Default jumpers configuration does not work, you will need to add JP20 and JP21 (JP22 optional for ADC use)
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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.
MCX-N5XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
MCX-N9XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
MIMXRT685-AUD-EVK
Hardware requirements
Micro USB cable
MIMXRT685-AUD-EVK board
Personal Computer
Board settings
No special settings are required.
MIMXRT700-EVK
Hardware requirements
Micro USB cable
MIMXRT700-EVK board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 *
FRDM-IMXRT700
Hardware requirements
Type-C USB cable
FRDM-IMXRT700 board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 *
RD-RW612-BGA
Hardware requirements
Mini/micro USB cable
RD-RW612-BGA board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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 *
MIMXRT1170-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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 *
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
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.
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
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.
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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.
LPCXpresso55S36
Hardware requirements
Mini/micro USB cable
LPCXpresso55S36 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 hello world 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 *
FRDM-MCXE31B
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_demoREADME.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 *
FRDM-MCXE32B
Hardware requirements
USB-C cable
FRDM-MCXE32B 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_demoREADME.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 *
FRDM-MCXA266
Hardware requirements
Mini/micro USB cable
FRDM-MCXA266 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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
When the demo runs successfully, the terminal will display similar information like the following:
* 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 *
FRDM-MCXA366
Hardware requirements
Mini/micro USB cable
FRDM-MCXA366 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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
When the demo runs successfully, the terminal will display similar information like the following:
* 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 *
FRDM-MCXL255
Hardware requirements
Type-C USB cable
FRDM-MCXL255 board
Personal Computer
Board settings
Prepare the Demo
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
When the demo runs successfully, the terminal will display similar information like the following:
* 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 *
FRDM-KW43
Hardware requirements
Mini/micro USB cable
FRDM-KW43 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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
When the demo runs successfully, the terminal will display similar information like the following:
* 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 *
FRDM-MCXW70
Hardware requirements
Mini/micro USB cable
FRDM-MCXW70 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
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
When the demo runs successfully, the terminal will display similar information like the following:
* 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 *
EVKB-IMXRT1050
Hardware requirements
Mini/micro USB cable
EVKB-IMXRT1050 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.
EVK-MIMXRT1020
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1020 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.
EVK-MIMXRT685
Hardware requirements
Micro USB cable
EVK-MIMXRT685 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the 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.
Launch the debugger in your IDE to begin running the demo.
EVK-MIMXRT595
Hardware requirements
Micro USB cable
EVK-MIMXRT595 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the 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.
Launch the debugger in your IDE to begin running the demo.
FRDM-IMXRT1186
Hardware requirements
Type-C USB cable
FRDM-IMXRT1186 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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 *
FRDM-MCXW23
Hardware requirements
Type-C USB cable
FRDM-MCXW23 Board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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 *
EVK-MIMXRT1064
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1064 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.
LPCXpresso55S69
Hardware requirements
Mini/micro USB cable
LPCXpresso55s69 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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.
MIMXRT1040-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1040-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.
LPCXpresso55S06
Hardware requirements
Mini/micro USB cable
LPCXpresso55S06 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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.
MIMXRT1060-EVKC
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKC board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.
MIMXRT1024-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1024-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.
LPCXpresso55S28
Hardware requirements
Mini/micro USB cable
LPCXpresso55S28 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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.
MIMXRT1060-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKB board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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.