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.

why I can't step over and have to click resume twice?



Hi All:

       I have built a program which is correctly running during the first time Resume in debug mode.

      But I can not use  step over function. And when I want resume the project, I have to click the resume button twice.

     When  I click the resume button the first time , It seems nothing happened.

     The screen shot is here

Is this a program problem or a IDE setting problem?

Other project run and resume correctly, only this project have the problem.

How to fix it?

Thank you.

Best Regard

Yewkui Wang

  • Hi,

    Any breakpoints visible?

    Regards,
    Gautam
  • Hello Yewkui,
    Without more details, it is very difficult to provide any suggestions.

    Most important: What exact version of CCS are you using? Provide the full version number.

    A small reproducible test case would also help a lot. Basically a project with source files and the compiled executable (*.out).

    Thanks
    ki
  • Hi Ki

    Thank you for you reply, My CCS Version: 5.2.1.00018.

    I clean the project and rebuilt it again, the result nothing changed.

    Other projects resume correctly, only this project need to resume twice.

    I use the UART project in Self Test Kits, and change the main.c .

    After initial all, I added these code, and delete all test code.


    if(CORE0 == thisCoreNum)
    {
    CSL_semAcquireIndirect(UART_SEMAPHORE);
    KeyStone_UART_config(DEFAULT_BAUD_RATE, FALSE, UART_USE_CORE_TO_TX);
    sprintf(hello, " Hi,ALl! I am core %d,I boot successfully,Thk U!\n",thisCoreNum);
    KeyStone_UART_write(hello, sizeof(hello), TEST_UART_NUM);
    CSL_semReleaseSemaphore(UART_SEMAPHORE);
    }
    else if(CORE1 == thisCoreNum)
    {
    CSL_semAcquireIndirect(UART_SEMAPHORE);
    printf("\ncore2 get smeaphore\n");
    KeyStone_UART_config(DEFAULT_BAUD_RATE, FALSE, UART_USE_CORE_TO_TX);
    sprintf(hello, " Hi,ALl! I am core %d,I boot successfully,Thk U!\n",thisCoreNum);
    KeyStone_UART_write(hello, sizeof(hello), TEST_UART_NUM);
    CSL_semReleaseSemaphore(UART_SEMAPHORE);
    }

    May these code cause the problem?
    Is the semaphore reason?

    Thank you so much.

    Best Regards

    Yewkui Wang

  • Hi Ki

    It can step over now. when I step over It run correctly

    the console printf when the second time resume for core1

    [C66xx_1] Invalid CIO command (255) in the CIO buffer at address (0xc010ae8) was not recognized. Please check the device and program memory maps.
    [C66xx_1] Required baud rate 115200, effective baud rate 115740!
    [C66xx_1] UART test complete.
    [C66xx_1] internal excpetion happened. IERR=0x1.
    [C66xx_1] Instruction fetch exception
    [C66xx_1] External exception happened. MEXPFLAG[3]=0x4000.
    [C66xx_1] Event 110: MDMAERREVT XMC VBUSM error event
    [C66xx_1] MDMA read status error detected
    [C66xx_1] XID (Transaction ID)= 13
    [C66xx_1] Addressing error
    [C66xx_1] NRP=0x4620524c, NTSR=0x1000d, IRP=0x0, ITSR=0x0, TSCH= 0x0, TSCL= 0x4a3ce6
    [C66xx_1] B3=0x4620524f, A4=0x14, B4= 0xc00e960, B14= 0x81bf84, B15= 0x81a040

    what cause the problem?

    BR

    Yewkui Wang

  • For the first message, it is something I've seen before. Take a look at some of these older posts:
    e2e.ti.com/.../1011079
    e2e.ti.com/.../76336

    As for the rest of the issues, I'm not sure. I would suggest also asking in the C66 multi-core forum. They will be more familiar with the other messages.

    Thanks
    ki