<?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: LPC11Cxx CCAN and freertos problems. in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612764#M23970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume when you say it doesn't matter how big the stack is you are increasing the stack size using the usStackDepth parameter in the call to&amp;nbsp;&lt;A href="http://www.freertos.org/a00125.html"&gt;xTaskCreate()&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="http://www.freertos.org/xTaskCreateStatic.html"&gt;xTaskCreateStatic()&lt;/A&gt;? &amp;nbsp;If so, and the stack size is really not the issue, could it be something else is simply writing over the memory used by the stack? &amp;nbsp;Writing over the memory would corrupt the pattern that marks the end of the stack, which would then be detected as an overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using any stack heavy/hungry functions like printf() or sprintf()? &amp;nbsp;If so, try taking those out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Oct 2016 02:26:36 GMT</pubDate>
    <dc:creator>FreeRTOS_org</dc:creator>
    <dc:date>2016-10-08T02:26:36Z</dc:date>
    <item>
      <title>LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612763#M23969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've downloaded examples for LPC11Cxx. Here i've found examples for freertos(nxp_lpcxpresso_11c24_freertos_blinky) and &amp;nbsp;CAN(nxp_lpcxpresso_11c24_periph_ccan_rom). Everything works. But when i try to use CAN in FreeRTOS examples - it doesnot work correctly. I always get&amp;nbsp;vApplicationStackOverflowHook for task there i try to init CAN. Overflow happens every time i try to use CAN ROM function. For example that one&amp;nbsp;LPC_CCAN_API-&amp;gt; init_can ( &amp;amp;CanApiClkInitTable[0], TRUE);&amp;nbsp;&lt;BR /&gt;It does not matter how big is stack for task where i call this function. Does anybody knows how to handle this?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 15:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612763#M23969</guid>
      <dc:creator>dimanechaev</dc:creator>
      <dc:date>2016-10-06T15:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612764#M23970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume when you say it doesn't matter how big the stack is you are increasing the stack size using the usStackDepth parameter in the call to&amp;nbsp;&lt;A href="http://www.freertos.org/a00125.html"&gt;xTaskCreate()&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="http://www.freertos.org/xTaskCreateStatic.html"&gt;xTaskCreateStatic()&lt;/A&gt;? &amp;nbsp;If so, and the stack size is really not the issue, could it be something else is simply writing over the memory used by the stack? &amp;nbsp;Writing over the memory would corrupt the pattern that marks the end of the stack, which would then be detected as an overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using any stack heavy/hungry functions like printf() or sprintf()? &amp;nbsp;If so, try taking those out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 02:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612764#M23970</guid>
      <dc:creator>FreeRTOS_org</dc:creator>
      <dc:date>2016-10-08T02:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612765#M23971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Richard. Thank you for your answer. I realy tried to increase&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;usStackDepth. It didnot help. I didnot use &lt;SPAN&gt;stack heavy/hungry functions like printf() or sprintf().&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Here is an example of my problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;void main()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;xTaskCreate(vTask0, (signed char *) "vTask0",&amp;nbsp;configMINIMAL_STACK_SIZE*5, NULL, (tskIDLE_PRIORITY + 1UL),(xTaskHandle *) NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void vTask0(void *pvParameters) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;uint32_t CanApiClkInitTable[2];&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/* Publish CAN Callback Functions */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;CCAN_CALLBACKS_T callbacks = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CAN_rx,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CAN_tx,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; CAN_error,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;};&lt;BR /&gt;&amp;nbsp; &amp;nbsp;baudrateCalculate(TEST_CCAN_BAUD_RATE, CanApiClkInitTable);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;LPC_CCAN_API-&amp;gt;init_can(&amp;amp;CanApiClkInitTable[0], TRUE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/// here comes task stack overflow!!!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/* Configure the CAN callback functions */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LPC_CCAN_API-&amp;gt;config_calb(&amp;amp;callbacks);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;/* Enable the CAN Interrupt */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;// NVIC_EnableIRQ(CAN_IRQn);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;/* Send a simple one time CAN message */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.msgobj = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.mode_id = 0x123;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.mask = 0x0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.dlc = 4;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.data[0] = 'T'; // 0x54&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.data[1] = 'E'; // 0x45&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.data[2] = 'S'; // 0x53&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.data[3] = 'T'; // 0x54&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LPC_CCAN_API-&amp;gt;can_transmit(&amp;amp;msg_obj);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;/* Configure message object 1 to receive all 11-bit messages 0x400-0x4FF */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.msgobj = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.mode_id = 0x100;//0x400;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;msg_obj.mask = 0x700;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LPC_CCAN_API-&amp;gt;config_rxmsgobj(&amp;amp;msg_obj);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 08:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612765#M23971</guid>
      <dc:creator>dimanechaev</dc:creator>
      <dc:date>2016-10-10T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612766#M23972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you consider the RAM-section, that the C_CAN API uses? See User Manual UM10398 &amp;nbsp;chapter 17.4.1 saying that it uses RAM location 0x1000 0050 to 0x1000 00B8.&lt;/P&gt;&lt;P&gt;Because of that I have set in the MCU settings the RAM start that usually is 0x1000 0000 &amp;nbsp;to 0x1000 00C0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know a smarter&amp;nbsp; solution for that problem?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 11:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612766#M23972</guid>
      <dc:creator>ekki</dc:creator>
      <dc:date>2016-10-18T11:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612767#M23973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ekkehard.&lt;/P&gt;&lt;P&gt;I didnot consider that. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 16:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612767#M23973</guid>
      <dc:creator>dimanechaev</dc:creator>
      <dc:date>2016-10-18T16:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612768#M23974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found a smarter solution. Watch here:&amp;nbsp;&lt;A href="http://www.support.code-red-tech.com/CodeRedWiki/EnhancedManagedLinkScripts"&gt;..../CodeRedWiki/EnhancedManagedLinkScripts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 07:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612768#M23974</guid>
      <dc:creator>ekki</dc:creator>
      <dc:date>2016-10-19T07:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11Cxx CCAN and freertos problems.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612769#M23975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also changed memory regions in MCU settings. I did one region before 0x10000050 and one after 0x100000B8. I did not use manual linker files in LPCXpresso.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:43:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11Cxx-CCAN-and-freertos-problems/m-p/612769#M23975</guid>
      <dc:creator>dimanechaev</dc:creator>
      <dc:date>2016-10-19T14:43:52Z</dc:date>
    </item>
  </channel>
</rss>

