Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE, LAUNCHXL-F28379D
Hello,
I am testing the led_ex2_sysconfig example and have encountered some unexpected behavior. I would appreciate it if you could review the issue.
My Environment:
-
CCS: v12.8.0
-
C2000Ware: v5.05.00.00
-
Board: LAUNCHXL-F28379D
-
Project:
C2000Ware_5_05_00_00\driverlib\f2837xd\examples\dual\led\led_ex2_sysconfig_cpu*
Configuration:
-
The build configuration for both the CPU1 and CPU2 projects was set to FLASH.
-
_LAUNCHXL_F28379Dwas added to the predefined symbols. -
The program was loaded directly onto the target via CCS.
Problem Description:
To begin, I am testing the CPU1 project standalone. To do this, I commented out the IPC_sync() line in main.c as shown below.
[Modified main.c]
// This is the code from the led_ex2_sysconfig_cpu* example with the IPC_sync line commented out.
#include "driverlib.h"
#include "device.h"
#include "board.h"
void main(void)
{
Device_init();
Device_initGPIO();
Board_init();
Interrupt_initModule();
Interrupt_initVectorTable();
// The original code would halt here, which is expected as CPU2 is not running.
// IPC_sync(IPC_CPU1_L_CPU2_R, IPC_SYNC);
EINT;
ERTM;
for(;;)
{
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 0);
DEVICE_DELAY_US(500000);
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 1);
DEVICE_DELAY_US(500000);
}
}
Observed Behavior:
-
When I build and run the CPU1 project with the debugger, the program correctly enters the
forloop inmain(), and the LED begins to blink as expected. -
However, if I then press the hardware reset button on the board, the LED no longer blinks after the board resets.
-
It appears the program is halting somewhere during the boot process. Since this is triggered by a hardware reset, I am unable to use the debugger to determine where the code is getting stuck.
Additional Information:
-
For comparison, I tested the
led_ex1_blinky_cpu*(the non-SysConfig version) example under the exact same conditions. This project works perfectly, and the LED blinks correctly even after a hardware reset.
Could you please investigate this? It seems there might be a difference in the boot or initialization sequence in the SysConfig-based led_ex2 example that causes it to hang after a standalone reset.
Thank you for your support.