FILE: led_ex2_blinky_cpu1_cpu2_cpu3_multi_c29x3.c
This example demonstrates how to configure LEDs using CPU1 and blink two LEDs using CPU2 (led_ex2_blinky_cpu1_cpu2_cpu3_multi_c29x2.c) and CPU3 (led_ex2_blinky_cpu1_cpu2_cpu3_multi_c29x3.c).
When using CCS for debugging this Multi-core example, after launching the debug session,
- Connect to CPU1 and first load the c29x3.out, c29x2.out.
- When loaded to FLASH, these might not halt at main due to an error.
- c29x1.out can be loaded next.
- After the program is loaded, run CPU1.
- Once c29x1 disables lockstep, configures and releases CPU2 & CPU3 out of reset, the program stops.
- Connect to the CPU2 target now. c29x2.out would have started execution as soon as it is released from reset.
- Connect to the CPU3 target now. c29x3.out would have started execution as soon as it is released from reset.
- In case of RAM configuration, restart CPU2, CPU3 targets and load the symbols.
- In case of FLASH, do a Power-on-Reset, connect to CPU1, CPU2, CPU3 and load the respective symbols.
Note: Since CPU2 does not have FLASH access, the CPU2 application code is loaded to CPU1's FLASH, which is copied to CPU2 RAM by the CPU1 application. The CPU3 application code is loaded to its Flash (FRI-2) in FLASH BANKMODE2.
External Connections
Watch Variables