<?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: SW does not boot with hex file in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359442#M61754</link>
    <description>&lt;P&gt;I think, the linker script can influence this, too.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;P&gt;This is my modifications: (commented are the originals)&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt;m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt;m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0&lt;BR /&gt;m_data (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00006000&lt;BR /&gt;m_data_2 (RW) : ORIGIN = 0x20002000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;//m_data (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00004000&lt;BR /&gt;//m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The left is the hex what I read back, the right is what I flash.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ktbalazs_0-1634812686441.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159764i0C6406B337468EF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ktbalazs_0-1634812686441.png" alt="ktbalazs_0-1634812686441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 10:38:39 GMT</pubDate>
    <dc:creator>ktbalazs</dc:creator>
    <dc:date>2021-10-21T10:38:39Z</dc:date>
    <item>
      <title>SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1358927#M61741</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a well working SW on a MK22FN256VLH12, everything working fine if I flash .ELF file to the controller.&lt;/P&gt;&lt;P&gt;But if I flash a .hex file with eg. Flash Lite, the SW does not start, it seems that it stayed in reset state.&lt;/P&gt;&lt;P&gt;I restart the power supply, but it does not help.&lt;/P&gt;&lt;P&gt;I modified the flash config, like this:&lt;/P&gt;&lt;P&gt;* Flash Configuration */&lt;BR /&gt;.section .FlashConfig, "a"&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFFFF&lt;BR /&gt;.long 0xFFFFFBFE&lt;/P&gt;&lt;P&gt;The Watchdog is turned off in the startup file, too.&lt;/P&gt;&lt;P&gt;Nothing helps.&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 20:35:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1358927#M61741</guid>
      <dc:creator>ktbalazs</dc:creator>
      <dc:date>2021-10-20T20:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359197#M61745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192647"&gt;@ktbalazs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;What's the debugger you are using with the&amp;nbsp;&lt;SPAN&gt;Flash Lite?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; After you download the .hex code to your K22, do you also try to readout the flash memory, whether it is the same as your write .hex?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Please also tell me which IDE you used to generate the .hex?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; What's the k22 board you are using? FRDM-K22?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Do you have the JLINK or not? I think you also can try the JLINK to download the .hex, whether the boot works ok or not?&lt;/SPAN&gt;&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>Thu, 21 Oct 2021 05:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359197#M61745</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-10-21T05:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359389#M61748</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;Thank you for your extremly fast answer.&lt;/P&gt;&lt;P&gt;I use Segger Jlink Edu 11.0.&lt;/P&gt;&lt;P&gt;I did not try to read out the memory. How can I make it? Witch JFlash?&lt;/P&gt;&lt;P&gt;The Kinetis Studio IDE generate the .hex file (Intel Hex)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:27:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359389#M61748</guid>
      <dc:creator>ktbalazs</dc:creator>
      <dc:date>2021-10-21T09:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359400#M61749</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192647"&gt;@ktbalazs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Good, you can use the JFLASH to readout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You are using the old KDS, that is very old.&lt;/P&gt;
&lt;P&gt;As I know, your K22 can support the new SDK and the MCUXpresso IDE now, please update it.&lt;/P&gt;
&lt;P&gt;You can find the new SDK from this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/en/builder?hw=FRDM-K22F" target="_blank"&gt;https://mcuxpresso.nxp.com/en/builder?hw=FRDM-K22F&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;MCUxpresso IDE download link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE" target="_blank"&gt;https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359400#M61749</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-10-21T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359403#M61751</link>
      <description>&lt;P&gt;This project is almost ready.&lt;/P&gt;&lt;P&gt;Do you think, that the fresh SDK implementation would be easy and fast?&lt;/P&gt;&lt;P&gt;And will the new SDK solve this problem?&lt;/P&gt;&lt;P&gt;We use the old SDK in another project and there was not problem like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:50:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359403#M61751</guid>
      <dc:creator>ktbalazs</dc:creator>
      <dc:date>2021-10-21T09:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359407#M61753</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192647"&gt;@ktbalazs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Old SDK and the IDE may have bugs, that why I recommend you use the newest SDK and IDE to download code.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 09:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359407#M61753</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-10-21T09:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359442#M61754</link>
      <description>&lt;P&gt;I think, the linker script can influence this, too.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;P&gt;This is my modifications: (commented are the originals)&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt;m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt;m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0003FBF0&lt;BR /&gt;m_data (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00006000&lt;BR /&gt;m_data_2 (RW) : ORIGIN = 0x20002000, LENGTH = 0x00008000&lt;/P&gt;&lt;P&gt;//m_data (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x00004000&lt;BR /&gt;//m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00008000&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The left is the hex what I read back, the right is what I flash.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ktbalazs_0-1634812686441.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159764i0C6406B337468EF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ktbalazs_0-1634812686441.png" alt="ktbalazs_0-1634812686441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 10:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359442#M61754</guid>
      <dc:creator>ktbalazs</dc:creator>
      <dc:date>2021-10-21T10:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: SW does not boot with hex file</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359775#M61757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192647"&gt;@ktbalazs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;From your right side which should be the original code, it is totally wrong, as the original app 0X40C is the special area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is the mcuxpresso IDE generated .hex.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1634870884323.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159825iA6A9E7E05A508CB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1634870884323.png" alt="kerryzhou_0-1634870884323.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In my memory, the KDS generate .hex should be the .s19 in default, so you may try to modify the .hex to .s19. Then open it again, whether the 0X400 is all 0XFF except the 0X40C is 0XFE.&lt;/P&gt;
&lt;P&gt;So, I recommend you use the MCUXPresso IDE with the newest SDK.&lt;/P&gt;
&lt;P&gt;As even the KDS IDE have bugs, it won't be fixed, MCUXpresso is used to replace the KDS for the kinetis, thanks.&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 02:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SW-does-not-boot-with-hex-file/m-p/1359775#M61757</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-10-22T02:50:18Z</dc:date>
    </item>
  </channel>
</rss>

