dsp_sema42#
Overview#
The dsp_sema42 demo application demonstrates starting DSP core with DSP image.
In this example:
Firstly, CM33 core turn on LED and lock a sema gate then boot up DSP core wake up.
DSP core must be wait until CM33 core unlocks this sema gate to lock it.
After user press any key in terminal window, the sema gate will be unlocked by CM33 core, then DSP core will lock it and turn off the LED
If the board does not have LED to show the status, then DSP core will send a flag to CM33 core when DSP core has locked the sema gate. CM33 core outputs the success log after it received the flag.
This example cannot be imported into Config Tools because the xtensa toolchain is not supported.
Supported Boards#
MIMXRT700-EVK
Hardware requirements
Micro USB cable
MIMXRT700-EVK board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J54) on the board
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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below and the LED D1(BLUE LED) will be turned on/off according to the log.
Sema42 example!
Press any key to unlock semaphore and DSP core will turn off the LED
When press any key in the terminal, the terminal tells
Now the LED should be turned off
Sema42 example succeed!
FRDM-IMXRT700
Hardware requirements
Type-C USB cable
FRDM-IMXRT700 board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the PC host and the CMSIS DAP USB port on the board
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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below and the LED D1(BLUE LED) will be turned on/off according to the log.
Sema42 example!
Press any key to unlock semaphore and DSP core will turn off the LED
When press any key in the terminal, the terminal tells
Now the LED should be turned off
Sema42 example succeed!
EVK-MIMXRT685
Hardware requirements
Micro USB cable
EVK-MIMXRT685 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the board
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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below and the LED D9(RED LED) will be turned on/off according to the log.
Sema42 example!
Press any key to unlock semaphore and DSP core will turn off the LED
When press any key in the terminal, the terminal tells
Now the LED should be turned off
Sema42 example succeed!
MIMXRT685-AUD-EVK
Hardware requirements
Micro USB cable
MIMXRT685-AUD-EVK board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the board
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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below and the LED D9(RED LED) will be turned on/off according to the log.
Sema42 example!
Press any key to unlock semaphore and DSP core will turn off the LED
When press any key in the terminal, the terminal tells
Now the LED should be turned off
Sema42 example succeed!
EVK-MIMXRT595
Hardware requirements
Micro USB cable
EVK-MIMXRT595 board
Personal Computer
Board settings
Prepare the Demo
The DSP images are built into CM33 image with default project configuration. To build the CM33 image, the DSP images dsp_sram_release.bin, dsp_tcm_release.bin should be built firstly. In addition, to build CM33 image with MCUXpresso IDE, the DSP images should be copied to the MCUXpresso IDE workspace folder, like C:\Users<user_name>\Documents\MCUXpressoIDE_11.0.1_2563\workspace\fusionf1.
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the board
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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below and the RED LED(D19) will be turned on/off according to the log.
Sema42 example!
Press any key to unlock semaphore and DSP core will turn off the LED
When press any key in the terminal, the terminal tells
Now the LED should be turned off
Sema42 example succeed!
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
Prepare the Demo
The DSP images are built into CM33 image with default project configuration. To build the CM33 image, the DSP images dsp_reset_release.bin, dsp_text_release.bin, dsp_data_release.bin should be built firstly.
Connect 5V power supply and J-Link Debug Probe to the board, switch SW10 to power on the board.
Connect a micro USB cable between the host PC and the J17 USB port on the target board.
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 example.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below.
Sema42 example!
Press any key to unlock semaphore and DSP core will lock it
Wait for DSP core lock the semaphore
Sema42 example succeed!
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
Prepare the Demo
The DSP images are built into CM33 image with default project configuration. To build the CM33 image, the DSP images dsp_reset_release.bin, dsp_text_release.bin, dsp_data_release.bin should be built firstly.
Connect 5V power supply and J-Link Debug Probe to the board, switch SW10 to power on the board.
Connect a micro USB cable between the host PC and the J17 USB port on the target board.
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 example.
Running the demo
This example run both M33 and DSP at the same time!
When the demo runs successfully, the log would be seen on the M33’s terminal like below.
Sema42 example!
Press any key to unlock semaphore and DSP core will lock it
Wait for DSP core lock the semaphore
Sema42 example succeed!