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.

TMS320C5517: Problem with huge model project (CPU hang on)

Part Number: TMS320C5517

I have a simple project where I disabled all my tasks. Left the initialization of hardware and libraries. In debug mode (see video): after exiting main (), stopped the processor at any time, then resumed it and immediately stopped it. The processor hangs at point 0xFE0005. I don't understand what the problem is, if all tasks are stopped, there is no task creation or any interrupt handlers inside the initializer functions.

My cfg file: dspbios_cfg.7z

Video: 1drv.ms/.../s!AocEVZY12FmqmB8KWj4u2l6nBhF_

  • Hi Georgii,

    I can't access the video due to TI file sharing restrictions.

    What DSP-BIOS, CSL/Drivers and codegen tools versions are you using?

    If you have at least one task enabled, do you reach the start of the task?

    Does the issue only occur with the huge memory model? Can you try the large memory model to see if you observe the same behavior?

    I notice in your .tcf file that you have a user initialization function. Do you reach this function? If so, have you stepped through this code to see if the crash occurs there?

    bios.GBL.USERINITFXN = prog.extern("DspBios_SystemInit");

    By default the idle loop should be included. Can you add an idle function and see if you reach the function?

    Can you share the complete source code for simple example which demonstrates the problem on a C5517 EVM?

    Regards,
    Frank

     

  • Hi, Frank!

    > I can't access the video due to TI file sharing restrictions.

    What about this (part 1): video_2021-02-08_12-54-22.7z

    > What DSP-BIOS, CSL/Drivers and codegen tools versions are you using?

    Compiler: 4.4.1

    DSP-BIOS: 5.42.02.10

    CSL: 3.08.01

    DSPLIB: 3.00

    > If you have at least one task enabled, do you reach the start of the task?

    All tasks turned off

    > Does the issue only occur with the huge memory model? Can you try the large memory model to see if you observe the same behavior?

    Only HUGE, with LARGE - nope. But if I exclude some of my code modules, the project does not crash...

    > I notice in your .tcf file that you have a user initialization function. Do you reach this function? If so, have you stepped through this code to see if the crash occurs there?

    Yes, I reach DspBios_SystemInit(), and main() function too. Can you watch the video in the archive now?

    > By default the idle loop should be included. Can you add an idle function and see if you reach the function?

    I'll try and come back to you.

    > Can you share the complete source code for simple example which demonstrates the problem on a C5517 EVM?

    This is a problem because I need to exclude multiple modules and there seems to be a change in memory going on.

  • This bug is not reproducible, perhaps some of the files were not updated in the build system, which led to crashes. Stopped reproducible after moving to a separate workspace