AnsweredAssumed Answered

CAN or RTOS issue ??

Question asked by freescale_satya on Jan 20, 2011
Latest reply on Jan 22, 2011 by freescale_satya

Hi,

 

I am using an RTOS with two tasks defined at 5ms and other 20ms task. I have a configuration file defined which contains the CAN messages to be transmitted there is a RAM memory allocated for this number of messages (id, datalength, priority etc) in one of my .c file. The issue is when the code switches from 5ms task to 20ms and comes back again to 5ms the second time, RAM data is getting corrupted and not getting the expected message id's and data. what i observed from debugging is the RAM area is being overwritten, but i do not know how it is getting overwritten. if i run it in a single 5ms task the message ids and data are expected (i tested only couple of occassions). could somebody help me on this

 

thanks and regards,

satya    

Outcomes