<?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のトピックRe: freeRTOS can not run on peripheral RAM</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550802#M14080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:09:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:09:07Z</dc:date>
    <item>
      <title>freeRTOS can not run on peripheral RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550800#M14078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by phuockal on Mon Apr 25 00:17:44 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC4078 with freeRTOS version 7.53 copied from LPC open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;freeRTOS was running smoothly on CPU RAM. Then I want to spend CPU RAM for graphic library and move freeRTOS heap memory on onchip peripheral RAM, but I got system hard fault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;freeRTOS using heap_1.c with static memory allocation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the following code in file heap_1.c was running fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static unsigned char ucHeap[ configTOTAL_HEAP_SIZE ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but just add the __BSS(RAM2), I got hard fault:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "cr_section_macros.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__BSS(RAM2) static unsigned char ucHeap[ configTOTAL_HEAP_SIZE ];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am afraid that the RAM2 (peripheral RAM) was use without initialization. I had try to find the way to initialize it. but it seem to be no need to manually initialization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please tell me what was happening in that case, and how to use peripheral RAM for freeRTOS. Please tell me what I was wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550800#M14078</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS can not run on peripheral RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550801#M14079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by phuockal on Mon Apr 25 00:35:35 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just add more information about my problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on file freeRTOSConfig.h:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define configTOTAL_HEAP_SIZE( ( size_t ) ( 22*1024 ) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;onchip peripheral RAM of LPC4078 is 32KB. Building project was successful without, no out of memory was reported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;report after build:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; text&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp; hexfilename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 299396&amp;nbsp;&amp;nbsp; 2036&amp;nbsp; 63284 364716&amp;nbsp; 590acApplication.axf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my application, no dynamic memory was declared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;system crash immediately after start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550801#M14079</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS can not run on peripheral RAM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550802#M14080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-can-not-run-on-peripheral-RAM/m-p/550802#M14080</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:09:07Z</dc:date>
    </item>
  </channel>
</rss>

