Hardware requirements

  • Mini/micro USB cable

  • FRDM-K32L3A6 board

  • Personal Computer

Board settings

This Example project does not call for any special hardware configurations. Although not required, the recommendation is to leave the development board’s jumper settings and configurations in default state when running this example.

Prepare the Demo

  1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.

  2. Open a serial terminal on PC for OpenSDA serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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 log would be seen on the OpenSDA terminal like:

Start MMDVSQ Example

Calculation square root, please enter radicand
(Input 9 for example)
Square root of 9 is 3

Calculation division to get remainder and quotient
Enter dividend and divisor
(Input 12 and 3 for example, seperated two number by a blank space)
Remainder of 12 and 3 is 0

Quotient of 12 and 3 is 4