AnsweredAssumed Answered

MFS Crash with Heavy Weight Memory Allocator

Question asked by pmt on May 16, 2013
Latest reply on May 27, 2013 by Martin Latal

I have an issue where MFS appears to be crashing during init.  The only change I made to the "out-of-box configuration" is to not use the Light Weight memory allocator.  There seems to be enough spare memory available, so I don't think that is the issue.  Configuration:

 

MQX           4.0.0

BSP:          TWRK60F120M

Project:       rtcs_shell

Config:        debug

Tools:         Keil UV4

 

Modification:

 

Added the following line to user_config.h

 

#define MQX_USE_LWMEM_ALLOCATOR             0

 

The initialization crashes here:

 

Call stack looks like this:


     Ram_disk_start()

     mqx_status = _io_mfs_install(dev_handle1, "a:", (_file_size)0);

     MFS_mem_alloc_system_zero()

     _mem_alloc_system_zero_uncached()

     _mem_alloc_internal()

 

Crash is right after the _int_enable()

 

             /* allow pending interrupts */

             _int_enable();

             _int_disable();

 

 

Any ideas?

 

PMT

Outcomes