<?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>Kinetis MicrocontrollersのトピックRe: FreeRTOS, LWIP, MEBDTLS</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441462#M62865</link>
    <description>&lt;P&gt;Hello Christie&lt;/P&gt;
&lt;P&gt;I have a few things to say about your problem.&lt;/P&gt;
&lt;P&gt;First of all, could you please tell me how exactly you copied the files you just mentioned?&lt;/P&gt;
&lt;P&gt;Could you also give me more information about the type of application you want to implement to see if we can help you with that?&lt;/P&gt;
&lt;P&gt;Finally, could you please take a look on some of the SDK examples? Because of what you’re saying, the example &lt;EM&gt;lwip_httpssrv_mbedTLS_freertos&lt;/EM&gt; sounds very similar of what you are trying to do.&lt;/P&gt;
&lt;P&gt;Best Regards, Daniel.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 18:54:17 GMT</pubDate>
    <dc:creator>DanielRuvalcaba</dc:creator>
    <dc:date>2022-04-08T18:54:17Z</dc:date>
    <item>
      <title>FreeRTOS, LWIP, MEBDTLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1440765#M62854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MCUXpreeso 11.5.0 with SDK2.11.0 for FRDM-K66 testing.&lt;/P&gt;&lt;P&gt;I import demo project for HTTPS MBedTLS based server and it works fine...&lt;/P&gt;&lt;P&gt;Then, I created the new project with RTOS, LWIP, MBedTLS and etc...&lt;/P&gt;&lt;P&gt;1) I tested the new project with HELLO world by using RTOS and works fine...&lt;/P&gt;&lt;P&gt;2) I copy all required files from the above sample project and compile the project properly.&lt;/P&gt;&lt;P&gt;When I tried to run and got the following error: "Function called without core lock".&lt;/P&gt;&lt;P&gt;Then I compare the difference between sample and my project, found that sample project is using heap3.c and my project is using heap4.c. Then I delete heap4.c, got the compile error.&lt;/P&gt;&lt;P&gt;Can anybody tell me how to fix the problem? Change heapx.c will fix the problem? and how to switch to heap3.c?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:40:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1440765#M62854</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-04-07T16:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS, LWIP, MEBDTLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441419#M62861</link>
      <description>&lt;P&gt;Looks like that this IDE generate the RTOS project with heap4.c as default. And heap4.c is not working with MbedTLS...&lt;/P&gt;&lt;P&gt;Can anyone to confirm this for me?&lt;/P&gt;&lt;P&gt;Any how to switch back to heap3.c because I tried delete and copy, it not working...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:58:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441419#M62861</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-04-08T15:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS, LWIP, MEBDTLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441462#M62865</link>
      <description>&lt;P&gt;Hello Christie&lt;/P&gt;
&lt;P&gt;I have a few things to say about your problem.&lt;/P&gt;
&lt;P&gt;First of all, could you please tell me how exactly you copied the files you just mentioned?&lt;/P&gt;
&lt;P&gt;Could you also give me more information about the type of application you want to implement to see if we can help you with that?&lt;/P&gt;
&lt;P&gt;Finally, could you please take a look on some of the SDK examples? Because of what you’re saying, the example &lt;EM&gt;lwip_httpssrv_mbedTLS_freertos&lt;/EM&gt; sounds very similar of what you are trying to do.&lt;/P&gt;
&lt;P&gt;Best Regards, Daniel.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 18:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441462#M62865</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2022-04-08T18:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS, LWIP, MEBDTLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441469#M62866</link>
      <description>&lt;P&gt;HI Daniel,&lt;/P&gt;&lt;P&gt;If I am using demo project "&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;lwip_httpssrv_mbedTLS_freertos" and it works fine on IDE11.2.0 and 11.5.0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Then, I generated the new project including RTOS, IWIP, MbeTLS and etc...Then copy the required files from demo.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For IDE11.2.0, it works fine.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For IDE11.5.0, it stop working.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;After I checked the difference, I found RTOS is using heap4.c instead of heap3.c in IDE11.5.0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Looks like, heap4.c does not work properly with MbedTLS...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Christie&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 19:12:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1441469#M62866</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2022-04-08T19:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS, LWIP, MEBDTLS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1442922#M62890</link>
      <description>&lt;P&gt;Hello Christie&lt;/P&gt;
&lt;P&gt;Please take a look to this website, here you will find information about the different memory implementations that FreeRTOS has.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.freertos.org/a00111.html" target="_blank"&gt;https://www.freertos.org/a00111.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As you can see, there are 5 different heap implementations. Usually MCUXpresso uses heap 4 when creating a new project.&lt;/P&gt;
&lt;P&gt;If you need to switch to another implementation, I found a way to do that.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First, make sure that the macro &lt;EM&gt;configFRTOS_MEMORY_SCHEME &lt;/EM&gt;is enabled with the number 3&lt;/LI&gt;
&lt;LI&gt;Find and open the .cproject file on your project folder using a text editor&lt;/LI&gt;
&lt;LI&gt;Search for the word “excluding“&lt;/LI&gt;
&lt;LI&gt;You will have two matches, and will appear something like this &lt;STRONG&gt;&lt;EM&gt;&amp;lt;entry excluding="freertos_kernel/portable/MemMang…&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;In those two lines change where it says “heap_3.c” to “heap_4.c”&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielRuvalcaba_1-1649796482855.png" style="width: 95px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176675iACDBC0391B0412DF/image-dimensions/95x104?v=v2" width="95" height="104" role="button" title="DanielRuvalcaba_1-1649796482855.png" alt="DanielRuvalcaba_1-1649796482855.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="DanielRuvalcaba_2-1649796482860.png" style="width: 93px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176676i9CD0F700C0FD7519/image-dimensions/93x103?v=v2" width="93" height="103" role="button" title="DanielRuvalcaba_2-1649796482860.png" alt="DanielRuvalcaba_2-1649796482860.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this on your code?&lt;/P&gt;
&lt;P&gt;If you still having problems, check out the links I’m dropping you down below. There is more information about the heap usage.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_FreeRTOS_Debug_Guide.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/quick-reference-guide/MCUXpresso_IDE_FreeRTOS_Debug_Guide.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2017/09/18/using-multiple-memory-regions-with-the-freertos-heap/" target="_blank"&gt;https://mcuoneclipse.com/2017/09/18/using-multiple-memory-regions-with-the-freertos-heap/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2020/11/15/steps-to-use-freertos-with-newlib-reentrant-memory-allocation/" target="_blank"&gt;https://mcuoneclipse.com/2020/11/15/steps-to-use-freertos-with-newlib-reentrant-memory-allocation/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps, Daniel.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 20:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-LWIP-MEBDTLS/m-p/1442922#M62890</guid>
      <dc:creator>DanielRuvalcaba</dc:creator>
      <dc:date>2022-04-12T20:52:42Z</dc:date>
    </item>
  </channel>
</rss>

