Hardware requirements

  • Mini USB cable

  • FRDM-K22F board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo

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

  2. Download the erpc_server_matrix_multiply_uart example to the target board.

  3. Start server first.

  4. Then start client on PC to begin running the demo.

For detailed instructions, see the appropriate board User’s Guide.

Running the demo

When the demo runs successfully, the log below shows the output of the Client eRPC Matrix Multiply demo in the Phyton Shell window:


Matrix #1
=========
  21   33   37   37    9
  23   45   43    0   32
  38   44    8   15   36
  18   18   38   44   16
  22   23    0   38    7

Matrix #2
=========
  11   23   27   45   11
   7   19   23   24    6
  32   26   49   43   16
  22   48   36   34   41
  27   20   32   31   11

eRPC request is sent to the server

Result matrix
=============
2703 4028 4759 4865 2637
2808 3142 4787 4956 1563
2284 3358 4122 4736 1821
2940 4176 4858 4868 2894
1428 2907 2715 3051 2015