<?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 Changing K22 Start Address in MCUXPresso IDE in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882012#M52309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the FRDM-K22F development board and I have the freedom_bootloader downloaded and working on the target. I can drag and drop the "led_demo_a000" onto the bootloader via USB and everything works. So, now I try using another demo application which by default is linked to 0x0000 and not 0xA000.&lt;/P&gt;&lt;P&gt;I would have thought this would be an easy change but so far, I must be doing something wrong. The led demo has a custom linker script which should not be needed for such a simple change but may I am wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached where I thought to make the change in the IDE but it doesn't allow me to drag and drop this binary on the target. I can debug the code if I link it to 0x0000 and essentially destroy the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2019 21:20:52 GMT</pubDate>
    <dc:creator>gsinde</dc:creator>
    <dc:date>2019-02-04T21:20:52Z</dc:date>
    <item>
      <title>Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882012#M52309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the FRDM-K22F development board and I have the freedom_bootloader downloaded and working on the target. I can drag and drop the "led_demo_a000" onto the bootloader via USB and everything works. So, now I try using another demo application which by default is linked to 0x0000 and not 0xA000.&lt;/P&gt;&lt;P&gt;I would have thought this would be an easy change but so far, I must be doing something wrong. The led demo has a custom linker script which should not be needed for such a simple change but may I am wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached where I thought to make the change in the IDE but it doesn't allow me to drag and drop this binary on the target. I can debug the code if I link it to 0x0000 and essentially destroy the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 21:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882012#M52309</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-04T21:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882013#M52310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you check that you don't have anything linked below the vector table address?&lt;/P&gt;&lt;P&gt;Check the .map file or the S19 file addresses.&lt;/P&gt;&lt;P&gt;Otherwise: &lt;A class="link-titled" href="https://mcuoneclipse.com/2018/03/03/flash-resident-usb-hid-bootloader-with-the-nxp-kinetis-k22-microcontroller/" title="https://mcuoneclipse.com/2018/03/03/flash-resident-usb-hid-bootloader-with-the-nxp-kinetis-k22-microcontroller/"&gt;Flash-Resident USB-HID Bootloader with the NXP Kinetis K22 Microcontroller | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 06:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882013#M52310</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-02-05T06:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882014#M52311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;Thanks for the reply ( I am reading that document again to see what I may have missed )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Bootloader, I have the jump address set (default)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if !defined(BL_APP_VECTOR_TABLE_ADDRESS)&lt;BR /&gt;#define BL_APP_VECTOR_TABLE_ADDRESS 0xa000&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Application MAP file, I see the vector table correctly located in the text section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0x0000a000 __base_PROGRAM_FLASH = 0xa000&lt;BR /&gt; 0x0000a000 __base_Flash = 0xa000&lt;BR /&gt; 0x00080000 __top_PROGRAM_FLASH = 0x80000&lt;BR /&gt; 0x00080000 __top_Flash = 0x80000&lt;BR /&gt; 0x20000000 __base_SRAM_UPPER = 0x20000000&lt;BR /&gt; 0x20000000 __base_RAM = 0x20000000&lt;BR /&gt; 0x20010000 __top_SRAM_UPPER = 0x20010000&lt;BR /&gt; 0x20010000 __top_RAM = 0x20010000&lt;BR /&gt; 0x1fff0000 __base_SRAM_LOWER = 0x1fff0000&lt;BR /&gt; 0x1fff0000 __base_RAM2 = 0x1fff0000&lt;BR /&gt; 0x20000000 __top_SRAM_LOWER = 0x20000000&lt;BR /&gt; 0x20000000 __top_RAM2 = 0x20000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.text 0x0000a000 0x1718&lt;BR /&gt; FILL mask 0xff&lt;BR /&gt; 0x0000a000 __vectors_start__ = ABSOLUTE (.)&lt;BR /&gt; *(SORT_BY_ALIGNMENT(.isr_vector))&lt;BR /&gt; .isr_vector 0x0000a000 0x168 ./startup/startup_mk22f51212.o&lt;BR /&gt; 0x0000a000 g_pfnVectors&lt;BR /&gt; 0x0000a000 __Vectors&lt;BR /&gt; 0x0000a168 . = ALIGN (0x4)&lt;BR /&gt; 0x0000a168 __section_table_start = .&lt;BR /&gt; 0x0000a168 __data_section_table = .&lt;BR /&gt; 0x0000a168 0x4 LONG 0xb718 LOADADDR (.data)&lt;BR /&gt; 0x0000a16c 0x4 LONG 0x20000000 ADDR (.data)&lt;BR /&gt; 0x0000a170 0x4 LONG 0x10 SIZEOF (.data)&lt;BR /&gt; 0x0000a174 0x4 LONG 0xb718 LOADADDR (.data_RAM2)&lt;BR /&gt; 0x0000a178 0x4 LONG 0x1fff0000 ADDR (.data_RAM2)&lt;BR /&gt; 0x0000a17c 0x4 LONG 0x0 SIZEOF (.data_RAM2)&lt;BR /&gt; 0x0000a180 __data_section_table_end = .&lt;BR /&gt; 0x0000a180 __bss_section_table = .&lt;BR /&gt; 0x0000a180 0x4 LONG 0x20000010 ADDR (.bss)&lt;BR /&gt; 0x0000a184 0x4 LONG 0x21c SIZEOF (.bss)&lt;BR /&gt; 0x0000a188 0x4 LONG 0x1fff0000 ADDR (.bss_RAM2)&lt;BR /&gt; 0x0000a18c 0x4 LONG 0x0 SIZEOF (.bss_RAM2)&lt;BR /&gt; 0x0000a190 __bss_section_table_end = .&lt;BR /&gt; 0x0000a190 __section_table_end = .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why the Demo project that works uses a custom linker script file instead of just letting the tool IDE control the address but there must be a reason ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882014#M52311</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-05T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882015#M52312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, now my Demo Application doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From OpenSDA USB Mass Storage, I can drag and drop my blinky-125msec.bin (0x0000), my blinky-250msec.bin (0x0000), and my&amp;nbsp;frdmk22f_freedom_bootloader.bin (0x0000) and they all run fine. The blinky programs blink the LED at various rates and all colors. The bootloader runs and you can plug in the K22 USB to the laptop and see the E-Drive FSL Loader (E:) but any applications (linked at 0xa000) drag and&amp;nbsp; dropped on to E: just sit there and it looks like nothing gets programmed. I unplug and reinsert the K22 USB and it still mounts as FSL Loader (E:).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must be close...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882015#M52312</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-05T15:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882016#M52313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary Sinder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're mixing concepts here, the FRDM-K22 has a K20&amp;nbsp;that function with the OpenSDA app, and the K22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71609iE5F111BF486C900B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you drag and drop a program to the device, you're using the K20 OpenSDA application to upload a program to the K22. This device listed as a mass storage is the K20 with the OpenSDA application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71655i42E9755FB4F75161/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want to program an application with other memory location different from 0x00000000 you will need the freedom_bootloader because the MCU after a reset always check the 0x00000000 location where is the vector table and the location to jump to the Reset Interrupt. You need a program to help you jump to your application, if you only upload this program to the MCU, the location 0x0000000 will not have any information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First upload the&amp;nbsp;&lt;SPAN&gt;freedom_bootloader.bin to the board, this will help you to upload your new program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the led_freedom_a000 as an example, you will need the location of the RAM program to the 0xa000 using the MCUXpresso, after that create a binary for your application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71697i5FAC28A22987CB49/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To upload the program, using the kinetis flash tool( the link to download &lt;A href="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT" title="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT"&gt;MCU Bootloader | NXP&lt;/A&gt;)&amp;nbsp;, you will find the flash tool in the next route:&amp;nbsp; ..\NXP_Kinetis_Bootloader_2_0_0\bin\Tools\KinetisFlashTool\win&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browse the image you want to download in the BCA Utilities TAB.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71745i254F519F291A4948/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the config button, enable the tag check box and include timeout to start your application. If you send a command throug UART, I2C, SPI, CAN or USB before the timeout, the bootloader will catch the instrucction and you will be able to upload a new program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71794i37B95A131A49CB15/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the changes to the images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71831iF8DCA4E0F14C5DC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After this, you're ready to upload your image. Go to the update tab, select the image you want to upload and select the start point of writing, if you upload the program to the 0x00000000 you will overwrite the freedom_bootloader.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71953iDBBDDFD6B41588F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, check the documentation for MCU_boot in the next route: ..\NXP_Kinetis_Bootloader_2_0_0\doc, the&amp;nbsp;Kinetis Bootloader Demo Application User's Guide&amp;nbsp;has a some examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:39:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882016#M52313</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-02-07T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882017#M52314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I agree with you (you have great details above). I have a K20 (running OpenSDA) just as you say. I also have the Bootloader running on the K22 by drag and dropping on the OpenSDA USB Port as you suggest. However, now I can plug in the K22 USB port and it mounts as a USB device as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="test.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72038i97FCDF6379223A33/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, in theory, I can drag and drop new Applications such as the Bootloader at address 0x0000 by drag and dropping on the OpenSDA USB drive (FRDM-K22FJ) or I can drag and drop Applications like&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;led_freedom_a0000.bin on to the Bootloader USB drive (FSL Loader) and it should program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Having said all&amp;nbsp; of that, I will go though your detailed step by steps today and see if that works with Kinetis Flash Tools. My bootloader has UART, I2C, and SPI disabled but I can put them back in. Only USB VID/PID &amp;amp; USB Mass Storage options are enabled on mine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;#if !defined(BL_CONFIG_SCUART)&lt;BR /&gt;#define BL_CONFIG_SCUART (0)&lt;BR /&gt;#endif&lt;BR /&gt;#if !defined(BL_CONFIG_I2C)&lt;BR /&gt;#define BL_CONFIG_I2C (0)&lt;BR /&gt;#endif&lt;BR /&gt;#if !defined(BL_CONFIG_DSPI)&lt;BR /&gt;#define BL_CONFIG_DSPI (0)&lt;BR /&gt;#endif&lt;BR /&gt;#if !defined(BL_CONFIG_USB_HID)&lt;BR /&gt;#define BL_CONFIG_USB_HID (1)&lt;BR /&gt;#endif&lt;BR /&gt;#if !defined(BL_CONFIG_USB_MSC)&lt;BR /&gt;#define BL_CONFIG_USB_MSC (1)&lt;BR /&gt;#endif&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank You,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Gary&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 13:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882017#M52314</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-08T13:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882018#M52315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found&amp;nbsp; this in the bootloader manual -&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;the USB MSC download only supports SB file drag-and-drop&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So, it would assume I am messing things up by dragging and dropping binaries on the K22 Bootloader. I will start over and see how this goes after I learn how to make SB files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882018#M52315</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-08T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882019#M52316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, the secret is to &lt;STRONG&gt;not&lt;/STRONG&gt; drag and drop a binary file on to the K22 Bootloader USB (FSL Loader) because I think it messes things up, you must convert it first to a SB formatted file. I can now drag and drop applications linked to 0xA000 on to the Bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how you make a command file (*.bd) and call the elftosb tool&lt;/P&gt;&lt;P&gt;C:\temp&amp;gt;type led.bd&lt;BR /&gt;sources {&lt;BR /&gt; # BIN File path&lt;BR /&gt; myBINFile = "frdmk22f_led_demo_freedom_a000.bin";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;section (0) {&lt;BR /&gt; #1. Erase the internal flash&lt;BR /&gt; erase 0x0000a000..0x0010000;&lt;BR /&gt; #2. Load BIN File to internal flash&lt;BR /&gt; load myBINFile &amp;gt; 0xa000;&lt;BR /&gt; #3. Reset target.&lt;BR /&gt; reset;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\temp&amp;gt;elftosb -V -c led.bd -o image.sb&lt;BR /&gt;Boot Section 0x00000000:&lt;BR /&gt; ERAS | adr=0x0000a000 | cnt=0x00006000 | flg=0x0000&lt;BR /&gt; LOAD | adr=0x0000a000 | len=0x00000678 | crc=0x1a0c562d | flg=0x0000&lt;BR /&gt; RESET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, This case can be closed and I will now focus on trimming down my bootloader and moving the bootloader UART over to LPUART for my end target.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 16:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882019#M52316</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-08T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing K22 Start Address in MCUXPresso IDE</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882020#M52317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more piece of info (related to why my system did not work). I set the Bootloader timeout to ZERO which I thought meant it would be immediate jump to application unless button was pressed to stay in bootloader. However, ZERO means it will never jump to my Application (aka no timeout as the comment says).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default:&lt;/P&gt;&lt;P&gt;#define BL_DEFAULT_PERIPHERAL_DETECT_TIMEOUT 5000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2019 00:01:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Changing-K22-Start-Address-in-MCUXPresso-IDE/m-p/882020#M52317</guid>
      <dc:creator>gsinde</dc:creator>
      <dc:date>2019-02-09T00:01:45Z</dc:date>
    </item>
  </channel>
</rss>

