<?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: Trouble with creating bootable image for RT1064 under Keil uVision in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1619488#M24203</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214256"&gt;@Micha2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look this &lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Generating-a-Bootable-Image-for-the-RT1050/ta-p/1123079" target="_self"&gt;link&lt;/A&gt;. This post says that first you must configure the flash in order to read anything else.&lt;/P&gt;
&lt;P&gt;However, you could try to use Secure Provisioning tool or MCUBootUtility.&lt;/P&gt;
&lt;P&gt;You can find this steps on the documentation.&lt;/P&gt;
&lt;P&gt;Keil MDK 5&lt;BR /&gt;1. In the toolbar, select iled_blinky flexspi_nor_debug target.&lt;BR /&gt;2. In Project &amp;gt; Options &amp;gt; "*C/C++*", disable define symbol&lt;BR /&gt;XIP_BOOT_HEADER_ENABLE=0 (set to 0).&lt;BR /&gt;3. In Project &amp;gt; Options &amp;gt; Linker, remove all --keep options and the predefined symbol XIP_BOOT_HEADER_ENABLE. As a result, Misc. controls contains only --remove.&lt;BR /&gt;4. Build the image.&lt;/P&gt;
&lt;P&gt;Since it works on MCUxpresso IDE, I recommend you to use it instead of Keil.&lt;/P&gt;
&lt;P&gt;Let me know if this helps you.&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 21:36:48 GMT</pubDate>
    <dc:creator>Miguel04</dc:creator>
    <dc:date>2023-03-21T21:36:48Z</dc:date>
    <item>
      <title>Trouble with creating bootable image for RT1064 under Keil uVision</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1616584#M24148</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;currently, I’m trying to build an image from the emwin_gui_demo sample program, which I can transfer with the Flashloader.&lt;BR /&gt;As development board I use the MIMXRT1064-EVK and as IDE Keil µVision under Window 10. The program code is in the flash memory at address&lt;BR /&gt;0x70000000 and the variables are in the external SD-RAM (0x80000000).&lt;/P&gt;&lt;P&gt;When I load the code with Keil uVision enviromnent, everything works fine. After Power On cycle the code still executes successfully.&lt;/P&gt;&lt;P&gt;Then I try to build a boot image, there are problems, the image does not run.&lt;/P&gt;&lt;P&gt;Here are my steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I set the following defines in uVision (C/C++ in Options for Target):&lt;BR /&gt;&lt;LI-SPOILER&gt;XIP_BOOT_HEADER_ENABLE=0, XIP_BOOT_HEADER_DCD_ENABLE=0&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;Then I remove in Linker Misc controls (Linker in Options for Target) subsequent linker instructions:&lt;BR /&gt;&lt;LI-SPOILER&gt;--keep=*(.boot_hdr.dcd_data) --predefine="-DXIP_BOOT_HEADER_ENABLE=1"&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;I generated by uVision the emwin_gui_demo.hex and further with srec_cat.exe the emwin_gui_demo.srec&lt;BR /&gt;&lt;LI-SPOILER&gt;srec_cat.exe #H -Intel -o $H@P.srec -Motorola&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;Creating binary file with elftosb und emwin_gui_demo.srec:&lt;BR /&gt;&lt;LI-SPOILER&gt;&lt;P&gt;elftosb.exe -f imx -V -c imx-flexspinor-normal-unsigned.bd -o ivt_flexspi_nor_graph.bin emwin_gui_demo.srec&lt;/P&gt;&lt;P&gt;response:&lt;BR /&gt;Section: 0x0&lt;BR /&gt;iMX bootable image generated successfully&lt;/P&gt;&lt;/LI-SPOILER&gt;imx-flexspinor-normal-unsigned.bd:&lt;BR /&gt;&lt;LI-SPOILER&gt;&lt;P&gt;options {&lt;BR /&gt;flags = 0x00;&lt;BR /&gt;startAddress = 0x70000000;&lt;BR /&gt;ivtOffset = 0x1000;&lt;BR /&gt;initialLoadSize = 0x2000;&lt;BR /&gt;DCDFilePath = "dcd.bin";&lt;BR /&gt;# Note: This is required if the default entrypoint is not the Reset_Handler&lt;BR /&gt;# Please set the entryPointAddress to the base address of vector table&lt;BR /&gt;//entryPointAddress = 0x70002000;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;sources {&lt;BR /&gt;elfFile = extern(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;section (0)&lt;BR /&gt;{&lt;BR /&gt;}&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;Creating Boot Image boot_image.sb:&lt;BR /&gt;&lt;LI-SPOILER&gt;elftosb.exe -f kinetis -V -c program_flexspinor_image_qspinor.bd -o boot_image.sb ivt_flexspi_nor_graph_nopadding.bin&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;LI&gt;Then I switch the Board to serial download mode and start the flashloader.&lt;/LI&gt;&lt;LI&gt;Then programming SB file via USB connection:&lt;BR /&gt;&lt;LI-SPOILER&gt;blhost.exe -u -- receive-sb-file boot_image.sb&lt;BR /&gt;&lt;BR /&gt;response:&lt;BR /&gt;Response status = 0 (0x0) Success.&lt;BR /&gt;Wrote 212368 of 212368 bytes.&lt;/LI-SPOILER&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After power on the image is not executable.&lt;/P&gt;&lt;P&gt;Then I used MCUXpresso IDE and build the example program emwin_gui_demo from the SDK package.&lt;BR /&gt;I generated the emwin_gui_demo.s19 code and renamed it to emwin_gui_demo.srec.&lt;BR /&gt;Then I used the same steps 4 to 7.&lt;BR /&gt;The code still executes successfully.&lt;/P&gt;&lt;P&gt;Why does Keil's srec code not work?&lt;/P&gt;&lt;P&gt;Can anybody help me figure out what the problem is? Many thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Micha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:00:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1616584#M24148</guid>
      <dc:creator>Micha2</dc:creator>
      <dc:date>2023-03-16T09:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with creating bootable image for RT1064 under Keil uVision</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1619488#M24203</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214256"&gt;@Micha2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look this &lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Generating-a-Bootable-Image-for-the-RT1050/ta-p/1123079" target="_self"&gt;link&lt;/A&gt;. This post says that first you must configure the flash in order to read anything else.&lt;/P&gt;
