This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS中调试的问题

Other Parts Discussed in Thread: LAUNCHXL-F28069M

对F28069进行调试时,直接点击Resume运行程序没有任何效果,需要先Restart一下,再运行才有效果;

之前对这个程序进行调试时没这个问题,可以直接进行调试;

而且如果将这程直接烧到Flash里,也没有反应,按了复位键也没反应,同样的之前也没有出现过这个问题

下面是主函数:

void main()
{
    // Setup the system clock
    // Disable the watch-dog timer, initialize the system clock,
    // PLL and configure the peripheral clock.
    InitSysCtrl();

    // Disable CPU interrupts
    DINT;

    // Initialize the PIE control registers to their default state.
    // The default state is all PIE interrupts disabled and flags
    // are cleared.
    // This function is found in the F2806x_PieCtrl.c file.
    InitPieCtrl();

    // Disable CPU interrupts and clear all CPU interrupt flags:
    IER = 0x0000;
    IFR = 0x0000;

    // Initialize the PIE vector table with pointers to the shell Interrupt
    // Service Routines (ISR).
    // This will populate the entire table, even if the interrupt
    // is not used in this example.  This is useful for debug purposes.
    // The shell ISR routines are found in F2806x_DefaultIsr.c.
    // This function is found in F2806x_PieVect.c.
    InitPieVectTable();

    // Interrupts that are used in this example are re-mapped to
    // ISR functions found within my_PWM.c file.
    EALLOW;
    PieVectTable.EPWM1_INT = &epwm1_timer_isr;
    EDIS;

    // Initialize My ePWM Peripherals
    InitMyEPwm();

    // Enable CPU INT3 which is connected to EPWM1
    IER |= M_INT3;

    // Enable EPWM INTn in the PIE:GROUP3 interrupt 1
    PieCtrlRegs.PIEIER3.bit.INTx1 = 1;

    // Enable global Interrupts and higher priority real-time debug events:
    EINT;  // Enable Global interrupt INTM
    ERTM;  // Enable Global real-time interrupt DBGM

    // Copy time critical code and Flash setup code to RAM
    // The  RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
    // symbols are created by the linker. Refer to the F2808.cmd file.
    memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32)&RamfuncsLoadSize);

    // Call Flash Initialization to setup flash waitstates
    // This function must reside in RAM
    InitFlash();

    // IDLE Loop.
    while(1)
    {
        ;
    }

}