How to debug xmem allocation failed msg.

Hi All,

I’m porting an application that was developed for a RCM4010 to try and run on an RCM5700. It compiles OK, but I get the message “runtime error : xmem allocation failed (out of memory), file xxxx, line yyy”. First, does this message men I’m running out of code or data memory?
What’s going to be the best way to determine what’s using up all the memory?

I am not doing any explicit xmemory allocation with xalloc.

Thanks,
Sean

are you trying to execute from ram?

  1. try to compile to flash then execute
  2. try to enable the checkbox in “Project Options>Compiler>Separate Instruction & Data Space” then compile and execute