<?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>MCX Microcontrollers中的主题 Re: FRDM-MCXN947</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1918890#M1388</link>
    <description>&lt;P&gt;hi,&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237396" target="_self" aria-label="View Profile of Deidan91"&gt;&lt;SPAN class=""&gt;Deidan91&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm glad I could help you. If your question is solved, please help me to fill the feedback as resolved, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Any new issues,welcome to create the new case.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 01:49:37 GMT</pubDate>
    <dc:creator>Joey_z</dc:creator>
    <dc:date>2024-07-29T01:49:37Z</dc:date>
    <item>
      <title>FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1914935#M1285</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm facing a problem with my FRDM-MCXN947. What I'm trying to do is to boot an example program from the W25Q64JW external flash memory.&lt;/P&gt;&lt;P&gt;In order to do this, I've done the steps explained in the following user guide:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/MCX-Microcontrollers-Knowledge/Running-code-from-external-memory-with-MCX-N94x/ta-p/1792204" target="_blank"&gt;Running code from external memory with MCX N94x - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, I've managed to do the job also using MCUXpresso Secure Provisioning Tool 8.&lt;/P&gt;&lt;P&gt;With the led_blinky example, everything went well and the code is running correctly from the external flash.&lt;/P&gt;&lt;P&gt;So I've tried to execute a more complex example that involves ML/AI and TensorFlow Lite library. The example from the SDK is&amp;nbsp;&lt;EM&gt;frdmmcxn947_mpp_camera_persondetect_view_tflm.&lt;/EM&gt;My goal is to modify this example with a more complex model and so I need the external flash, because the 2 MB internal memory is not sufficient to contain my custom model.&lt;/P&gt;&lt;P&gt;Using the example code with its defaul model, the code starts correctly but when reaching a particular instruction, then an hardfault is triggered.&lt;/P&gt;&lt;P&gt;Looking at the disassembly code, the hardfault happens here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deidan91_6-1721729636986.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289894iC4D1ADB32EBD9281/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_6-1721729636986.png" alt="Deidan91_6-1721729636986.png" /&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="Deidan91_0-1721729141216.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289887i55C1EEE6AD6D60F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_0-1721729141216.png" alt="Deidan91_0-1721729141216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is seems related to some malloc/free function into newlibNano library. I've checked the heap/stack allocation and it seems ok.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deidan91_7-1721729720254.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289895i033158FB07317039/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_7-1721729720254.png" alt="Deidan91_7-1721729720254.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;These are my configurations into the project settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deidan91_1-1721729250921.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289888iA7A60E7EF8B08F7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_1-1721729250921.png" alt="Deidan91_1-1721729250921.png" /&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="Deidan91_2-1721729281190.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289890i37313DFB84E1DC5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_2-1721729281190.png" alt="Deidan91_2-1721729281190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deidan91_3-1721729335558.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289891iD705E0D7F2C48075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_3-1721729335558.png" alt="Deidan91_3-1721729335558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deidan91_4-1721729386163.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289892i8D0086502518E1D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_4-1721729386163.png" alt="Deidan91_4-1721729386163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the configuration from the Secure Provisioning tool&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deidan91_5-1721729414896.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289893i20BB747C226BE7F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deidan91_5-1721729414896.png" alt="Deidan91_5-1721729414896.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to change heap/stack size, changing memory placement, changing the newlib with redlib, but nothing worked and I'm struggling with this problem.&lt;/P&gt;&lt;P&gt;I hope someone can help me with this particular task.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 10:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1914935#M1285</guid>
      <dc:creator>Deidan91</dc:creator>
      <dc:date>2024-07-23T10:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1917889#M1367</link>
      <description>&lt;P&gt;hi,&lt;A id="link_7" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237396" target="_self" aria-label="View Profile of Deidan91"&gt;&lt;SPAN class=""&gt;Deidan91&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you, I will gladly help you with this.&lt;/P&gt;
