<?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>MPC5xxxのトピックRe: mcp5554 run code from ram</title>
    <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1231047#M17359</link>
    <description>&lt;P&gt;hi david&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't find the register RSR, I use your example in ram, i load it in ram the pc value is --start. but when i start the execution, the pc go to flash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i don't use any scripts to reset o load in the ram. i disable the watchdog in the debug windows nothing else&lt;/P&gt;&lt;P&gt;i know the micro very little, is it necessary other configuration for run in the ram?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 15:37:35 GMT</pubDate>
    <dc:creator>franme</dc:creator>
    <dc:date>2021-02-15T15:37:35Z</dc:date>
    <item>
      <title>mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1223945#M17256</link>
      <description>&lt;P&gt;hi i would you like to write with an external tool a code into ram and run it without change the memory flash. I write a simple code for blink a led( work fine into flash), i modify the lcf file to place this code in the ram, i use the ICDPPCNEXUS to write it. the code is correctly write into the ram( if i jump with PC i see the main code ), after i change the PC to jump on start and play run, the PC re jump into flash. if i load the PE algoritm, the code work fine from the ram. I don't know were is the problem. can help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* lcf file for MPC5554 (debug RAM version) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* 2 MB Flash, 64KB SRAM */&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;mail_box : org = 0x40000000, len = 0x00000100&lt;BR /&gt;resetvector: org = 0x40000100, len = 0x00000100&lt;BR /&gt;init: org = 0x40001000, len = 0x00001000&lt;BR /&gt;exception_handlers: org = 0x40002000, len = 0x00001000&lt;BR /&gt;pseudo_rom: org = 0x40003000, len = 0x00003000&lt;BR /&gt;internal_ram: org = 0x40006000, len = 0x00001400&lt;BR /&gt;heap : org = 0x40007400, len = 0x00000400 /* Heap start location */&lt;BR /&gt;stack : org = 0x40007800, len = 0x00000400 /* Start location for Stack */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;.__bam_bootarea: {} &amp;gt; resetvector&lt;/P&gt;&lt;P&gt;GROUP : {&lt;BR /&gt;.init LOAD (0x40001000): {}&lt;BR /&gt;.init_vle (VLECODE) LOAD (_e_init): {&lt;BR /&gt;*(.init)&lt;BR /&gt;*(.init_vle)&lt;BR /&gt;}&lt;BR /&gt;} &amp;gt; init&lt;/P&gt;&lt;P&gt;.__exception_handlers LOAD (0x40002000): {} &amp;gt; exception_handlers&lt;/P&gt;&lt;P&gt;GROUP : {&lt;BR /&gt;.text (TEXT) ALIGN(0x1000) : {}&lt;BR /&gt;.text_vle (VLECODE) ALIGN(0x1000): {&lt;BR /&gt;*(.text)&lt;BR /&gt;*(.text_vle)&lt;BR /&gt;}&lt;BR /&gt;.rodata (CONST) : {&lt;BR /&gt;*(.rdata)&lt;BR /&gt;*(.rodata)&lt;BR /&gt;}&lt;BR /&gt;.ctors : {}&lt;BR /&gt;.dtors : {}&lt;BR /&gt;extab : {}&lt;BR /&gt;extabindex : {}&lt;BR /&gt;} &amp;gt; pseudo_rom&lt;/P&gt;&lt;P&gt;GROUP : {&lt;BR /&gt;.__uninitialized_intc_handlertable ALIGN(0x10) : {}&lt;BR /&gt;.data : {}&lt;BR /&gt;.sdata : {}&lt;BR /&gt;.sbss : {}&lt;BR /&gt;.sdata2 : {}&lt;BR /&gt;.sbss2 : {}&lt;BR /&gt;.bss : {}&lt;BR /&gt;} &amp;gt; internal_ram&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Freescale CodeWarrior compiler address designations */&lt;/P&gt;&lt;P&gt;_stack_addr = ADDR(stack)+SIZEOF(stack);&lt;BR /&gt;_stack_end = ADDR(stack);&lt;BR /&gt;_heap_addr = ADDR(heap);&lt;BR /&gt;_heap_end = ADDR(heap)+SIZEOF(heap);&lt;/P&gt;&lt;P&gt;/* Exceptions Handlers Location (used in Exceptions.c for IVPR initialization) */&lt;/P&gt;&lt;P&gt;EXCEPTION_HANDLERS = ADDR(exception_handlers);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* L2 SRAM Location (used for L2 SRAM initialization) */&lt;/P&gt;&lt;P&gt;L2SRAM_LOCATION = 0x40000000;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 09:18:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1223945#M17256</guid>
      <dc:creator>franme</dc:creator>
      <dc:date>2021-02-01T09:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1225442#M17277</link>
      <description>&lt;P&gt;No changes of linker file is needed, but user software should disable watchdog unless it will boot again from flash. Here you may see example for reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5554EVB-PinToggleStationery-CW210/ta-p/1121790" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5554EVB-PinToggleStationery-CW210/ta-p/1121790&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 10:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1225442#M17277</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-02-03T10:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1226235#M17287</link>
      <description>hi david thank you for your help I started from a similar example, and today I have use your example, I select the ram option and i load the elf with ICDPPCNEXUS -&amp;gt; load a single debug file the program load all and the PC value indicate the __start point. i run the code and after some time i stop it the new value of pc is in the flash.&amp;nbsp; i don't know the problem.&amp;nbsp; can you help me thanks</description>
      <pubDate>Thu, 04 Feb 2021 08:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1226235#M17287</guid>
      <dc:creator>franme</dc:creator>
      <dc:date>2021-02-04T08:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1226274#M17289</link>
      <description>&lt;P&gt;sometimes work if i load the algoritm to program the flash with PEmicro&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 09:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1226274#M17289</guid>
      <dc:creator>franme</dc:creator>
      <dc:date>2021-02-04T09:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1230952#M17355</link>
      <description>&lt;P&gt;Which address do you see in such case in the PC?&lt;/P&gt;
