<?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>i.MX ProcessorsのトピックRun the program after jumping to SDRAM</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Run-the-program-after-jumping-to-SDRAM/m-p/1477396#M191748</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, RT1020-EVK is running based on XIP.&lt;/P&gt;&lt;P&gt;After every boot, I want to move the code from serial flash to SDRAM and then jump to the first point in SDRAM.&amp;nbsp;(the program start point).&lt;/P&gt;&lt;P&gt;During operation with XIP, it is necessary to erase and write serial flash, but the erase operation takes too long.&lt;BR /&gt;There is a way to run it from SDRAM from scratch without using XIP, but the procedure to download the program is very complicated. (Not suitable for mass production)&lt;BR /&gt;So I try to jump after copying the program to SDRAM.&lt;/P&gt;&lt;P&gt;Anyway, after booting, I want to copy the first 2MByte area of serial flash to SDRAM and jump to the starting point of SDRAM.&lt;/P&gt;&lt;P&gt;Please check if what I did is correct.&lt;BR /&gt;(Probably there is a missing process.)&lt;/P&gt;&lt;P&gt;-----------------------------------&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;SEMC initialization&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Copy serial flash data to SDRAM&lt;BR /&gt;&amp;nbsp; &amp;nbsp; → Source(Serial Flash) :&amp;nbsp;0x60000000U ~ (0x60000000U + 2MByte)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;→&amp;nbsp;Destination(SDRAM) :&amp;nbsp;0x80000000U ~ (0x80000000U + 2MByte)&lt;/P&gt;&lt;P&gt;3. Jump to SDRAM&lt;/P&gt;&lt;P&gt;-----------------------------------&lt;/P&gt;&lt;P&gt;When running after jumping to SDRAM in the same way as above, are there any more settings that need to be changed?&lt;/P&gt;&lt;P&gt;I attach the project file.&lt;BR /&gt;(source/semc_sdram.c)&lt;/P&gt;&lt;P&gt;Thanks in advance for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 10:48:44 GMT</pubDate>
    <dc:creator>stanley-kylee</dc:creator>
    <dc:date>2022-06-21T10:48:44Z</dc:date>
    <item>
      <title>Run the program after jumping to SDRAM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Run-the-program-after-jumping-to-SDRAM/m-p/1477396#M191748</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, RT1020-EVK is running based on XIP.&lt;/P&gt;&lt;P&gt;After every boot, I want to move the code from serial flash to SDRAM and then jump to the first point in SDRAM.&amp;nbsp;(the program start point).&lt;/P&gt;&lt;P&gt;During operation with XIP, it is necessary to erase and write serial flash, but the erase operation takes too long.&lt;BR /&gt;There is a way to run it from SDRAM from scratch without using XIP, but the procedure to download the program is very complicated. (Not suitable for mass production)&lt;BR /&gt;So I try to jump after copying the program to SDRAM.&lt;/P&gt;&lt;P&gt;Anyway, after booting, I want to copy the first 2MByte area of serial flash to SDRAM and jump to the starting point of SDRAM.&lt;/P&gt;&lt;P&gt;Please check if what I did is correct.&lt;BR /&gt;(Probably there is a missing process.)&lt;/P&gt;&lt;P&gt;-----------------------------------&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;SEMC initialization&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Copy serial flash data to SDRAM&lt;BR /&gt;&amp;nbsp; &amp;nbsp; → Source(Serial Flash) :&amp;nbsp;0x60000000U ~ (0x60000000U + 2MByte)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;→&amp;nbsp;Destination(SDRAM) :&amp;nbsp;0x80000000U ~ (0x80000000U + 2MByte)&lt;/P&gt;&lt;P&gt;3. Jump to SDRAM&lt;/P&gt;&lt;P&gt;-----------------------------------&lt;/P&gt;&lt;P&gt;When running after jumping to SDRAM in the same way as above, are there any more settings that need to be changed?&lt;/P&gt;&lt;P&gt;I attach the project file.&lt;BR /&gt;(source/semc_sdram.c)&lt;/P&gt;&lt;P&gt;Thanks in advance for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 10:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Run-the-program-after-jumping-to-SDRAM/m-p/1477396#M191748</guid>
      <dc:creator>stanley-kylee</dc:creator>
      <dc:date>2022-06-21T10:48:44Z</dc:date>
    </item>
  </channel>
</rss>

