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.

C6713 Error: 0x80000022/-1143, Memory is 'not ready'

Hi everyone,

I am using DSP C6713 in a custom board. I generate code by utilizing CCS v3.3 with Code Generation Tool 6.1.22. Problem started when i ran my generated code from internal flash. In some build instances of same source code, generated code stops at some point, no reaction from DSP without any indication. When I encountered this problem, i decided to debug the code step by step via CCS v3.3 in mix Source-ASM. At some point in code, I received Error: 0x80000022/-1143, fatal error during memory execution, some memory location indicated it was not ready. Since I don't have detailed knowledge in debugging of c67x assembly code, I could not go forward to find the source of this problem. Different builds of the code do not have this problem.You can find some observations below:

1- Error definition, Error at 0x0001FC00

2- Code block, first build, WITH error

3 - Same code block, second build, WITHOUT Error

I have browsed to find related forum topic but all of them are related to connection problems in CCS.

I appreciate if you explain the cause of this error(Code generation, hardware problems such as memory stalls etc.) and make some recommendations.Thank you, kind regards.

  • The memory location 0x80000022 corresponds to external SRAM or DDR memory address. When you connect to the DSP are you running a GEL file to initialize external memory. It looks like most of your code is running from internal memory but some symbols may be defined in external SDRAM which is not initialized.

    An example of the GEL file to initialize external memory connected to C6713 is shown below.  Check the function init_emif in the file attached.

    dsk6713.gel

    Hope this helps.

    Regard,

    Rahul

  • Dear Mr. Prabhu,

    Yes, I am running a .gel file to initialize when I connect from CCS , you can find .gel file in the attachments. However, I have received error at memory location 0x0001FC00, this is an internal memory location. Although I am not sure, I think that Error: 0x80000022/-1143 is the total error code. This error definition popped-up from CCS can be seen below:

    Do you have any suggestion? Thank you, kind regards...

    Kagan

    A_16bit_B_16bit_EMIF.gel

  • Hi everyone,

    Any comments?

    Kind regards,

    Kagan
  • Kagan,

    After starting the debugger are you able to open a memory window at the location 0x0001FC00?

    Could you also open a register window and look at the value of A1? As you step through the code is the value of A1 zero just before you get that error?

    Regards,
    John
  • Hello JohnS,

    Since I encounter the same problem in my new code also, I would like to continue with this new build (problematic code block in source and error code is same, however I think different builds use different memory locations for text, hence same error occurred for different memory. It should be noted that current and previous builds use CGT 6.1.23 with -o1 optimization in CCS v3.3. )

    Problematic code block in mixed Source/ASM:

    Error code (Error at memory location 0x0001FD20):

    I am able to read memory location  0x0001FD20 after I start debugger as can be seen from table below:

    Just before crash, the register values are indicated in table below:

    Hence A1 is zero before error.

    Thank you, kind regards,

    Kagan

  • Hi, any comments?

    Kind regards,

    Kagan
  • Kagan,

    I am pretty stuck on what to do next. The [!A1] beside the instruction means that it won't execute if A1 is 0.

    I could try running the code on a C6713 DSK that I have here with a newer toolset to see if it is a tool issue that has been resolved in the years since CCSv3.3 was released. I am not sure that is the case but it may be worth a try.

    John