Other Parts Discussed in Thread: C2000WARE
Tool/software:
C2000Ware Version: C2000Ware_5_00_00_00
Example Used: C:\ti\c2000\C2000Ware_5_00_00_00\device_support\f2837xd\examples\dual\blinky_dc
In the dual-core blinky LED example, GPIO34 is initialized and configured in the CPU1 core using the following functions:
GPIO_SetupPinMux(34, GPIO_MUX_CPU2, 0);
GPIO_SetupPinOptions(34, GPIO_OUTPUT, GPIO_PUSHPULL);
I want to independently flash and run the applications for both CPU1 and CPU2 on the F28379D LaunchPad. I have two questions regarding this setup:
Question 1:
How can I flash both the CPU1 and CPU2 applications onto the LaunchPad and run them independently?
What is the recommended procedure to program both cores from Code Composer Studio (CCS)?
Question 2:
I want the CPU2 core to control GPIO34 (which was initialized by CPU1).
-
How can CPU2 receive the direction configuration (i.e., set as output) for GPIO34 from CPU1?
-
Is using IPC the correct approach to send this information from CPU1 to CPU2?
-
Once CPU2 receives the direction configuration, how can it set the direction of GPIO34 accordingly and toggle the LED?
Please guide me on how to properly configure this setup using IPC, and what steps are required in the CPU2 core to take control of GPIO34 after receiving the data from CPU1.