<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CAN or RTOS issue ?? in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177648#M6300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Lundin, Thanks for the reply. Yes it is infact a stack issue. i had 3 tasks just i commented one of the tasks to give more space and extended the stack size and was able to resolve the issue. Now i have related another issue to extend the size of the RAM in the PRM which i have never done. i will post it as a new question after trying with sample prm files. Thanks once again for the suggestion. regards, satya&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jan 2011 11:03:07 GMT</pubDate>
    <dc:creator>freescale_satya</dc:creator>
    <dc:date>2011-01-22T11:03:07Z</dc:date>
    <item>
      <title>CAN or RTOS issue ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177644#M6296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using an RTOS with two tasks defined at 5ms and other 20ms task.&amp;nbsp;I have a configuration file defined which&amp;nbsp;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&amp;nbsp;back again to 5ms the second time, RAM data is getting corrupted and&amp;nbsp;not getting the expected message id's and data. what i observed from&amp;nbsp;debugging is the RAM area is being overwritten, but i do not know how it is getting overwritten.&amp;nbsp;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;satya&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 23:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177644#M6296</guid>
      <dc:creator>freescale_satya</dc:creator>
      <dc:date>2011-01-20T23:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: CAN or RTOS issue ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177645#M6297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stack overflow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 15:29:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177645#M6297</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2011-01-21T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAN or RTOS issue ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177646#M6298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;But how to know that?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 20:16:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177646#M6298</guid>
      <dc:creator>freescale_satya</dc:creator>
      <dc:date>2011-01-21T20:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAN or RTOS issue ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177647#M6299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easiest way is to download the program through the debugger, then set each cell in the whole stack memory area to contain a fixed value, like 0xAA. Then run the program and stop it after some time. See if any 0xAA remain on the stack or if they are all overwritten.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though if you are using a RTOS it should be doing stack handling for each process. How that is done depends on the OS, though surely the OS must have a spec for how much memory it will need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 21:34:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177647#M6299</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2011-01-21T21:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: CAN or RTOS issue ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177648#M6300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Lundin, Thanks for the reply. Yes it is infact a stack issue. i had 3 tasks just i commented one of the tasks to give more space and extended the stack size and was able to resolve the issue. Now i have related another issue to extend the size of the RAM in the PRM which i have never done. i will post it as a new question after trying with sample prm files. Thanks once again for the suggestion. regards, satya&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jan 2011 11:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177648#M6300</guid>
      <dc:creator>freescale_satya</dc:creator>
      <dc:date>2011-01-22T11:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: CAN or RTOS issue ??</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177649#M6301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Lundin, could you please tell me how to extend the RAM memory beyond 8K for s12xE variants. regards, satya&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jan 2011 17:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-or-RTOS-issue/m-p/177649#M6301</guid>
      <dc:creator>freescale_satya</dc:creator>
      <dc:date>2011-01-22T17:03:39Z</dc:date>
    </item>
  </channel>
</rss>

