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.

problem with DSP/BIOS 6



 Hi ,

 

 I am new to DSP/BIOS 6 and I am using ccs4. I am trying to create and run multiple tasks on the system with each task assigned 512 bytes as the stack size .

But I am not able to increase the number of tasks beyond 6 , since it crashes at task creation time itself , showing some xdc.runtime error as follows  .

 

xdc.runtime.Memory: line 50: out of memory: heap=0x0, size=512

xdc.runtime.Error.raise: terminating execution

 

It worked well for around 5 tasks . I tried increasing the program.stack , in config.cfg file ,  but it doesnt work .

So please help me by answering  from where is the taskStack assigned and how can I increase the size of the stack .

 

Regards,

Bushra

  • I assume you are generating these tasks dynamically at run time? If this is the case the memory it is out of is not stack space, but rather heap space, since BIOS will need to dynamically allocate space (malloc) for the TSK structures (including its own stack) from the heap. You should be able to change the heap size for various memory segments in the BIOS configuration tool, you just need to increase the size of the heap of the memory segment being used for default allocations and you should see additional dynamic task creations succeed.

  • Yes . you are right , the tasks are created at runtime . And I got the problem solved by Assigning the

    defaultStackHeap to a newley created heap .

    Thanks for the swift reply.

     

    And , I have one more doubt regarding the RTA tool . whenever I try to open the RTA tool , I get the following error  get a lot of errors like

    : Cannot get RTA remote control object etc...

     

    Why its coming like that .

    Regards,

    Bushra