<?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: RT1051 external flash programming production line in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186224#M11347</link>
    <description>&lt;P&gt;Hello Marcos,&lt;/P&gt;&lt;P&gt;I had a similar issue than you.&lt;BR /&gt;NXP MCU Boot util is only a graphical user interface for blhost. You see the commands in the terminal window which is opened together with the GUI.&lt;BR /&gt;The GUI seems not to be very stable and for production it is still to complicated. So, I executed all commands I liked to do in the GUI and saved the resulting blhost commands from the terminal window in a batch file. I improved it a bit by hand to pass the file to write as a parameter and have now a single click solution.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;This is working for me:&lt;BR /&gt;call :setsize %1&lt;BR /&gt;echo The File has a aize of %size% bytes&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;blhost -t 50000 -u 0x1FC9,0x013D -j -- get-property 1 0&lt;BR /&gt;blhost -t 50000 -u 0x1FC9,0x013D -j -- get-property 17 0&lt;BR /&gt;blhost -t 5242000 -u 0x1FC9,0x013D -j -- load-image .\targets\MIMXRT1176\ivt_flashloader.bin&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- get-property 1 0&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- efuse-read-once 22&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- read-memory 1074675776 4 .\vectors\readReg.dat 0&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- fill-memory 538976256 4 3482320897 word&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- configure-memory 9 538976256&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- fill-memory 538976256 4 3229626375 word&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- fill-memory 538976260 4 0 word&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- configure-memory 9 538976256&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- read-memory 805307392 1024 .\vectors\flexspiNorCfg.dat 9&lt;BR /&gt;blhost -t 2048000 -u 0x15A2,0x0073 -j -- flash-erase-region 805306368 %size% 9&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- write-memory 805307392 %1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;:setsize&lt;BR /&gt;set size=%~z1&lt;BR /&gt;goto :eof&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2020 20:17:20 GMT</pubDate>
    <dc:creator>Masmiseim</dc:creator>
    <dc:date>2020-11-19T20:17:20Z</dc:date>
    <item>
      <title>RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186213#M11345</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I have developed a product with a iMX RT1051 microcontroller.&lt;/P&gt;&lt;P&gt;The product is working well, we are testing some samples on the field, it's pretty good!&lt;/P&gt;&lt;P&gt;Now we are starting a large scale production and I have an issue to programming the external flash memory.&lt;/P&gt;&lt;P&gt;I am trying to do it using NXM MCU Boot Utility.&lt;/P&gt;&lt;P&gt;So, I am following the steps below:&lt;/P&gt;&lt;P&gt;- Connect a new PCB in a PC by USB port (OK)&lt;/P&gt;&lt;P&gt;- Configure the Boot device configuration to QSPI memory (OK)&lt;/P&gt;&lt;P&gt;- Burn the BT_FUSE_SEL from 0 to 1 (ok)&lt;/P&gt;&lt;P&gt;- Load the .axf image (ok)&lt;/P&gt;&lt;P&gt;When I try to program the .axf image (than I load on Image Generation Sequence), an error appears:&lt;/P&gt;&lt;P&gt;"Failed to flash bootable image into external memory, Please reset bord and try again"&lt;/P&gt;&lt;P&gt;However, if I program the the example flexspi nor polling transfer on MCUExpress (SWD), all the steps above work, and it's possible to program the image.&lt;/P&gt;&lt;P&gt;I would like to program the product using only the MCU Boot Utility, MCUExpress is not good for production line.&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 19:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186213#M11345</guid>
      <dc:creator>marcos_chiele</dc:creator>
      <dc:date>2020-11-19T19:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186223#M11346</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try not programming the BT_FUSE_SEL option to see whether it then works.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or product development requirements&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 20:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186223#M11346</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-11-19T20:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186224#M11347</link>
      <description>&lt;P&gt;Hello Marcos,&lt;/P&gt;&lt;P&gt;I had a similar issue than you.&lt;BR /&gt;NXP MCU Boot util is only a graphical user interface for blhost. You see the commands in the terminal window which is opened together with the GUI.&lt;BR /&gt;The GUI seems not to be very stable and for production it is still to complicated. So, I executed all commands I liked to do in the GUI and saved the resulting blhost commands from the terminal window in a batch file. I improved it a bit by hand to pass the file to write as a parameter and have now a single click solution.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;This is working for me:&lt;BR /&gt;call :setsize %1&lt;BR /&gt;echo The File has a aize of %size% bytes&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;blhost -t 50000 -u 0x1FC9,0x013D -j -- get-property 1 0&lt;BR /&gt;blhost -t 50000 -u 0x1FC9,0x013D -j -- get-property 17 0&lt;BR /&gt;blhost -t 5242000 -u 0x1FC9,0x013D -j -- load-image .\targets\MIMXRT1176\ivt_flashloader.bin&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- get-property 1 0&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- efuse-read-once 22&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- read-memory 1074675776 4 .\vectors\readReg.dat 0&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- fill-memory 538976256 4 3482320897 word&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- configure-memory 9 538976256&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- fill-memory 538976256 4 3229626375 word&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- fill-memory 538976260 4 0 word&lt;BR /&gt;blhost -t 50000 -u 0x15A2,0x0073 -j -- configure-memory 9 538976256&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- read-memory 805307392 1024 .\vectors\flexspiNorCfg.dat 9&lt;BR /&gt;blhost -t 2048000 -u 0x15A2,0x0073 -j -- flash-erase-region 805306368 %size% 9&lt;BR /&gt;blhost -t 5242000 -u 0x15A2,0x0073 -j -- write-memory 805307392 %1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;:setsize&lt;BR /&gt;set size=%~z1&lt;BR /&gt;goto :eof&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 20:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186224#M11347</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2020-11-19T20:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186711#M11360</link>
      <description>&lt;P&gt;Hello Masmisein, thanks so much for the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tryed to follow the "manual" steps that you sent me. Unfortunately, it's not working yet.&lt;/P&gt;&lt;P&gt;Here you can see the error:&lt;/P&gt;&lt;P&gt;Executing: C:\Users\mchiele\Desktop\NXP-MCUBootUtility-master\tools\blhost2_3\win\blhost -t 2048000 -u 0x15A2,0x0073 -j -- flash-erase-region 1610612736 136084 9&lt;BR /&gt;toolStatus: 0&lt;BR /&gt;commandOutput: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "command" : "flash-erase-region",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "response" : [],&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "status" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "20106 (0x4E8A) kStatus_FlexSPINOR_CommandFailure",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value" : 20106&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know what is happening.&lt;/P&gt;&lt;P&gt;It only Works after&amp;nbsp;I execute the Flash SPI example in MCUExpress...&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 13:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186711#M11360</guid>
      <dc:creator>marcos_chiele</dc:creator>
      <dc:date>2020-11-20T13:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186713#M11361</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tryed to program the microcontroller without set the fuse, but it's not working yet.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 13:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1186713#M11361</guid>
      <dc:creator>marcos_chiele</dc:creator>
      <dc:date>2020-11-20T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1190400#M11446</link>
      <description>&lt;P&gt;Hello man.&lt;/P&gt;&lt;P&gt;Now it's working fine, I had to define XIP_BOOT_HEADER_ENABLE 0.&lt;/P&gt;&lt;P&gt;Now I will try to do a "one click" solution as you had suggested me.&lt;/P&gt;&lt;P&gt;Could you share your .bat file for reference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 18:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1190400#M11446</guid>
      <dc:creator>marcos_chiele</dc:creator>
      <dc:date>2020-11-27T18:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: RT1051 external flash programming production line</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1190560#M11453</link>
      <description>&lt;P&gt;Hello marcos_chiele,&lt;/P&gt;&lt;P&gt;my example was for the iMXRT1170 with Adesto Octo-Flash. If you use a different controller with a different flash your script will look slightly different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to create your own script for your board. This is quite simple; just do all the steps you like to do in the NXP MCU Boot utility. You see the commands which are executed in the terminal windows which starts together with the program. Copy all the commands to your batch file and remove the replies (just the blhost commands should remain).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I extended the script to pass the bin file as an argument. The size is also calculated in the script. You can find my whole script in my last post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 11:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1051-external-flash-programming-production-line/m-p/1190560#M11453</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2020-11-29T11:14:25Z</dc:date>
    </item>
  </channel>
</rss>

