smscm#
Overview#
The SMSCM demo shows how to use the secure siscellaneous system control module using smscm driver. In this demo, the security counter register is set to a value, and it will be plus and minus a fixed number with security counter plus X register or security counter minus X register.
Supported Boards#
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 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 demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-EVK Board
Personal Computer
Board settings
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.
Running the demo
The log below shows the output of the demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
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.
Running the demo
The log below shows the output of the demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
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.
Running the demo
The log below shows the output of the demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
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.
Running the demo
The log below shows the output of the demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
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.
Running the demo
The log below shows the output of the demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
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.
Running the demo
The log below shows the output of the demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
No special is needed.
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 demo in the terminal window:
SMSCM example start
The value of Security Counter Register (SCTR) is: 0xff
Write the value x to Plus Register: x = 3.
The value in security counter is plused to 0x102 successfully!
Write the value x to Minus Register: x = 2.
The value in security counter is minused to 0x100 successfully!
SMSCM example finished