&lt;P&gt;I tried to use blhost to load the frdmmcxn947_mpp_camera_persondetect_view_tflm program into the external flash and succeeded. I recorded a video of the operation process and put it in the attachment. There are some precautions during the operation.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I put the cmpa_bin.bin file in the attachment. By writing this file, you can configure the program to start from the external flash.&lt;/LI&gt;
&lt;LI&gt;The area of ​​the external flash erased by the flash-erase-region command must be larger than the size of the executable program.&lt;/LI&gt;
&lt;LI&gt;I have put all the blhost commands used in the attachment.&lt;/LI&gt;
&lt;LI&gt;If you re-enable the on-chip loader, you need to use the blhost command to re-load the cmpa_re_bin.bin file instead of the cmpa_bin.bin file.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Wish it helps you.&lt;/P&gt;
&lt;P&gt;If you still have question about it,please kindly let me know.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 07:18:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1917889#M1367</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-26T07:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1918193#M1378</link>
      <description>Hi, thank you for your help! With the video and the config files the firmware worked correctly.&lt;BR /&gt;I've understood what I was missing and the wrong things in my options. :).&lt;BR /&gt;I really appreciated your help and the amonut of the infos you gave me, thanks!&lt;BR /&gt;Best regards.</description>
      <pubDate>Fri, 26 Jul 2024 14:48:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1918193#M1378</guid>
      <dc:creator>Deidan91</dc:creator>
      <dc:date>2024-07-26T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1918890#M1388</link>
      <description>&lt;P&gt;hi,&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237396" target="_self" aria-label="View Profile of Deidan91"&gt;&lt;SPAN class=""&gt;Deidan91&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm glad I could help you. If your question is solved, please help me to fill the feedback as resolved, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Any new issues,welcome to create the new case.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 01:49:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/1918890#M1388</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-29T01:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-MCXN947</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/2012593#M2169</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236188"&gt;@Joey_z&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested in the external flash on MCXN947. I read this guide&amp;nbsp;&lt;A href="https://community.nxp.com/t5/MCX-Microcontrollers-Knowledge/Running-code-from-external-memory-with-MCX-N94x/ta-p/1792204" target="_blank"&gt;https://community.nxp.com/t5/MCX-Microcontrollers-Knowledge/Running-code-from-external-memory-with-MCX-N94x/ta-p/1792204&lt;/A&gt;&amp;nbsp;and I have some questions:&lt;/P&gt;&lt;P&gt;1. Is the guide in the above link is valid at current time? I ask this question because:&lt;/P&gt;&lt;P&gt;- I see that in the cmpa_template.yaml there are not&amp;nbsp;&lt;STRONG&gt;DEFAULT_BOOT_SOURCE and&amp;nbsp;FLEXSPI_AUTO_PROBE as NXP mentioned&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- I saw you attached video and it is &lt;STRONG&gt;not same&lt;/STRONG&gt; as the guide. The guide said that we need to created&amp;nbsp;&lt;SPAN&gt;QSPI_FLASH and&amp;nbsp;QSPI_FCB, but in your video I did not see this steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- At the step&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Write &amp;nbsp;image and PFR and run demo,&amp;nbsp;&lt;/STRONG&gt;if I want to get output from board, what do I need to do. Assume that I have project &lt;STRONG&gt;tflm_cifar10.&lt;/STRONG&gt; It need this feature because I want to know predictions of model. In the past, I used MIMXRTxxxx board and I could run with debug mode and got output via COM port by using picocom or Teraterm&lt;/P&gt;&lt;P&gt;- At the step&amp;nbsp;&lt;STRONG&gt;Double-check execution from external flash.&amp;nbsp;&lt;/STRONG&gt;Maybe it is related to my above question.&lt;/P&gt;&lt;P&gt;- The guide said that&amp;nbsp;&lt;STRONG&gt;If you want to return the device to run from internal memory, then you need to go back to default values. If there are no modifications, to the ones shown in this document, &amp;nbsp;to the CMPA and CMPA areas, the nxpdebugmbox command can be executed.&amp;nbsp;&lt;/STRONG&gt;I am not clear about this point. Sorry, I am a newbie with board. As my understanding, NXP was saying about back to internal boot by using SPDSK. Whether I can back to internal flash by creating NEW PROJECT from SDK in MCUXpresso IDE (without any MCU settings) and run debug as usual?&lt;/P&gt;&lt;P&gt;Sorry, currently I don't have the board in hand, but it is some doubts about external flash. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 06:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/FRDM-MCXN947/m-p/2012593#M2169</guid>
      <dc:creator>nnxxpp</dc:creator>
      <dc:date>2024-12-12T06:51:47Z</dc:date>
    </item>
  </channel>
</rss>

