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.

TMS320F28P650DK: LAUNCHXL-F28P65X

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: LAUNCHXL-F28P65X

Tool/software:

A few threads have discussed the issue of debug not working in CSS when working with LAUNCHXL-F28P65X

Getting this error.  Program will load and execute but will not enter debug in CSS

28xx_CPU2: Flash Programmer: Error erasing Bank 0 FMSTAT (STATCMD on some devices) value = 65. Operation Cancelled (0).
C28xx_CPU2: File Loader: Memory write failed: Unknown error
C28xx_CPU2: GEL: File: C:\Users\xxxxxxxxxx\workspace_v12\launchxl_ex1_f28p65x_demo\CPU1_LAUNCHXL_FLASH\launchxl_ex1_f28p65x_demo.out: Load failed.

Any help appreciated.

  • If you want to load the code for two CPUs at once during debugging, you need to insert a code after CPU1 completes memory allocation to CPU2. And make some changes to the debug configuration:

    void CPU2_Debug_Load_Symbol();
    
    void main(void)
    {
        Device_init();                                      // Initialize device clock and peripherals
    
        Device_initGPIO();                                  // Disable pin locks and enable internal pull-ups.
    
        Interrupt_initModule();                             // Initialize PIE and clear PIE registers. Disables CPU interrupts.
    
        Interrupt_initVectorTable();                        // Initialize the PIE vector table with pointers to the shell Interrupt
    
        Board_init();                                       // PinMux and Peripheral Initialization
    
        CPU2_Debug_Load_Symbol();
    
        Device_bootCPU2(BOOT_MODE_CPU2);                    // Boot CPU2 core
    
        IPC_sync(IPC_CPU1_L_CPU2_R, IPC_Start);
    
        EINT;
        ERTM;
    
        while(1)
        {
    
        }
    }
    
    void CPU2_Debug_Load_Symbol()
    {
        NOP;
    }

  • Thanks!  This worked