Hardware requirements
FRDM-K32L3A6 board
Personal Computer
Prepare the demo
Connect a USB cable between the host PC and the OpenSDA 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
Set the SoC booting up from core 0 (CM4 core), since the program would be downloaded and run in core 0.
Build the core 1’s image first and build the core 0’s image with core 1’s image linked inside.
Download the program to the target board.
Press the reset button on your board to begin running the demo.
Don’t debug dual core at the same time, because cm0plus is in VLLS0 and could not be connected.
Running the demo
In this demo, cm4 core is used as the primary core, which would boot from reset. The cm0plus core would be awaken up when cm4 core executes it. Then the cm0plus core would enter the VLLS0 mode. When the demo runs successfully, the log would be seen on the OpenSDA terminal like as below and LED will blink:
Power Mode Switch demo - dual core, core 0.
Boot up another core, core 1 ...
Core 1 is booted up now.
Shake hands done.
**************************************************************************
Power mode: RUN
--------------------------------
- A: kAPP_PowerModeRun
- B: kAPP_PowerModeWait
- C: kAPP_PowerModeStop
- D: kAPP_PowerModeVlpr
- E: kAPP_PowerModeVlpw
- F: kAPP_PowerModeVlps
- G: kAPP_PowerModeLls
- H: kAPP_PowerModeVlls2
- I: kAPP_PowerModeVlls0
- J: kAPP_PowerModeHsrun
Input A to J: