Other Parts Discussed in Thread: C2000WARE, TMDSCNCD28388D
Trying to run the dual-core blinky example from
C:\ti\C2000Ware_4_00_00_00\driverlib\f2838x\examples\c28x_dual\led
on the TMDSCNCD28388D control card with program loaded to RAM through Code Composer.
They set up CPU2 to flash LED2 (which is on this control card) by doing this:
// Configure CPU2 to control the LED GPIO
GPIO_setMasterCore(DEVICE_GPIO_PIN_LED2, GPIO_CORE_CPU2);
However, they flash only LED1 by running this code in a loop, and this works to flash LED1:
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 0); // Turns on the LED.
DEVICE_DELAY_US(500000);
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 1 ); // Turns off the LED.
So I tried to flash LED2 by turning it on and off at the same time as LED1 like this:
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 0); // Turns LED1 (this works).
GPIO_writePin(DEVICE_GPIO_PIN_LED2, 0); // To try and turn on LED2. (Does not work.)
DEVICE_DELAY_US(500000);
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 1 ); // Turns off LED1 (this works).
GPIO_writePin(DEVICE_GPIO_PIN_LED2, 1); // To try and turn off LED2. (Does not work.)
LED1 flashes as expected, but LED2 just stays off.
Note that Project | Build Configurations | Set Active allows me to set only CPU1_RAM or CPU1_FLASH, no option for CPU2, so I set to CPU1_RAM.
What might I be doing wrong here or what am I missing?
Thanks.