<?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: Building valid binaries for MIMXRT1064-EVK in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1690201#M209484</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219707"&gt;@PMunch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I write a document for you:&lt;/P&gt;
&lt;P&gt;RT Linux SDK build based on Ubuntu:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-Linux-SDK-build-based-on-Ubuntu/ta-p/1690185" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-Linux-SDK-build-based-on-Ubuntu/ta-p/1690185&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you follow it and meet issues, just create the new question post and let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 08:56:06 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2023-10-04T08:56:06Z</dc:date>
    <item>
      <title>Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1679584#M208432</link>
      <description>&lt;P&gt;Hi, I'm struggling a bit with creating binaries which I can upload to the MIMXRT1064-EVK. When I plug in the board I can mount the drive and see the DETAILS.TXT and PRODINFO.HTM files. In the ARM GCC toolchain I downloaded I find example projects like hello_world and led_blink which contains e.g. led_blink.bin. Copying this file to the mounted drive makes the board reflash itself with the file and then delete the file from the drive. However when I run the supplied scripts like `./build_release.sh` they create `.elf` files. Running `arm-none-eabi-objcopy -v -O binary iled_blinky.elf iled_blinky.bin` to create a binary file (or hex file with the correct -O flag) doesn't seem to work. It creates the files, but if I try to copy one of these files to the drive they linger for a while before I get a FAIL.TXT file with the content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;error: The transfer timed out.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;type: transient, user&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I can't find any documentation about how you're supposed to go from the `.elf` to the `.bin` stage successfully. Please advise.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 11:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1679584#M208432</guid>
      <dc:creator>PMunch</dc:creator>
      <dc:date>2023-06-30T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680131#M208495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219707"&gt;@PMunch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I highly recommend you refer to this application note to generate the .bin file, and the method to download the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12108.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12108.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You also can use the MCUBootutility tool or the SPT tool to download the code instead of the MSD method.&lt;/P&gt;
&lt;P&gt;1. MCUbootutility:&lt;BR /&gt;&lt;A href="https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v5.1.0" target="_blank"&gt;https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v5.1.0&lt;/A&gt;&lt;BR /&gt;the related user manual is:&lt;BR /&gt;&lt;A href="https://github.com/JayHeng/NXP-MCUBootUtility" target="_blank"&gt;https://github.com/JayHeng/NXP-MCUBootUtility&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. SPT&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING" target="_blank"&gt;https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you also can use the IDE + MIMXRT1064-EVK on board debugger to download the code, more details, you can refer to the SDK doc.&lt;/P&gt;
&lt;P&gt;Please try it on your side.&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 04:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680131#M208495</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-03T04:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680212#M208510</link>
      <description>&lt;P&gt;Unfortunately this doesn't bring me any closer to a solution. The build step listed in that document is simply "Build the project and generate an image. You can find the hello_world.bin at following location". This is of course completely useless when the problem is how to build the project, or rather how to go from the `.elf` file that the supplied build process creates to the `.bin` file which I actually need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does mention a `elftosb` command line utility, but it seems to require a `.bd` file which isn't anywhere to be found in the toolchain I downloaded.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 06:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680212#M208510</guid>
      <dc:creator>PMunch</dc:creator>
      <dc:date>2023-07-03T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680421#M208538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219707"&gt;@PMunch&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please take easy, in fact, it is not difficult to make it works with the binary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Just the RT chip is not like the normal MCU, it needs the bin file have the FCB, IVT, BD, app code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Now, you want to use&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;ARM GCC toolchain, right? Any other IDE want to use or not?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I mean, mcuxpresso IDE, IAR or the keil, that the SDK all include the file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; If you need the ARM GCC method, I will also tell you step by step to generate the bin file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; About the download, I highly recommend you use the MCUbootutility or the SPT, I prefer to use the MCUbootutility tool, very easy to use. Just need the board enter the serial download mode.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And this tool can help you add the bd file, elftosb, blhost itself, you don't need to input the command, you just can see the log is OK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680421#M208538</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-03T10:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680447#M208540</link>
      <description>&lt;P&gt;I don't doubt that it's easy, I just can't find any documentation for it, which makes it close to impossible to figure out what is going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And correct, I'm using the ARM GCC toolchain without any IDE. I'm also on Linux so I believe the MCUbootutility is out of the question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gotten further though. Turns out the flexspi_nor versions work. Basically I need to build those targets, then run objcopy on the resulting elf files to get bin files. And these versions are accepted by the drag and drop flasher. However I'm not certain as to why only these files are able to be flashed as there doesn't seem to be a whole lot of documentation about what the different targets actually are.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680447#M208540</guid>
      <dc:creator>PMunch</dc:creator>
      <dc:date>2023-07-03T10:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680808#M208579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219707"&gt;@PMunch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Your mentioned linux situation is really lack the document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you can wait, I will write a community document for it these days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; You need to use&amp;nbsp;&lt;SPAN&gt;flexspi_nor, as you know, the RT1064 internal flash in fact is also the winbond flash, which need to communicate through the flexspi interface, so to the bin image, need to add the FCB which is used to configure the flexSPI, then IVT for boot, DCD for sdram config if you need it, app is the real application code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Anyway, thanks for your advice, I will write the detail steps in a community document based on linux ubuntu with the&amp;nbsp;ARM GCC toolchain.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Any details you want, just let me know, then I can consider to add it to my document, thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 02:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1680808#M208579</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-04T02:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Building valid binaries for MIMXRT1064-EVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1690201#M209484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219707"&gt;@PMunch&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I write a document for you:&lt;/P&gt;
&lt;P&gt;RT Linux SDK build based on Ubuntu:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-Linux-SDK-build-based-on-Ubuntu/ta-p/1690185" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-Linux-SDK-build-based-on-Ubuntu/ta-p/1690185&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you follow it and meet issues, just create the new question post and let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 08:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-valid-binaries-for-MIMXRT1064-EVK/m-p/1690201#M209484</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-10-04T08:56:06Z</dc:date>
    </item>
  </channel>
</rss>

