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/CC2640R2F: Unable to find crash line number or code.

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hi,

In my project random crash occurs, after the crash device is restarted using watchdog timer.

Is there any way to get the line number or crash code in the project since the code runs perfectly fine for a duration but crashes suddenly (duration after which crash occurs is random as well)?

Thank you.

  • Hi Akash,
    How much custom code have you added? You should probably review it at all potential watchdog triggers (for/while loops etc.).

    The Technical Reference Manual, specifically the watchdog chapter, may help you further: www.ti.com/.../swcu117
  • Hi Joakim,

    Thanks for your reply.
    After debugging I found my project crashes at while loop [ while(pMsg != NULL)] line.

    sbpEvt_t *pMsg = (sbpEvt_t *) Util_dequeueMsg(appMsgQueue);


    while (pMsg != NULL)
    {
    if (pMsg)
    {
    // Process message.
    SimpleBLEPeripheral_processAppMsg(pMsg);


    if (pMsg->pData != NULL)
    {
    // Free the Queue payload if there is one
    ICall_free(pMsg->pData);
    }


    // Free the space from the message.
    ICall_free(pMsg);
    }


    i was watching these variable value in expression while debugging and i got following msg before crash/hang

    pMsg unknown identifier not found: pMsg
    events unknown identifier not found: events

    *(appMsgQueue) unknown cannot load from non-primitive location



    I would really appreciate any help.

    Thanks,
    Akash
  • Akash,
    Is this code you have modified? Why do you use "while"? It does seem that you are running on an older SDK. Would you be able to migrate to the latest?
  • Hi, good afternoon,
    Yes i modified the project, the base project was offchip oad project and in this project i added other functionality. The project is working fine, but sometimes i get crashes, may 2-3 times a day. And this is very random. I have gone through almost all the threads but i did not find any solution. I removed watch dog timer also, and it is crashing without watchdog also. Currently i am using SDK simplelink_cc2640r2_sdk_1_50_00_58. I updated with the latest sdk also, but in latest sdk the offchip oad block size is 481, in previous one it was 480. so i modified accordingly and it is working fine. I updated the compiler version and xdctool version also, but nothing worked for me, crash issue not resolved. I increased the stack and heap size also, but that did not work for me. My question is why i am getting this error. In some post it is also mentioned it is compiler error. But i am not doing any typecasting, so why i am getting this error. please suggest me any solution .
    Thank you
  • Hi Akash,
    I see. It's hard to pin point the problem based on you information. I suggest you start removing functionality until the project runs properly, thus identifying where things go wrong. Alternatively, start from scratch in a new project and add the functionality until it crashes.
  • Hi Akash,
    Do you have an update on my suggestion?