<?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>LPC MicrocontrollersのトピックRTX Memory Problem - LPC1347</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTX-Memory-Problem-LPC1347/m-p/525706#M8342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcolotz on Tue Feb 25 06:51:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having problems with memory allocation when running RTX in my LPC1347. I am using lpcxpresso 6.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Last week I have downloaded the last RTX version from Keil's website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have fixed all the compilation errors and now it looks like the project is compiling fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the main.c, there is a call for a function called osThreadCreate().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that it returns a threadId = 0&amp;nbsp; to all the Threads that I try to create.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried to debug this error and looks like the RTX is having problems to free memory. The OS is returning&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the following error: osErrorNoMemory. In debugging one can see that all that happens in the CM_SIS.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried many solutions and couldn't find an answer for why this error is happening. I guess it may be the linker, but if that is so, how to correctly configure it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exported all the projects and its dependencies. The main is in the RTOS_Blinky. The project is attached to this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337887"&gt;lpc1347_0.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:55:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:55:18Z</dc:date>
    <item>
      <title>RTX Memory Problem - LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTX-Memory-Problem-LPC1347/m-p/525706#M8342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcolotz on Tue Feb 25 06:51:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having problems with memory allocation when running RTX in my LPC1347. I am using lpcxpresso 6.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Last week I have downloaded the last RTX version from Keil's website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have fixed all the compilation errors and now it looks like the project is compiling fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the main.c, there is a call for a function called osThreadCreate().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that it returns a threadId = 0&amp;nbsp; to all the Threads that I try to create.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried to debug this error and looks like the RTX is having problems to free memory. The OS is returning&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the following error: osErrorNoMemory. In debugging one can see that all that happens in the CM_SIS.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried many solutions and couldn't find an answer for why this error is happening. I guess it may be the linker, but if that is so, how to correctly configure it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exported all the projects and its dependencies. The main is in the RTOS_Blinky. The project is attached to this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337887"&gt;lpc1347_0.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTX-Memory-Problem-LPC1347/m-p/525706#M8342</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: RTX Memory Problem - LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTX-Memory-Problem-LPC1347/m-p/525707#M8343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Tue Feb 25 14:28:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem is in your startup code. You need to add a call to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WEAK void software_init_hook (void);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;software_init_hook();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;immediately after the data and bss sections have been initialised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTX-Memory-Problem-LPC1347/m-p/525707#M8343</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:55:19Z</dc:date>
    </item>
  </channel>
</rss>

