<?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 MC5682758 , Is there demo code about how to copy code into RAM and running in RAM? in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/MC5682758-Is-there-demo-code-about-how-to-copy-code-into-RAM-and/m-p/1381566#M2341</link>
    <description>&lt;P&gt;Hi NXP experts,&lt;/P&gt;&lt;P&gt;Is there demo code about how to copy code into RAM and running in RAM?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 02:05:33 GMT</pubDate>
    <dc:creator>terrybogard</dc:creator>
    <dc:date>2021-12-06T02:05:33Z</dc:date>
    <item>
      <title>MC5682758 , Is there demo code about how to copy code into RAM and running in RAM?</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/MC5682758-Is-there-demo-code-about-how-to-copy-code-into-RAM-and/m-p/1381566#M2341</link>
      <description>&lt;P&gt;Hi NXP experts,&lt;/P&gt;&lt;P&gt;Is there demo code about how to copy code into RAM and running in RAM?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 02:05:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/MC5682758-Is-there-demo-code-about-how-to-copy-code-into-RAM-and/m-p/1381566#M2341</guid>
      <dc:creator>terrybogard</dc:creator>
      <dc:date>2021-12-06T02:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: MC5682758 , Is there demo code about how to copy code into RAM and running in RAM?</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/MC5682758-Is-there-demo-code-about-how-to-copy-code-into-RAM-and/m-p/1382270#M2343</link>
      <description>&lt;P&gt;Hi, Terry,&lt;/P&gt;
&lt;P&gt;I think you can refer to the Flash example based on PE for MC56F8013, I attach the example here.&lt;/P&gt;
&lt;P&gt;#pragma define_section RAW_PROG_FLASH_section ".RAW_PROG_FLASH" RX&lt;BR /&gt;#pragma section RAW_PROG_FLASH_section begin&lt;BR /&gt;static asm void Run_and_wait_in_prog_flash(IFsh1_TAddress address, word data, word command)&lt;BR /&gt;{&lt;BR /&gt;move.l A10,R2; /* Move given address to pointer register */&lt;BR /&gt;move.w Y0,p:(R2)+; /* Write data to the address in program memory */&lt;BR /&gt;move.w Y1,FMCMD_ASM;&lt;BR /&gt;move.w #$80,FMUSTAT_ASM;&lt;BR /&gt;wait:&lt;BR /&gt;moveu.w #$f020,R0;&lt;BR /&gt;adda #$3f3,R0,R0;&lt;BR /&gt;move.w X:(R0),A;&lt;BR /&gt;bftstl #$40,A1;&lt;BR /&gt;bcs wait;&lt;BR /&gt;rts;&lt;BR /&gt;}&lt;BR /&gt;#pragma section RAW_PROG_FLASH_section end&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 02:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/MC5682758-Is-there-demo-code-about-how-to-copy-code-into-RAM-and/m-p/1382270#M2343</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-12-07T02:31:34Z</dc:date>
    </item>
  </channel>
</rss>