&lt;P&gt;However, you could try to use Secure Provisioning tool or MCUBootUtility.&lt;/P&gt;
&lt;P&gt;You can find this steps on the documentation.&lt;/P&gt;
&lt;P&gt;Keil MDK 5&lt;BR /&gt;1. In the toolbar, select iled_blinky flexspi_nor_debug target.&lt;BR /&gt;2. In Project &amp;gt; Options &amp;gt; "*C/C++*", disable define symbol&lt;BR /&gt;XIP_BOOT_HEADER_ENABLE=0 (set to 0).&lt;BR /&gt;3. In Project &amp;gt; Options &amp;gt; Linker, remove all --keep options and the predefined symbol XIP_BOOT_HEADER_ENABLE. As a result, Misc. controls contains only --remove.&lt;BR /&gt;4. Build the image.&lt;/P&gt;
&lt;P&gt;Since it works on MCUxpresso IDE, I recommend you to use it instead of Keil.&lt;/P&gt;
&lt;P&gt;Let me know if this helps you.&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 21:36:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1619488#M24203</guid>
      <dc:creator>Miguel04</dc:creator>
      <dc:date>2023-03-21T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with creating bootable image for RT1064 under Keil uVision</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1619716#M24213</link>
      <description>&lt;P&gt;Hi Miguel04,&lt;/P&gt;&lt;P&gt;The background of the problem is that we have developed our own board with a MIMXRT105S processor.&lt;BR /&gt;The firmware for this board has been developed under Keil µVision and uses the emWin library.&lt;BR /&gt;Everything works fine in the Keil development environment, but when we create an image and flash it to the processor, it will not boot.&lt;/P&gt;&lt;P&gt;Therefore, a MIMXRT1064-EVK with the sample program emwin_gui_demo was used for troubleshooting.&lt;BR /&gt;The same problem occurred here, boot images generated by Keil uVision cannot be executed.&lt;/P&gt;&lt;P&gt;Using MCUxpresso IDE is not an alternative for us.&lt;/P&gt;&lt;P&gt;Your recommendation of setting "XIP_BOOT_HEADER_ENABLE=0" and removing all "--keep options" has already been taken into account.&lt;/P&gt;&lt;P&gt;Best Regards, Micha.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 10:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Trouble-with-creating-bootable-image-for-RT1064-under-Keil/m-p/1619716#M24213</guid>
      <dc:creator>Micha2</dc:creator>
      <dc:date>2023-03-22T10:31:53Z</dc:date>
    </item>
  </channel>
</rss>

