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.

Exception: Target memory read failed at address: 0x0, length: 8



Hi ,

Am running a c++ project in the DSP core . In the middle of the execution the code goes into indefinite run state(No response).

On checking the ROV, it displays the following error message : 

Caught exception in view init code: "C:/ti/xdctools_3_25_03_72/packages/xdc/rov/StructureDecoder.xs", line 518: java.lang.Exception: Target memory read failed at address: 0x0, length: 8 This read is at an INVALID address according to the application's section map. The application is likely either uninitialized or corrupt.

am adding my .CFG file along with this post : 

There is no heap or stack memory overflow in the code and no section is declared without correct memory allocation. I have added the screenshot of CCS window- the code gets into an indefinite while loop at clock.c  

How to debug this issue ? 

CCS Version : 5.5

MCSDK version : 2.2.1.03

SYSBIOS version : 6.35.4.50

IPC version : 1.25.03.15

Compiler : c6000_7.4.4

regards , 

Vinodh 

2870.test.cfg.docx

  • Vinodh,

    That message from ROV indicates it has detected a memory corruption.

    You mention there is “no heap or stack memory overflow”.  Have you checked both the system stack, and individual Task stacks?

    Also, in ROV, if you click on the BIOS module, and click on the scan for errors tab, what errors are shown?

    Thanks,
    Scott

  • Hi ScottG,

    I have the same issue: My project runs for a while but then stops and when I check the Queue module it shows me an error and when I click the Bios module on the scan for errors tab, this is what it shows:

    It seems that is not a stack size problem:

    Could you take a look and try to help me please?

  • Hi Junior,

    We generally discourage posting a new question to an answered thread. It weakens the search feature of the forum. For this reason, I suggest you start a new thread with your question and reference this thread.

    Thank you
  • I had a similar problem to this, where it gave the following similar error

    Caught exception in view init code: "./ti/tirex-content/xdctools_3_32_00_06_core/packages/xdc/rov/StructureDecoder.xs", line 518: java.lang.Exception: Target memory read failed at address: 0x20002bdc, length: 32This read is at an INVALID address according to the application's section map. The application is likely either uninitialized or corrupt.

    I couldn't figure out what the issue was.  After some further investigation, it appears that it was related to a task that I created for debugging purposes.  I removed the source code for the task function, but I didn't remove the task configuration from the cfg.  For some reason it let me compile and didn't throw an error.  My guess is that it was trying to initialize that task and was using the address of the task that no longer existed.  Check your CFG for anything that's hanging.  I hope that helps.