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.

Help with Error: The application is using 64 MB of DSP memory

Other Parts Discussed in Thread: CCSTUDIO

I am using CCS v3.3 simulation tool for a C64x+ device and got an error message:

Error:  The application is using 64 MB of DSP memory. Verify  application memory usage. To increase the supported memory limit, refer SPRU600.

SPRU600 indicates a fix of  changing "MEM_USAGE_LIMIT 64" to a bigger number for "base configuration file".

From CCS setup, the file C:\CCStudio_v3.3\drivers\simc64plus_cpu.cfg gets specified but there is no field MEM_USAGE_LIMIT in the cfg file.

Very much appreciate for any offer for fixing the problem.

  • This might be a bug of CCS, I think! When encounting this problem, I just reset the CPU from the Debug menu --> "Reset CPU"!

  • Jim,

    The document spru600 (page 41), tells to "add the entry MEM_USAGE_LIMIT", so it is not going to be there, you will need to add it. By adding it, this will overwrite the internal configuration of the simulator I guess.

  • Thank you all for the valuable input. Finally I added "MEM_USAGE_LIMIT 100" to section "MODULE C64xplus" to file C:\CCStudio_v3.3\drivers\simc64plus_cpu.cfg. After that I got new error message

    Error:  The application is using 100 MB of DSP memory. ...

    The error disappeared after I reboot my PC, guessing I screwed up something during debugging.

     

    Jim

  • Hi All,

    Please note that "MEM_USAGE_LIMIT" configuration file option is only for warning the user on the memory usage exceeding a particular value. This does not alter the memory configuration of the simulator.

    Regards,

    Anuradha.

     

     

  • Hi Jim,

    It looks like your program is using a lot of memory for running the program.

    From my experience, it can possibly happen if you have allocated dedicated memory "malloc"s for some of your program variables in your code and have not freed up these dedicated memories after you have finished using these variables. The memory can go out of bounds if you have a lengthy loop running and all these variables get stacked up. So try to free up these memory allocations. One more thing you can try is increase the heap size in the linker command file and see if it works. 

    For example, if your linker command file says 

    -heap  0x2000 

    you can try increasing it to 0x8000 or 0x16000 and see if it works. 

     

    Regards,

    Arun

  • Very much appricate the input from you both, Arun and Anurdha. I am running severial test  vectors at same time and memory allocation can be issue here. I will look into it.

    Regards,

    Jim

  • Hi Mariana,

    I have add the line "MEM_USAGE_LIMIT 100" to my .cfg file, but i get a new error following:

    missing ; before statement   js: MEM_USAGE_LIMIT 100;

    what this happened??? please help.

    Thanks!