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.

CC2538: Memory corrupt in CC2538

Part Number: CC2538
Other Parts Discussed in Thread: Z-STACK

Hi,

Memory corrupt in CC2538 after some data rx/tx over zigbee.

It works fine for 4-5 minutes after that i can see in memory it lost the table data on array of 5x250 size.

Dhaval

  • Hi Dhaval,

    You will need to give us more details about what is going on. You mentioned Zigbee, which stack and/or application are your using (including the version)?

    You can stop the debugger and check the call stack (in CCS, it is the debug window, in IAR, it is under the view menu), and see which line or function is causing the problem.

    Also, are you using TI-RTOS, drivers or your own driver library?

    Can you provide some code to show how and what you send your data?

    Regards,

    Michel

  • Hi Michel,

    I am using Z-Stack Mesh 1.0.0.
    Customized it for our application using generic app.
    We are exchanging data over generic app.
    I can see in IAR, table data declared globally is all value is 0.
    But still i can see in sniffer log no reset of coordiantor.
    Even i put breakpoint at start of main, code is not being reset.
    Only memory getting lost. Is it related to retention of SRAM data.

    Dhaval
  • This is memory map used by application. it seem it have lot of free space out of 32kb ram.

    196 470 bytes of readonly code memory
    5 291 bytes of readonly data memory
    23 712 bytes of readwrite data memory (+ 12 288 absolute)

    I have used structure for accessing this table data. It around 100 bytes in size.
    I exchange data over zigbee around 50-60 bytes.

    My devices is coordinator, and have 3 nodes in network. exchange some of data. it works fine for some 2-3 minutes.
    And suddenly this memory corrupt or reset happens and i could not even debug things, and sniffer log shows like nothing happens.
  • It was due to accessing of memory area outside of CC2538 memory map.
    Find SystemReset() used in all code files and put breakpoint, then see call stack where
    exactly it happens, it was due to accessing unknown memory area cause fault isr routine to call,
    which cause system reset.