<?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: BAM Upload program MPC5644A</title>
    <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950228#M14293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would require some debugging... First step - if IVOR1 is triggered, what is the content of MCSRR0 and MCSR registers? MCSRR0 contains address of instruction which caused the exception and MCSR reflects source of the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2019 07:22:21 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-07-23T07:22:21Z</dc:date>
    <item>
      <title>BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950227#M14292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an huge problem about BAM on My MPC5644A&amp;nbsp; . I 'm using boot via CAN interface with baud rate detection. I respect all the CAN protocol and If I download&amp;nbsp; only a simple "hello world "program like led blink It's works fine. But If I try to download something coplex it dosen't works. I'm pretty sure that is not a problem about program because It works in RAM downloaded by j-link .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fallows all the steps&amp;nbsp;that you will find here&amp;nbsp; :&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/320166"&gt;https://community.nxp.com/thread/320166&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So I have done these :&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;"Find file __start.c in installation directory of CodeWarrior and copy it into your project. Add this files to source files in the project. Change the link order – set this file as a first one.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;You will get some warnings because we overloaded the __start function&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Then it is necessary to change the linker file – place “init” section at the start of memory and place init_vle at the start of “init” GROUP:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;My linker file is&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;init: org = 0x40000000, len = 0x00001000&lt;BR /&gt; pseudo_rom: org = 0x40001000, len = 0x00003000 &lt;BR /&gt; exception_handlers: org = 0x40004000, len = 0x00001000&lt;BR /&gt; internal_ram: org = 0x40005000, len = 0x0001B000&lt;BR /&gt; heap : org = 0x40020000, len = 0x00008000 &lt;BR /&gt; stack : org = 0x40028000, len = 0x00008000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;SECTIONS&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;{&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP : {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;.init_vle (VLECODE) : {&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;*(.init)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;*(.init_vle)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .init : {}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; init&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;….&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Then the entry point (function __start() ) will be at 0x4000_0000. You can check it in .map file.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;3) I have created an utility that load all the .bin file after the program build because :&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;"The RAM.mot cannot be downloaded by BAM directly. It must be continuous image without gaps. You can either write some program on PC that will create continuous binary file or you can download the project into RAM by debugger, then save the content of RAM memory to binary file."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;4) Disable core wDog as the first instruction of mian function :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;__asm static void dis_core_wdog (void)&lt;BR /&gt;{&lt;BR /&gt; //** Core WDOG*****//&lt;BR /&gt; li r6,0x00&lt;BR /&gt; mtspr 340,r6&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;blr&lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;5) I don't understand the RAM Init :&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;"Notice that downloading of code also initializes ECC. Area that is not written by BAM will contain ECC errors. If your application wants to use uninitialized RAM, it must be explicitly initialized by your SW."&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt; I don 't do this or I don't understand where and the function to do this . I know that the code pass through the MPC5644A_HwInit.c in user init function , because in prefix file i have defined&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;#define VLE_IS_ON 0&lt;BR /&gt;#define CALL_USR_INIT 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;In this way once i have setted = 1 the initi derivative the code pass from the INIT_Derivative function that I have modified like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;/*************************************************************************/&lt;BR /&gt;__asm void INIT_Derivative(void)&lt;BR /&gt;{&lt;BR /&gt;nofralloc&lt;/P&gt;&lt;P&gt;/* Disable the software watch dog. */&lt;BR /&gt; mflr r26&lt;BR /&gt; bl cfg_WATCHDOG&lt;BR /&gt; mtlr r26&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lis r11,L2SRAM_LOCATION@h&lt;BR /&gt; ori r11,r11,L2SRAM_LOCATION@l&lt;/P&gt;&lt;P&gt;/* Loops to cover L2SRAM, stmw allows 128 bytes (32 GPRS x 4 bytes) writes */&lt;BR /&gt; lis r12,L2SRAM_CNT@h&lt;BR /&gt; ori r12,r12,L2SRAM_CNT@l&lt;BR /&gt; mtctr r12&lt;/P&gt;&lt;P&gt;init_l2sram_loop:&lt;BR /&gt; stmw r0, 0(r11) /* Write 32 GPRs to SRAM */&lt;BR /&gt; addi r11,r11,128 /* Inc the ram ptr; 32 GPRs * 4 bytes = 128B */&lt;BR /&gt; bdnz init_l2sram_loop /* Loop for L2SRAM_CNT */&lt;BR /&gt; blr&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;where:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L2SRAM_CNT = 0x30000 / 128;&lt;/P&gt;&lt;P&gt;START_EXTERNAL_RAM = 0x20000000;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;this function should do the ram init loop but if my code pass from here I have an exception on IVOR1trap :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;IVOR1trap: b IVOR1trap // Machine check / (NMI) interrupt handler&lt;BR /&gt; // ISI, ITLB Error on first instruction fetch for an exception handler&lt;BR /&gt; // Parity Error signaled on cache access&lt;BR /&gt; // External bus error&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;I have tryed also to initialize only ram after the end of ram address of the RAM code loaded via BAM without any result.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;I know that i lost something or I 'm doing something wrong , about this, and&amp;nbsp; any help or advice is greatly appreciated .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;thanks in advance&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Alessandro Sirtori .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 09:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950227#M14292</guid>
      <dc:creator>alessandrosirto</dc:creator>
      <dc:date>2019-07-22T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950228#M14293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would require some debugging... First step - if IVOR1 is triggered, what is the content of MCSRR0 and MCSR registers? MCSRR0 contains address of instruction which caused the exception and MCSR reflects source of the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 07:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950228#M14293</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-07-23T07:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950229#M14294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thanks for you help , I was a bit confused was not the IVOR1 but the IVOR6 , sorry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the attached image sram_init.png the code pass through the sram init but if I suspend program is in IVOR6 . Do you have any Idea ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="sram_init.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82375i0313AD8F01E19996/image-size/large?v=v2&amp;amp;px=999" role="button" title="sram_init.png" alt="sram_init.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IVOR6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82411i97122CDF3C0C766C/image-size/large?v=v2&amp;amp;px=999" role="button" title="IVOR6.png" alt="IVOR6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 08:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950229#M14294</guid>
      <dc:creator>alessandrosirto</dc:creator>
      <dc:date>2019-07-23T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950230#M14295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you are not overwriting own code in RAM? What is the value of L2SRAM_LOCATION? If IVOR6 is triggered, this could be the reason. As I wrote before, check SRR0 register and then corresponding address in RAM memory. You will see if it is overwritten or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 10:35:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950230#M14295</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-07-23T10:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950231#M14296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep.... First mistake...&amp;nbsp;It was faulty value of L2SRAM_LOCATION and L2SRAM_CNT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the value are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* How many writes with stmw, 128 bytes each, are needed to cover&lt;BR /&gt; the whole L2SRAM (used for L2 SRAM initialization) */&lt;BR /&gt;L2SRAM_CNT = 0x28190 / 128 ;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*&amp;nbsp; &amp;nbsp; &amp;nbsp; previous one&amp;nbsp; &amp;nbsp;0x30000 / 128;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* L2 SRAM Location (used for L2 SRAM initialization) */&lt;/P&gt;&lt;P&gt;L2SRAM_LOCATION = 0x40007E70;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;previous one&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0x40000000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this value&amp;nbsp;L2SRAM_LOCATION&amp;nbsp; ,&amp;nbsp; that would be the next value of last address present in the .bin file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;L2SRAM_CNT&amp;nbsp; would be =&amp;nbsp;0x30000&amp;nbsp; (ram size ) - 0x7E70 (size that I wrote) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The section are&amp;nbsp; always :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; init: org = 0x40000000, len = 0x00001000&lt;BR /&gt; pseudo_rom: org = 0x40001000, len = 0x00003000 &lt;BR /&gt; exception_handlers: org = 0x40004000, len = 0x00001000&lt;BR /&gt; internal_ram: org = 0x40005000, len = 0x0001B000&lt;BR /&gt; heap : org = 0x40020000, len = 0x00008000 &lt;BR /&gt; stack : org = 0x40028000, len = 0x00008000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I have not IVOR6 exception , I can send the program with j_link and works ,&amp;nbsp; but after the code download with BAM the application does not run . Do you have any Idea?&amp;nbsp; attched you will find the first start CAN handshaking , the protocol works and the file I'm pretty sure is continuos...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CAN Sniff.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82452iB3845D5022AC7D92/image-size/large?v=v2&amp;amp;px=999" role="button" title="CAN Sniff.png" alt="CAN Sniff.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950231#M14296</guid>
      <dc:creator>alessandrosirto</dc:creator>
      <dc:date>2019-07-23T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950232#M14297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;L2SRAM_LOCATION = 0x40007E70;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- the address must be aligned to 128 bytes when using stmw and writing 128 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can simply dump the SRAM before and after execution of this init code and you can compare the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:09:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950232#M14297</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-07-24T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950233#M14298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct... changed the parameters like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L2SRAM_CNT = 0x28180 / 128 ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;L2SRAM_LOCATION = 0x40007E80;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I add in program loaded&amp;nbsp;via BAM all the value in address from&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0x40007E70; to &lt;SPAN style="color: #3d3d3d;"&gt;0x40007E80 not included as 0 .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;The result is the same the program after the download doesn't start.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;So , I have loaded the program with j-link and i dump RAM of the program , after save it on file . I compare it with .mot build file . These are the same exept for the address that are not present in mot file due to build. After I have compared the RAM file that i used to load the program with the dump file and are the same.. &lt;SPAN style="background-color: #ffffff;"&gt;exept for the address that are not present in mot file due to build&lt;/SPAN&gt;&amp;nbsp;, I fill it with 0&amp;nbsp; value (like bin file) and the dump file have other I think due to the RAM initialization. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;No idea..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950233#M14298</guid>
      <dc:creator>alessandrosirto</dc:creator>
      <dc:date>2019-07-26T08:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAM Upload program MPC5644A</title>
      <link>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950234#M14299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I know what's going on now.&lt;/P&gt;&lt;P&gt;When using RAM target in CodeWarrior, initialized data (like .sdata section) are not copied to RAM memory in startup files. It's part of the image which is loaded to RAM memory by debugger. Only non-initialized variables (like .sbss) are cleared by startup files.&lt;/P&gt;&lt;P&gt;So, when you load image to RAM, you should include also mentioned segments. If you don't do that, the program may crash because it probably relies on the init values. Or other option which comes into my mind - do not use initialized variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 07:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/BAM-Upload-program-MPC5644A/m-p/950234#M14299</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-07-29T07:48:51Z</dc:date>
    </item>
  </channel>
</rss>

