MCUXpresso SDK Documentation

ce_lite_nonblockingmode_test_bm

ce_lite_nonblockingmode_test_bm#

Overview#

This application demonstrates the non-blocking mode operation of the ZV2118 DSPV-Lite accelerator using the LCE (Lightweight CE) component with a bare-metal OSA backend.

Two bare-metal OSA tasks are created, both performing a 512-point complex F32 FFT (CFFT 512 F32) via LCE_TransformCFFT_F32. The CE command buffer is initialized with kCE_CmdModeOneNonBlocking, so the CM33 does not busy-wait for ZV2118 to finish each command. Instead, the LCE component handles synchronization internally, and the BM OSA cooperative scheduler allows the two tasks to interleave while waiting for CE completion.

Each task validates its result by computing the normalized squared error between the computed output and the reference output, and reports pass/fail over the serial console.

Supported Boards#

FRDM-KW43
Hardware requirements
  • Type-C USB cable

  • FRDM-KW43 Board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. Open a serial terminal on PC for the 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

The following lines are printed to the serial terminal when the demo program is executed.

CE lite non-blocking mode test using the LCE component
LCE task2 start
CFFT 512 F32 Test Passed: Status=       0, Reply=21180002
LCE task1 start
CFFT 512 F32 Test Passed: Status=       0, Reply=21180003
FRDM-MCXW70
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW70 Board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. Open a serial terminal on PC for the 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

The following lines are printed to the serial terminal when the demo program is executed.

CE lite non-blocking mode test using the LCE component
LCE task2 start
CFFT 512 F32 Test Passed: Status=       0, Reply=21180002
LCE task1 start
CFFT 512 F32 Test Passed: Status=       0, Reply=21180003