&lt;P&gt;Does not it point to BAM address space i.e.0xFFFF_C000–0xFFFF_FFFF?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 11:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1230952#M17355</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-02-15T11:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1230983#M17357</link>
      <description>&lt;P&gt;hi david&lt;/P&gt;&lt;P&gt;if i go with single step the pc jump to 0x0000f000&lt;/P&gt;&lt;P&gt;if I play go and after stop the pc value loop near to 0xFFFFFxxx&lt;/P&gt;&lt;P&gt;you have any idea&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1230983#M17357</guid>
      <dc:creator>franme</dc:creator>
      <dc:date>2021-02-15T12:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1230992#M17358</link>
      <description>&lt;P&gt;At this point you could check SIU_RSR register to investigate reset reason. Probably device is reset for some reason.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1230992#M17358</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-02-15T13:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1231047#M17359</link>
      <description>&lt;P&gt;hi david&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't find the register RSR, I use your example in ram, i load it in ram the pc value is --start. but when i start the execution, the pc go to flash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i don't use any scripts to reset o load in the ram. i disable the watchdog in the debug windows nothing else&lt;/P&gt;&lt;P&gt;i know the micro very little, is it necessary other configuration for run in the ram?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 15:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1231047#M17359</guid>
      <dc:creator>franme</dc:creator>
      <dc:date>2021-02-15T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: mcp5554 run code from ram</title>
      <link>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1233026#M17391</link>
      <description>&lt;P&gt;If you are using PeMicro debugger, it should run debugger script at the beginning that is disabling watchdog, what I think is the root cause.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1613667092489.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137497iC8E8C53300C085B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davidtosenovjan_0-1613667092489.png" alt="davidtosenovjan_0-1613667092489.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 16:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/mcp5554-run-code-from-ram/m-p/1233026#M17391</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-02-18T16:51:39Z</dc:date>
    </item>
  </channel>
</rss>

