<?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 Boot ROM copy QuadSPI to OCRAM in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289039#M2249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what changes I need to make to quadspi_boot.[ch] to get the boot ROM to copy from QuadSPI into OCRAM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 14:48:24 GMT</pubDate>
    <dc:creator>michaeljohnson</dc:creator>
    <dc:date>2013-09-03T14:48:24Z</dc:date>
    <item>
      <title>Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289039#M2249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what changes I need to make to quadspi_boot.[ch] to get the boot ROM to copy from QuadSPI into OCRAM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289039#M2249</guid>
      <dc:creator>michaeljohnson</dc:creator>
      <dc:date>2013-09-03T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289040#M2250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;A couple questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Any reason to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;copy from QuadSPI into OCRAM? - Our standard approach is XIP (eXecute In Place).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;What is 'quadspi_boot.[ch]' you are referencing, please? Function, origin/location, etc.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Sincerely, Naoum Gitnik.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 21:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289040#M2250</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-09-06T21:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289041#M2251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naoum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on supporting Vybrid in CrossWorks (&lt;A href="http://www.rowley.co.uk/"&gt;www.rowley.co.uk&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the XIP working'ish - the debug story isn't too good at the moment I have to load with boot source set to sdcard (with no sdcard inserted). I can then debug the CA5 code up to the point that it turns on the CM4 then the debug port dies. If I set the boot source to the quadspi and power cycle I can attach and debug both CA5 and CM4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The copy to SRAM can be useful for implementing in field update software i.e. the application checks which version of firmware to start executing and/or updates new firmware via some means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is supplied in the Vybrid Sample Code - src/boot/quadspi.[ch]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 07:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289041#M2251</guid>
      <dc:creator>michaeljohnson</dc:creator>
      <dc:date>2013-09-07T07:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289042#M2252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I haven't confirmed on my own board, but you should be able to do this by changing the start address of the boot_data structure (that is pointed to by the IVT) in quadspi_boot.c to internal RAM instead of the QuadSPI "FLASH_BASE" like it currently is in the sample code. Also change the entry point to the RAM location instead of QuadSPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289042#M2252</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2013-09-10T13:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289043#M2253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"...changing the start address of the boot_data structure" do you mean the first entry in the struct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the boot_data struct I changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROG_BASE to 0x3f000000&lt;/P&gt;&lt;P&gt;PROG_LENGTH to 0x80000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the image_vector_table struct I changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENTRY_POINT to 0x3f000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you think is required? It's quite likely there's another problem stopping this working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289043#M2253</guid>
      <dc:creator>michaeljohnson</dc:creator>
      <dc:date>2013-09-10T14:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289044#M2254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp; The PROG_BASE should be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; However the entry point needs to point to the first instruction you want to execute. So if you simply took the current hello_world QuadSPI XiP linker file, and changed the addresses to be in SRAM instead of QuadSPI, that would put the entry address at 0x3F000800. So make that change, and also make sure you modified the quadspi_xip.icf (assuming you're using IAR) linker file correctly so it's linked against SRAM address space instead of QuadSPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:06:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289044#M2254</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2013-09-10T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289045#M2255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built the executable to load/run at 0x3f000000 (which it does via the debugger). I loaded it at 0x20000800 and put the boot stuff at 0x20000000. I can change the executable to load/run at 0x3f000800 if you think that is required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. this could be a duplicate - I pressed the wrong button last time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289045#M2255</guid>
      <dc:creator>michaeljohnson</dc:creator>
      <dc:date>2013-09-10T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289046#M2256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I had some time to play around with it on a board, and have attached the modified files for the hello_world QuadSPI target to get it to work. Compile like you normally would for the QuadSPI target in hello_world project, and then use the quadspi_loader project to program the QuadSPI flash like normal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The basic idea is that the code is compiled against RAM addresses. Then the "entry" value in the IVT, and the "start" value in the Boot Data structure must be changed to point to RAM.&amp;nbsp; The tricky part is that the rest of QuadSPI IVT entries must still point to QuadSPI addresses. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 07:57:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289046#M2256</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2013-09-11T07:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Boot ROM copy QuadSPI to OCRAM</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289047#M2257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that - loading/starting at 0x3f000800 makes things work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 08:48:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Boot-ROM-copy-QuadSPI-to-OCRAM/m-p/289047#M2257</guid>
      <dc:creator>michaeljohnson</dc:creator>
      <dc:date>2013-09-11T08:48:41Z</dc:date>
    </item>
  </channel>
</rss>

