<?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: Converting MCUXpresso project to XIP in QSPI in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742424#M45247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I filed a support ticket&amp;nbsp;00168837 on this question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2018 20:34:05 GMT</pubDate>
    <dc:creator>hemlock</dc:creator>
    <dc:date>2018-06-27T20:34:05Z</dc:date>
    <item>
      <title>Converting MCUXpresso project to XIP in QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742420#M45243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;I'm currently trying to convert an MCUXPresso/Amazon FreeRTOS project to XIP on QSPI on the FRDM-K82 board and am having some difficulty.&lt;/P&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;I'm following the demo_apps_hello_world_qspi/doc/readme.txt reference as well as the "Kinetis Bootloader QuadSPI User's Guide" section "Creating application for QuadSPI memory.&lt;/P&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;According to these documents the following must occur:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;&lt;P&gt;1) the linker file for an application to be&amp;nbsp;executed&amp;nbsp;out of QSPI needs to be updated to point to the QSPI memory at location 0x68001000&lt;/P&gt;&lt;P&gt;2) the flash config FOPT bits need to be set to 0b10 -- "ROM -&amp;gt; QSPI Yes"&lt;BR /&gt;3) the preprocessor directive BOOTLOADER_CONFIG needs to be defined in the project properties&lt;BR /&gt;4) the NXP Kinetis Bootloader needs to be running on the chip, by pressing sw2/NMI during power-on&lt;BR /&gt;5) a valid QSPI config binary, such as the one included in "NXP_Kinetis_Bootloader_2_0_0/apps/QCBGenerator/binaries/qspi_config_block.bin" needs to be loaded into 0x68000000&lt;/P&gt;&lt;P&gt;6) a valid board file, such as the one located in "NXP_Kinetis_Bootloader_2_0_0/apps/demo_qspi/qspi_image_0000.bd" needs to be modified to point to your user application's .srec file and the qspi_config_block.bin from (5) above.&lt;BR /&gt;7) the user-application.axf file needs to be converted to motorola format, via a command like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;arm-none-&lt;SPAN&gt;eabi&lt;/SPAN&gt;-&lt;SPAN&gt;objcopy&lt;/SPAN&gt;&amp;nbsp;-v -O&amp;nbsp;&lt;SPAN&gt;srec&lt;/SPAN&gt;&amp;nbsp;"${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.&lt;SPAN&gt;srec&lt;/SPAN&gt;" - this file needs to be in the same directory as the&amp;nbsp;BD file and qspi_config_block.bin&amp;nbsp;and the elftosb utility&lt;BR /&gt;8)&amp;nbsp; an SB file needs to be generated via the command ./elftosb.exe -V -c&amp;nbsp;qspi_image_0000.bd -o user-application.sb&lt;BR /&gt;9) the sb file is loaded onto the QSPI by contacting the Kinetis bootloader with the 'blhost' utility:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"./blhost.exe -u -- receive-&lt;SPAN&gt;sb&lt;/SPAN&gt;-file&amp;nbsp;user-application.sb"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-weight: normal; text-decoration: none; font-size: 12px;"&gt;However - when I run the blhost.exe 'receieve-sb-file' command - the sb file seemingly fails&amp;nbsp;to flash the last 32 bytes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost.exe -u -- receive-sb-file agent-poc.sb &lt;BR /&gt;Inject command 'receive-sb-file' &lt;BR /&gt;Preparing to send 23648 (0x5c60) bytes to the target. &lt;BR /&gt;Successful generic response to command 'receive-sb-file' &lt;BR /&gt;usb hid detected receiver data abort &lt;BR /&gt;Data phase write aborted by status 0x2712 kStatus_AbortDataPhase &lt;BR /&gt;Response status = 10004 (0x2714) No response packet from target device. &lt;BR /&gt;Wrote 23616 of 23648 bytes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I have a sample program that should configure and manipulate the RGB LED on the board, and have confirmed this happens when I run out of on-board flash, but the bootloader does not seem to jump to or run this code in the QSPI-- or perhaps the code is not successfully flashed or perhaps the QSPI config is incorrect?&lt;BR /&gt;&lt;BR /&gt;Let me know if anyone else has seen this issue and has a solution.&amp;nbsp; Or if there's an application note that describes how to configure MCUXpresso projects to run out of the QSPI&lt;BR /&gt;&lt;BR /&gt;Find attached: screenshots of my memory configuration and FOPT settings, and my map file, qspi_config_block.bin, BD file and srec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 16:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742420#M45243</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-05-31T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MCUXpresso project to XIP in QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742421#M45244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, it seems this demo compiled by MCUXpresso can't work. I guess there are some problems in link file. I'll ask someone for help. I have also test this demo by IAR and KEIL. They are ok. You can use those IDE to get around this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 08:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742421#M45244</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-06-11T08:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MCUXpresso project to XIP in QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742422#M45245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to build demo applications in KDS that will run out of QSPI memory, but the blhost utility seems to similarly report "&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;kStatus_AbortDataPhase&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And typically misses the last 32 bytes -- even when the program is flashed 'successfully.'&amp;nbsp; (Note that&amp;nbsp;23648-23616=32)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;see my previous question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/476244"&gt;FRDM-K82 QSPI XIP problem&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 21:31:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742422#M45245</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-06-11T21:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MCUXpresso project to XIP in QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742423#M45246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi john,&lt;/P&gt;&lt;P&gt;I think this is not a problem. Please look at page26 figure 13 in Kinetis Bootloader QuadSPI User's Guide.pdf.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="blhost_xip.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26089i9C50C95CB41DAA75/image-size/large?v=v2&amp;amp;px=999" role="button" title="blhost_xip.png" alt="blhost_xip.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is because data in sb file is&amp;nbsp;orgnized in block. The last block will be filled with useless data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 02:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742423#M45246</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-06-12T02:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MCUXpresso project to XIP in QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742424#M45247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I filed a support ticket&amp;nbsp;00168837 on this question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 20:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742424#M45247</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-06-27T20:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MCUXpresso project to XIP in QSPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742425#M45248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P style="line-height: 15pt;"&gt;&lt;SPAN lang="EN-US" style="color: #000000; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;When you are testing by MCUXPRESSO, are you using semihost console or UART console?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="line-height: 15pt;"&gt;&lt;SPAN lang="EN-US" style="color: #000000; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;&lt;SPAN lang="EN-US" style="color: #000000; font-family: 'Helvetica',sans-serif; font-size: 10.5pt;"&gt;In this case, you must choose UART console, while the semihost console is default configuration.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 07:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Converting-MCUXpresso-project-to-XIP-in-QSPI/m-p/742425#M45248</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-07-03T07:26:58Z</dc:date>
    </item>
  </channel>
</rss>

