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.

eZdsp F28335 & DSP/BIOS MEM_alloc failed!

Hello!
I have eZdsp F28335 board and I want to use the DSP/BIOS v5.41 (from CCS v4.2).
I am trying to debug the example project from "DSP/BIOS v5.xx Examples//ezdsp28335 Examples//semaphore Example" path. All settings are default for eZdspF28335 board.
After the execution of code with the function MEM_alloc I see the following messages
SYS_error called: error id = 0x0
SYS abort called with message 'Memory allocation failed!'
Who had a similar problem? How to solve it?
This code with MEM_alloc function:
msg = (MsgObj *)MEM_alloc(SEG0, NUMMSGS * sizeof(MsgObj), 0);
Very thanks!
dsp_bios_sema.zip
  • Hi Nikolay,

    You are running out of memory. Did you change the semaphore example? Take a look at ROV's MEM view when the app gets to main(). You can see how memory you have. It looks like SEG0 corresponds to the L47SARAM heap. You can try increasing the size of this heap from 0x01f0 to a bigger number in the .tcf file (via config tool or a text editor).

    Todd

  • Hi Todd,

    My development board is early revision and have the TMX-revision processor. As it is writen in the SPRZ272.pdf document this revision have not working XINTF module.

    In project settings was applied segment for DSP/BIOS and segment for malloc/free in SRAM location.

    I was change it on L47SARAM and everything was fine.

    Of course, for the following applications need to change the processor on the TMS-revision...