<?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: MemManage Handler occurred on platform RT1062 with FreeRTOS in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1673279#M207917</link>
    <description>&lt;P&gt;Hi Omar:&lt;/P&gt;
&lt;P&gt;We found this issue is related to heap and stack region settings in&amp;nbsp;lwip_httpscli_ota_enet example code. By default, both heap and stack are put into Default region, which is SRAM_DTC in this example project. It has no problem with smaller image size, but if firmware image is larger than specific size (ex: 1MB), it will cause system crash during flash programming. By setting heap to SRAM_DTC, and setting stack to SRAM_ITC (and enlarged heap to 200K+), this code is able to run normally without issue.&lt;/P&gt;
&lt;P&gt;I think this should be a configuration issue with default project settings, maybe it is necessary to report to IDE team or SDK team to modify this configuration in the future release.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joey_weng_0-1687328205463.png" style="width: 804px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228674i7F05725514A58A8E/image-dimensions/804x645?v=v2" width="804" height="645" role="button" title="joey_weng_0-1687328205463.png" alt="joey_weng_0-1687328205463.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;joey_weng_0-1687328205463.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 06:20:10 GMT</pubDate>
    <dc:creator>joey_weng</dc:creator>
    <dc:date>2023-06-21T06:20:10Z</dc:date>
    <item>
      <title>MemManage Handler occurred on platform RT1062 with FreeRTOS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1668873#M207556</link>
      <description>&lt;P&gt;Hi Sir:&lt;/P&gt;&lt;P&gt;The MCU will occurred the MemManage fault after executed a specific program(on web page OTA function during erase flash), this issue wase not happens on the EVM board,below show as register status after fault occurred:&lt;/P&gt;&lt;P&gt;SDK version:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_1-1686714841649.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227554iF3DE095F7FE93AD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_1-1686714841649.png" alt="EdwardLiao33_1-1686714841649.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_1-1686714841649.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;FreeRTOS version: V10.3.0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_3-1686714915077.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227557iEA65E34AC6ABCFF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_3-1686714915077.png" alt="EdwardLiao33_3-1686714915077.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_3-1686714915077.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_4-1686714923379.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227558iD2CEF57E1C9A1A20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_4-1686714923379.png" alt="EdwardLiao33_4-1686714923379.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_4-1686714923379.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_5-1686714932074.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227560iCD4EC39FCBAB50EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_5-1686714932074.png" alt="EdwardLiao33_5-1686714932074.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_5-1686714932074.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;May I have your&amp;nbsp;recommend for the next step?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 03:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1668873#M207556</guid>
      <dc:creator>Edward-Liao33</dc:creator>
      <dc:date>2023-06-14T03:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: MemManage Handler occurred on platform RT1062 with FreeRTOS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1669719#M207622</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I hope you are well.&lt;/P&gt;&lt;P&gt;The issue you are having is because the processor attempted a load or store at a location that does not permit the operation. Could you please share with me the memory configuration? At the moment of crash, to what direction are you trying to access?&lt;BR /&gt;Additionally, &amp;nbsp;Add the following to the FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;#define configTASK_RETURN_ADDRESS&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 00:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1669719#M207622</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2023-06-15T00:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: MemManage Handler occurred on platform RT1062 with FreeRTOS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1669844#M207633</link>
      <description>&lt;P&gt;Hi Omar:&lt;/P&gt;&lt;P&gt;Thanks for your kindly reply, please see my answer below.&lt;/P&gt;&lt;P&gt;Could you please share with me the memory configuration?&lt;/P&gt;&lt;P&gt;A: Please refer below fig for more details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_0-1686799079250.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227779i7A424BF3A7A342A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_0-1686799079250.png" alt="EdwardLiao33_0-1686799079250.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_0-1686799079250.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_1-1686799079252.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227780iEDF5361F24E20623/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_1-1686799079252.png" alt="EdwardLiao33_1-1686799079252.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_1-1686799079252.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_2-1686799079237.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227781i7F47EBBF8AACBED8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_2-1686799079237.png" alt="EdwardLiao33_2-1686799079237.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_2-1686799079237.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_3-1686799079153.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227783i61C3ACB83AD27C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_3-1686799079153.png" alt="EdwardLiao33_3-1686799079153.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_3-1686799079153.png&lt;/span&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;At the moment of crash, to what direction are you trying to access?&lt;/P&gt;&lt;P&gt;A:&amp;nbsp;&lt;SPAN&gt;An&amp;nbsp; crash occurred before entering the function "mflash_drv_sector_erase_internal". At the moment, input&amp;nbsp; value sector_addr=0x240000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_4-1686799079120.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227784i3216A71E0F9F2355/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_4-1686799079120.png" alt="EdwardLiao33_4-1686799079120.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_4-1686799079120.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_5-1686799079260.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227785i274F33FEC87A0D9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_5-1686799079260.png" alt="EdwardLiao33_5-1686799079260.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_5-1686799079260.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Additionally, &amp;nbsp;Add the following to the FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;#define configTASK_RETURN_ADDRESS&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;A: The constants define has been added on the file. please refer fig below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwardLiao33_6-1686799079606.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227786i710976FA8546D636/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EdwardLiao33_6-1686799079606.png" alt="EdwardLiao33_6-1686799079606.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;EdwardLiao33_6-1686799079606.png&lt;/span&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;Best Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 03:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1669844#M207633</guid>
      <dc:creator>Edward-Liao33</dc:creator>
      <dc:date>2023-06-15T03:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: MemManage Handler occurred on platform RT1062 with FreeRTOS</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1673279#M207917</link>
      <description>&lt;P&gt;Hi Omar:&lt;/P&gt;
&lt;P&gt;We found this issue is related to heap and stack region settings in&amp;nbsp;lwip_httpscli_ota_enet example code. By default, both heap and stack are put into Default region, which is SRAM_DTC in this example project. It has no problem with smaller image size, but if firmware image is larger than specific size (ex: 1MB), it will cause system crash during flash programming. By setting heap to SRAM_DTC, and setting stack to SRAM_ITC (and enlarged heap to 200K+), this code is able to run normally without issue.&lt;/P&gt;
&lt;P&gt;I think this should be a configuration issue with default project settings, maybe it is necessary to report to IDE team or SDK team to modify this configuration in the future release.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joey_weng_0-1687328205463.png" style="width: 804px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228674i7F05725514A58A8E/image-dimensions/804x645?v=v2" width="804" height="645" role="button" title="joey_weng_0-1687328205463.png" alt="joey_weng_0-1687328205463.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;joey_weng_0-1687328205463.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 06:20:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MemManage-Handler-occurred-on-platform-RT1062-with-FreeRTOS/m-p/1673279#M207917</guid>
      <dc:creator>joey_weng</dc:creator>
      <dc:date>2023-06-21T06:20:10Z</dc:date>
    </item>
  </channel>
</rss>

