ce_lite_nonblockingmode_test_freertos#
Overview#
This application demonstrates the non-blocking mode operation of the ZV2118 DSPV-Lite accelerator using the LCE (Lightweight CE) component with a FreeRTOS OSA backend.
Two FreeRTOS tasks are created, both performing a 32-point complex F16 FFT
(CFFT 32 F16) via LCE_TransformCFFT_F16. 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 FreeRTOS
preemptive scheduler allows the two tasks to run concurrently while waiting for CE
completion, providing better CPU utilization than the bare-metal variant.
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
Connect a USB cable between the host PC and the FRDM board J28.
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
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 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 task1 start
LCE task2 start
CFFT 32 F16 Test Passed: Status= 0, Reply=21180002
CFFT 32 F16 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
Connect a USB cable between the host PC and the FRDM board J28.
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
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 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 task1 start
LCE task2 start
CFFT 32 F16 Test Passed: Status= 0, Reply=21180002
CFFT 32 F16 Test Passed: Status= 0, Reply=21180003