Camilo A Camacho D

Out of memory

Discussion created by Camilo A Camacho D on Apr 25, 2013
Latest reply on Apr 25, 2013 by Martin Kojtal

Hi everyone, I`m having trouble with my task´s memory. The thing is as follows: I have several tasks, as ETH task, an SD (writing/erasing) task, a mifare task, a biometric device control task, among others. I`m running out of memory and my device is working right on the boundaries and if i want to modify the memory of one of them, right away another one starts to work badly. Is there by any chance a way to make this memory assignment dynamically? Right now I`m making the assignatios like this:

 

 

 

TASK_TEMPLATE_STRUCT MQX_template_list[] =

{

/*  Task number, Entry point, Stack, Pri, String, Auto? */

   {GPIO_TASK,  Gpio_task,  /*1500*//*1000*/1000,12,  "GPIO", MQX_AUTO_START_TASK},

   {LCD_TASK,   Lcd_task,   /*1500*//*1000*/900,  12,   "LCD", MQX_AUTO_START_TASK},// ojo modificado por miguel para lo de conalvias

   MORPHOSMART_TASK_TAMPLATES,

  // WISMO_TASK_TAMPLATES,

   //{MODEM_TASK,   Modem_task,   1500,  11,   "MODEM", MQX_AUTO_START_TASK}, // Ojo agregado por miguel para lo de conalvias

   //{CBM_TASK,   Cbm_task,   1500,  10,   "CBM", MQX_AUTO_START_TASK},

   {ETH_TASK,   Eth_task,   /*1300*/1000,  9,   "ETH", 0}, // ojo modificado por miguel para lo de conalvias

   {RTC_TASK,rtcinit_task,800,10,"rtcinit",MQX_AUTO_START_TASK},

   {MIFARE_TASK, mifare_task, /*1500*/1000, 10,   "mifare", 0},

   {MIFARERX_TASK,mifarerx_task, /*1500*/1700, 9,   "mifarerx",0},

   {T_TASK,  t_task,  /*1000*/1500  ,12,  "TIMER", /*0*/MQX_AUTO_START_TASK},

   {SD_TASK,  Install_SD,  /*2500*/2800  ,12,  "SD_Task",MQX_AUTO_START_TASK},

   {PRINCIPAL_TASK,  Principal,  /*1500*/800  ,12,  "Principal_Task",MQX_AUTO_START_TASK},

   //{RECIEVE_TASK,  Recieve_task,  200  ,12,  "Recieve",MQX_AUTO_START_TASK}, // Ojo tarea agregada por miguel para lo de conalvias

   //{WIEGAND_TASK,  Wiegand_task,  800  ,12,  "Wiegand",MQX_AUTO_START_TASK}, // Ojo tarea agregada por miguel para lo de aireflex

   {0,           0,           0,     0,   0,      0,                 }

};

 

Thank you in advance for your time and cooperation.

 

BR

 

 

 

Outcomes