<?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: FRDM-K82 QSPI XIP problem in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774314#M9740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;I use the .srec&amp;nbsp; file you shared&amp;nbsp; , it also can work well :&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/12593i105705105ABB476F/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;&lt;/P&gt;&lt;P&gt;I put&amp;nbsp; the two .exe and&amp;nbsp; the ralted files into one folder, then generate .sb file :&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/21661i8E2FD97455F3EEF6/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;&lt;/P&gt;&lt;P&gt;I attached all the files.&lt;/P&gt;&lt;P&gt;And please erase the flash to have try refer to "Kinetis Bootloader QuadSPI User's Guide.pdf"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21263i4D64CCBB5427961B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2018 08:39:48 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2018-05-24T08:39:48Z</dc:date>
    <item>
      <title>FRDM-K82 QSPI XIP problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774310#M9736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hello.&amp;nbsp; I am trying to load the 'led_demo_qspi_0000' project from: &amp;lt;NXP_Kinetis_Bootloader_2_0_0&amp;gt;/apps/demo_qspi/led_demo/targets/FRDM-K82F/kds/led_demo_qspi_0000&lt;BR /&gt;loaded onto the QSPI on the FRDM-K82 board and am running into the following issue:&lt;BR /&gt;&lt;BR /&gt;1) I can write the QSPI config:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost.exe -p COM5 -- write-memory 0x20000000 qcb_MX25U3235F_parallel_mode.bin&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Response status = 0 (0x0) Success.&lt;BR /&gt;blhost.exe -p COM5 -- configure-quadspi 1 0x20000000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Response status = 0 (0x0) Success.&lt;BR /&gt;blhost.exe -p COM5 -- write-memory 0x68000000&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;qcb_MX25U3235F_parallel_mode.bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Response status = 0 (0x0) Success.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;2) I can write an SB file, by using the board file 'qspi_image_0000.bd':&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# The sources block assigns file names to identifiers sources &lt;BR /&gt;{ # SREC File path &lt;BR /&gt;&amp;nbsp; mySrecFile = "led_demo_qspi_0000.srec"; &lt;BR /&gt;&amp;nbsp; # QCB file path &lt;BR /&gt;&amp;nbsp; qspiConfigBlock = "qcb_MX25U3235F_parallel_mode.bin"; &lt;BR /&gt;} &lt;BR /&gt;# The section block specifies the sequence of boot commands to be written to &lt;BR /&gt;# the SB file &lt;BR /&gt;section (0) &lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp; #1. Erase the vector table and flash config field. &lt;BR /&gt;&amp;nbsp; erase 0..0x800; &lt;BR /&gt;&amp;nbsp; # Step 2 and Step 3 are optional if the QuadSPI is configured at startup. &lt;BR /&gt;&amp;nbsp; #2. Load the QCB to RAM &lt;BR /&gt;&amp;nbsp; load qspiConfigBlock &amp;gt; 0x20000000; &lt;BR /&gt;&amp;nbsp; #3. Configure QuadSPI with the QCB above &lt;BR /&gt;&amp;nbsp; enable qspi 0x20000000; &lt;BR /&gt;&amp;nbsp; #4. Erase the QuadSPI memory region before programming. &lt;BR /&gt;&amp;nbsp; erase 0x68000000..0x68004000; &lt;BR /&gt;&amp;nbsp; #5.Load the QCB above to the start address of QuadSPI memory &lt;BR /&gt;&amp;nbsp; load qspiConfigBlock &amp;gt; 0x68000000; &lt;BR /&gt;&amp;nbsp; #6,7. Load all the RO data from srec file, including vector table, flash config field and codes. &lt;BR /&gt;&amp;nbsp; load mySrecFile; &lt;BR /&gt;&amp;nbsp; #8. Reset target. &lt;BR /&gt;&amp;nbsp; reset; &lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and&amp;nbsp;using the command :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;./elftosb.exe -V -c qspi_image_0000.bd -o qspi_image_0000.sb&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;3) But when I try and write the sb file using blhost I get an error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost.exe -p COM5 -- receive-sb-file qspi_image_0000.sb &lt;BR /&gt;Ping responded in 1 attempt(s) &lt;BR /&gt;Inject command 'receive-sb-file' &lt;BR /&gt;Preparing to send 3904 (0xf40) bytes to the target. &lt;BR /&gt;Successful generic response to command 'receive-sb-file' &lt;BR /&gt;Data phase write aborted by status 0x2712 kStatus_AbortDataPhase &lt;BR /&gt;Response status = 10200 (0x27d8) kStatusMemoryRangeInvalid &lt;BR /&gt;Wrote 128 of 3904 bytes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Additionally -- if I try and go through the steps in the sb file manually:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost.exe -p COM5 -- flash-erase-region 0x000 2048 &lt;BR /&gt;Ping responded in 1 attempt(s) &lt;BR /&gt;Inject command 'flash-erase-region' &lt;BR /&gt;Response status = 10200 (0x27d8) kStatusMemoryRangeInvalid&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I&amp;nbsp;suspect that the initial step in the SB file 'erase 0 ... 0x800' is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a write protect step I should be disabling? I don't think that I have a key for this image:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost -p COM5 -- read-memory 0x400 12 &lt;BR /&gt;Ping responded in 1 attempt(s) &lt;BR /&gt;Inject command 'read-memory' &lt;BR /&gt;Successful response to command 'read-memory' &lt;BR /&gt;ff ff ff ff ff ff ff ff ff ff ff ff &lt;BR /&gt;Successful generic response to command 'read-memory' &lt;BR /&gt;Response status = 0 (0x0) Success. &lt;BR /&gt;Response word 1 = 12 (0xc) &lt;BR /&gt;Read 12 of 12 bytes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached: the map and linker files for this project:&lt;BR /&gt;MK82FN256xxx15_qspi_0000.ld = linker file for led_demo_qspi_0000&lt;BR /&gt;led_demo_qspi_0000.map = map file for led_demo_qspi_0000&lt;BR /&gt;MK82FN256xxx15_application_0x0000.ld = linker for freedom k82 bootloader&lt;BR /&gt;freedom_bootloader.map = map file for freedom k82 bootloader&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is for the freedom bootloader to execute in flash, initialize the QSPI in parallel mode, then jump to 0x68001000 and start execution of the led_demo_qspi housed there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what I have done wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 20:39:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774310#M9736</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-05-21T20:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82 QSPI XIP problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774311#M9737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;blhost -u -- read-memory 0x40c 4 &lt;BR /&gt;Inject command 'read-memory' &lt;BR /&gt;Successful response to command 'read-memory' &lt;BR /&gt;fe 3d ff ff &lt;BR /&gt;Successful generic response to command 'read-memory' &lt;BR /&gt;Response status = 0 (0x0) Success. &lt;BR /&gt;Response word 1 = 4 (0x4) &lt;BR /&gt;Read 4 of 4 bytes. &lt;BR /&gt;&lt;BR /&gt;blhost -u -- write-memory 0x40c {{FEBFFFFF}} &lt;BR /&gt;Inject command 'write-memory' &lt;BR /&gt;Successful generic response to command 'write-memory' &lt;BR /&gt;Response status = 105 (0x69) kStatus_FlashCommandFailure &lt;BR /&gt;Wrote 4 of 4 bytes. &lt;BR /&gt;&lt;BR /&gt;blhost -u -- read-memory 0x40c 4 &lt;BR /&gt;Inject command 'read-memory' &lt;BR /&gt;Successful response to command 'read-memory' &lt;BR /&gt;fe 3d ff ff &lt;BR /&gt;Successful generic response to command 'read-memory' &lt;BR /&gt;Response status = 0 (0x0) Success. &lt;BR /&gt;Response word 1 = 4 (0x4) Read 4 of 4 bytes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Another data point is that I cannot write to the FOPT as the "Kinetis Bootloader QuadSPI User's Guide.pdf" suggests -- is this a security feature perhaps?&amp;nbsp; Is there another user guide that describes how to enable QuadSPI for K82?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 20:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774311#M9737</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-05-22T20:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82 QSPI XIP problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774312#M9738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;Please refer to "Kinetis Bootloader QuadSPI User's Guide.pdf" (path:NXP_Kinetis_Bootloader_2_0_0\doc) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the QCB file , you can directly use KBOOT provicde : NXP_Kinetis_Bootloader_2_0_0\apps\QCBGenerator\binaries\qspi_config_block.bin&lt;/P&gt;&lt;P&gt;About the .BD file , you can first use KBOOT provide :NXP_Kinetis_Bootloader_2_0_0\apps\demo_qspi\bdfile\qspi_image_0000.bd&lt;/P&gt;&lt;P&gt;I test with the usb port of FRDM-K82F board, it can work well .&lt;/P&gt;&lt;P&gt;Please refer to it have a try, if still have question , please contact us without any hesitate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 09:27:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774312#M9738</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-05-23T09:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82 QSPI XIP problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774313#M9739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've re-run&amp;nbsp;elftosb.exe -V -c qspi_image_0000.bd -o qspi_image_0000.sb against the files you mentioned to generate a new .sb file, however I'm still seeing a "kStatusMemoryRangeInvalid" error&amp;nbsp;after 160 bytes on my FRDM-k82F board:&lt;/P&gt;&lt;P&gt;&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 -u -- receive-sb-file qspi_image_0000.sb &lt;BR /&gt;Inject command 'receive-sb-file' &lt;BR /&gt;Preparing to send 3904 (0xf40) 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 = 10200 (0x27d8) kStatusMemoryRangeInvalid &lt;BR /&gt;Wrote 160 of 3904 bytes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Find attached, my led_demo_qspi_0000.srec file, which was from the project located at:&amp;nbsp;NXP_Kinetis_Bootloader_2_0_0/apps/demo_qspi/led_demo/targets/FRDM-K82F/kds/led_demo_qspi_0000/release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To generate the .srec file, the following command was used:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;arm-none-eabi-objcopy -v -O srec "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.srec"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 16:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774313#M9739</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-05-23T16:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82 QSPI XIP problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774314#M9740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;I use the .srec&amp;nbsp; file you shared&amp;nbsp; , it also can work well :&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/12593i105705105ABB476F/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;&lt;/P&gt;&lt;P&gt;I put&amp;nbsp; the two .exe and&amp;nbsp; the ralted files into one folder, then generate .sb file :&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/21661i8E2FD97455F3EEF6/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;&lt;/P&gt;&lt;P&gt;I attached all the files.&lt;/P&gt;&lt;P&gt;And please erase the flash to have try refer to "Kinetis Bootloader QuadSPI User's Guide.pdf"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21263i4D64CCBB5427961B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 08:39:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774314#M9740</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-05-24T08:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K82 QSPI XIP problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774315#M9741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah you're right -- I need to erase the memory before it can be written -- thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 18:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/FRDM-K82-QSPI-XIP-problem/m-p/774315#M9741</guid>
      <dc:creator>hemlock</dc:creator>
      <dc:date>2018-05-24T18:50:25Z</dc:date>
    </item>
  </channel>
</rss>

