<?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 Re: MPC5634M Bam problem in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660704#M7253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I'm lost, I do not understand your description. Could you describe it in more detailed way? &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, 12 Apr 2017 10:51:36 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2017-04-12T10:51:36Z</dc:date>
    <item>
      <title>MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660698#M7247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chip：MPC5634M，Crystal：12M.Through the bam to guide the application in RAM, but the application can not run?&lt;/P&gt;&lt;P&gt;I can run the application download application through TATG.The adaptive baud rate is used250k。Trouble to help me the following, please help me find the reason. thank you all.&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="206568" data-objecttype="3" href="https://community.nxp.com/people/lukaszadrapa"&gt;Lukas Zadrapa&lt;/A&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="10105" data-objecttype="3" href="https://community.nxp.com/people/dhaval"&gt;Dhaval Shah&lt;/A&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="10102" data-objecttype="3" href="https://community.nxp.com/people/khumphri"&gt;Kirk R Humphries&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338423"&gt;Example-TRK_MPC5634M-FlexCAN-SimpleTX-CW29-(1).zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 10:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660698#M7247</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-07T10:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660699#M7248</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;how did you created binary image? Have you followed all instruction described in this post?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/320166#comment-384300" title="https://community.nxp.com/thread/320166#comment-384300"&gt;https://community.nxp.com/thread/320166#comment-384300&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the BAM sending echo characters for all data you sent?&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, 10 Apr 2017 08:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660699#M7248</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-10T08:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660700#M7249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply。I follow your way to build&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;binary image.All my data BAM has to return，but when the data transmission is completed, the microcontroller is not running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; init: org = 0x40000000, len = 0x00001000 //4k &lt;BR /&gt; exception_handlers: org = 0x40001000, len = 0x00001000&lt;BR /&gt; pseudo_rom: org = 0x40002000, len = 0x00001000 &lt;BR /&gt; internal_ram: org = 0x40003000, len = 0x00001000 &lt;BR /&gt; &lt;BR /&gt; heap : org = 0x40004000, len = 0x00001000 // Heap start location &lt;BR /&gt; stack : org = 0x40005000, len = 0x00001000 // Start location for Stack&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;If i delete start.c this paragraph&lt;/P&gt;&lt;P&gt;li r16, 0&lt;BR /&gt; li r17, 0 &lt;BR /&gt; li r18, 0&lt;BR /&gt; li r19, 0&lt;BR /&gt; li r20, 0&lt;BR /&gt; li r21, 0&lt;BR /&gt; li r22, 0&lt;BR /&gt; li r23, 0 &lt;BR /&gt; li r24, 0&lt;BR /&gt; li r25, 0&lt;BR /&gt; li r26, 0&lt;BR /&gt; li r27, 0&lt;BR /&gt; li r28, 0&lt;BR /&gt; li r29, 0 &lt;BR /&gt; li r30, 0&lt;BR /&gt; li r31, 0&lt;BR /&gt; &lt;BR /&gt; //init internal_ram,heap,steak&lt;BR /&gt; lis r11,0x4000&lt;BR /&gt; ori r11,r11,0x3000 //Load strat address 0x4000_3000&lt;BR /&gt; li r12,0xc0 //12k/4 bytes/16 GPRs = 192 = 0xc0.&lt;BR /&gt; mtctr r12&lt;BR /&gt; &lt;BR /&gt; init_SRAM_loop:&lt;BR /&gt; stmw r16,0(r11)&lt;BR /&gt; addi r11,r11,0x40 //increment the ram pointer by 64 bytes&lt;BR /&gt; bdnz init_SRAM_loop&lt;BR /&gt; &lt;BR /&gt; //init exception_handlers&lt;BR /&gt; lis r11,0x4000&lt;BR /&gt; ori r11,r11,0x1000 //Load strat address 0x4000_1000&lt;BR /&gt; li r12,0x40 //4k/4 bytes/16 GPRs = 64 = 0x40.&lt;BR /&gt; mtctr r12&lt;BR /&gt; &lt;BR /&gt; init_excep_loop:&lt;BR /&gt; stmw r16,0(r11)&lt;BR /&gt; addi r11,r11,0x40 //increment the ram pointer by 64 bytes&lt;BR /&gt; bdnz init_excep_loop&lt;/P&gt;&lt;P&gt;The program can be run by JTAG download, but can not be run through BAM download.&lt;/P&gt;&lt;P&gt;If I add this paragraph, through the BAM program can not run properly, through JTAG can not run properly.&lt;/P&gt;&lt;P&gt;I mainly want to FLASH through the RAM to operate。&lt;/P&gt;&lt;P&gt;Save me, i really do not know that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 11:55:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660700#M7249</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-10T11:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660701#M7250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code for SRAM initialization seems to be correct. &lt;/P&gt;&lt;P&gt;What does happen if you add only some very simple code to the project? Just toggle GPIO in endless loop or something like that. Is this working? You can add this code at beginning of the main function or directly to __start.&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, 10 Apr 2017 13:54:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660701#M7250</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-10T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660702#M7251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer.If you open the CAN, you can download and run through BAM.&lt;/P&gt;&lt;P&gt;After loading the FLASH can not run, through the emulator download, found after loading&lt;/P&gt;&lt;P&gt;FLASH program has been at START.C Department.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660702#M7251</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-10T14:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660703#M7252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1737i5E375DCC060629C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 01:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660703#M7252</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-11T01:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660704#M7253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I'm lost, I do not understand your description. Could you describe it in more detailed way? &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, 12 Apr 2017 10:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660704#M7253</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-12T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660705#M7254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, my English is very bad.If my program is just open CAN, my program is able to boot through BAM to RAM in the normal operation. If I add c-array_driver in the program, my program through BAM boot to RAN is not working properly.I joined the c-array_driver program through the JTAG download to RAM as shown above, I click the source go button program can not run, has been stuck in the starting position does not move.Thank you for your answer, i do not know how to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 13:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660705#M7254</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-12T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660706#M7255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; background-color: #ffffff;"&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r16, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r17, 0 &lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r18, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r19, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r20, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r21, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r22, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r23, 0 &lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r24, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r25, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r26, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r27, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r28, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r29, 0 &lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r30, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r31, 0&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;//init internal_ram,heap,steak&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;lis r11,0x4000&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;ori r11,r11,0x3000 //Load strat address 0x4000_3000&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r12,0xc0 //12k/4 bytes/16 GPRs = 192 = 0xc0.&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;mtctr r12&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;init_SRAM_loop:&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;stmw r16,0(r11)&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;addi r11,r11,0x40 //increment the ram pointer by 64 bytes&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;bdnz init_SRAM_loop&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;//init exception_handlers&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;lis r11,0x4000&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;ori r11,r11,0x1000 //Load strat address 0x4000_1000&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;li r12,0x40 //4k/4 bytes/16 GPRs = 64 = 0x40.&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;mtctr r12&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;init_excep_loop:&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;stmw r16,0(r11)&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;addi r11,r11,0x40 //increment the ram pointer by 64 bytes&lt;/SPAN&gt;&lt;BR style="color: #51626f; font-size: 14px;" /&gt;&lt;SPAN style="color: #51626f; font-size: 14px;"&gt;bdnz init_excep_loop&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-size: 14px;"&gt;If I delete the above code, I joined the FLASH operation of the program can be downloaded to the RAM through the JTAG to run, and complete the FLASH operation, but can not be added through the BAM FLASH operation code to boot into RAM. If I do not delete the above code, I can not join the FLASH code through the JTAG boot to the normal operation of the RAM, BAM can not boot to the normal operation of RAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; background-color: #ffffff;"&gt;What would be the reason for this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660706#M7255</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-12T14:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660707#M7256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see you have commented out the __init_data() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3949i7232218E9DE341DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, global variables are not initialized - including pointers to SSD flash functions:&lt;/P&gt;&lt;P&gt;extern unsigned int FlashInit_C[];&lt;BR /&gt;extern unsigned int FlashErase_C[];&lt;BR /&gt;extern unsigned int BlankCheck_C[];&lt;BR /&gt;extern unsigned int FlashProgram_C[];&lt;BR /&gt;extern unsigned int ProgramVerify_C[];&lt;BR /&gt;extern unsigned int CheckSum_C[];&lt;BR /&gt;extern unsigned int GetLock_C[];&lt;BR /&gt;extern unsigned int SetLock_C[];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call the FlashInit:&lt;/P&gt;&lt;P&gt;returnCode = pFlashInit( &amp;amp;ssdConfig );&lt;/P&gt;&lt;P&gt;... it will crash...&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>Thu, 13 Apr 2017 05:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660707#M7256</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-13T05:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660708#M7257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #2b2b2b; font-size: 12px;"&gt;&lt;P class="" style="border: 0px; font-weight: bold; font-size: 1.5em; margin: 0px 0px 10px;"&gt;Thank you for your reply.&lt;SPAN style="background-color: #f8f8f8; font-weight: normal; font-size: 14px;"&gt;I added your prompt code, code but I will not run through the guidance of BAM into RAM. Examples of this is my revised, and bam recorded data transmission, would you please help me, thank you!!!!!&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;What would be the reason for this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; border-top-width: 1px; border-top-style: solid; border-top-color: #e0e0e0; font-size: 12px; padding: 0.5em 0.8em 0px 0px;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 07:36:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660708#M7257</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-13T07:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660709#M7258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see that the initial values of the global variables are loaded to RAM memory together with elf file. So, the initial values are already part of your binary image and there are some data at 0x40003000. This seems to be a feature of linker when creating RAM target for debugging. Function __init_data does not re-init these values (but I can see it copies some different data anyway). &lt;/P&gt;&lt;P&gt;So, I can see two solutions:&lt;/P&gt;&lt;P&gt;- initialize global variables manually at beginning of main function. In your example, initialize pointers to SSD functions and ssd_config structures. This is the easiest workaround.&lt;/P&gt;&lt;P&gt;- second option would be to get the last init address from linker file and initialize the RAM memory only behind this address.&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>Thu, 13 Apr 2017 09:32:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660709#M7258</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-13T09:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660710#M7259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your advice.If i adopt the first suggestion, what should i do? Can you give an example?&lt;BR /&gt;If I adopt the second suggestion, do I get last init address?&lt;BR /&gt;Thank you very much for your help, but I am confused about your suggestion. Do not know what to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 10:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660710#M7259</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-13T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660711#M7260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to run away in a few minutes, so here is just quick example for the first solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pointers are defined in this way in the project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Assign function pointers */&lt;BR /&gt;pFLASHINIT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFlashInit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pFLASHINIT)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlashInit_C;&lt;BR /&gt;pFLASHERASE&amp;nbsp;&amp;nbsp;&amp;nbsp; pFlashErase&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pFLASHERASE)&amp;nbsp;&amp;nbsp;&amp;nbsp; FlashErase_C;&lt;BR /&gt;pBLANKCHECK&amp;nbsp;&amp;nbsp;&amp;nbsp; pBlankCheck&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pBLANKCHECK)&amp;nbsp;&amp;nbsp;&amp;nbsp; BlankCheck_C;&lt;BR /&gt;pFLASHPROGRAM&amp;nbsp; pFlashProgram&amp;nbsp; = (pFLASHPROGRAM)&amp;nbsp; FlashProgram_C;&lt;BR /&gt;pPROGRAMVERIFY pProgramVerify = (pPROGRAMVERIFY) ProgramVerify_C;&lt;BR /&gt;pCHECKSUM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCheckSum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pCHECKSUM)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CheckSum_C;&lt;BR /&gt;pGETLOCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGetLock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pGETLOCK)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetLock_C;&lt;BR /&gt;pSETLOCK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pSetLock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pSETLOCK)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetLock_C; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the pointers are not initialized (cleared by your init code) initialize them like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;pFlashInit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pFLASHINIT)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlashInit_C;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;pFlashErase&amp;nbsp;&amp;nbsp;&amp;nbsp; = (pFLASHERASE)&amp;nbsp;&amp;nbsp;&amp;nbsp; FlashErase_C;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .... and so on... &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>Thu, 13 Apr 2017 11:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660711#M7260</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-13T11:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660712#M7261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, I need to initialize ssd_config structures? If you need any good advice? Can you tell me what the meaning of “&lt;SPAN&gt;Boot can be performed from any block in the Low Address Space except blocks 1b and 2b.&lt;/SPAN&gt;&amp;nbsp;”is？What does boot mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 10:30:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660712#M7261</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-15T10:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660713#M7262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pFlashInit = (pFLASHINIT) FlashInit_C; &lt;BR /&gt; pFlashErase = (pFLASHERASE) FlashErase_C;&lt;BR /&gt; pBlankCheck = (pBLANKCHECK) BlankCheck_C;&lt;BR /&gt; pFlashProgram = (pFLASHPROGRAM) FlashProgram_C;&lt;BR /&gt; pProgramVerify = (pPROGRAMVERIFY) ProgramVerify_C;&lt;BR /&gt; pCheckSum = (pCHECKSUM) CheckSum_C;&lt;BR /&gt; pGetLock = (pGETLOCK) GetLock_C;&lt;BR /&gt; pSetLock = (pSETLOCK) SetLock_C;&lt;BR /&gt; //&lt;BR /&gt; &lt;BR /&gt; A.BDMEnable=0xC3F88000;&lt;BR /&gt; A.c90flRegBase=0x00000000;&lt;BR /&gt; A.highBlockNum=0;&lt;BR /&gt; A.lowBlockNum=0;&lt;BR /&gt; A.mainArrayBase=0;&lt;BR /&gt; A.mainArraySize=0;&lt;BR /&gt; A.pageSize=0x08;&lt;BR /&gt; A.shadowRowBase=0;&lt;BR /&gt; A.shadowRowSize=0;&lt;BR /&gt; A.midBlockNum=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; background-color: #f8f8f8; font-weight: bold; font-size: 18px;"&gt;I have changed as you suggest, but I met a problem, and not just erase FLASH when they go wrong in&amp;nbsp;low and mid addr space of flash array 0。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; background-color: #f8f8f8; font-weight: bold; font-size: 18px;"&gt;CFLASH0.LMLR.R=0xA1A11111; /&lt;BR /&gt; CFLASH0.LMLR.B.LLOCK=0;&lt;BR /&gt; CFLASH0.SLMLR.R=0xC3C33333;&amp;nbsp;&lt;BR /&gt; CFLASH0.SLMLR.B.SLLOCK=0;&amp;nbsp;&lt;BR /&gt; CFLASH1.HLR.R=0xB2B22222;&lt;BR /&gt; CFLASH1.HLR.B.HBLOCK=0;&lt;BR /&gt; CFLASH2.HLR.R=0xB2B22222;&lt;BR /&gt; CFLASH2.HLR.B.HBLOCK=0;&lt;BR /&gt; //Erase Bank0, Array0&lt;BR /&gt; CFLASH0.MCR.B.ERS=1;&lt;BR /&gt; //step2:&lt;BR /&gt; //CFLASH0.LMSR.B.LSEL=0b11111111; //Select the block, or blocks, Two low address space blocks are selected for erase&lt;BR /&gt; //CFLASH0.LMSR.B.MSEL=0b1;&lt;BR /&gt; //CFLASH0.LMSR.R = 0x00000080;&lt;BR /&gt; //step3:&lt;BR /&gt; sp_FlashPageAddr32=(vuint32_t *)MAS_MED0_ADDR_128KB;&lt;BR /&gt; *sp_FlashPageAddr32=0xFFFFFFFF; //program data write&lt;BR /&gt; *((unsigned int*) 0x00048928) = 0xFFFFFFFF;&lt;BR /&gt; CFLASH0.MCR.B.EHV=1 ;&lt;BR /&gt; while(CFLASH0.MCR.B.DONE==0){ }//Wait until the FLASH_MCR[DONE] bit goes high&lt;BR /&gt; //step5:&lt;BR /&gt; while(CFLASH0.MCR.B.PEG==0){ }//Confirm FLASH_MCR[PEG] = 1.&lt;BR /&gt; //step6:&lt;BR /&gt; CFLASH0.MCR.B.EHV=0; //Write a logic 0 to the FLASH_MCR[EHV] bit.&lt;BR /&gt; //step7:If more blocks are to be erased, return to step 2&lt;BR /&gt; //step8:&lt;BR /&gt; CFLASH0.MCR.B.ERS=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; background-color: #f8f8f8; font-weight: bold; font-size: 18px;"&gt;&lt;SPAN&gt;I erase this so can't erase x40000 0-0 x80000 segment。&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b2b2b; background-color: #f8f8f8; font-weight: bold; font-size: 18px;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #1f497d; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;What would be the reason for this ?&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;Where is my wrong?&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;Thank you for your answer。&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Apr 2017 05:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660713#M7262</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-16T05:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660714#M7263</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;why do you waiting for PEG bit in this piece of code for erase?&lt;/P&gt;&lt;P&gt;See the sample code below how to do erase and program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Unlock all blocks in CFLASH0 except shadow block */&lt;BR /&gt;&amp;nbsp; CFLASH0.LMLR.R = 0xA1A11111;&lt;BR /&gt;&amp;nbsp; CFLASH0.LMLR.R = 0x00100000;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; CFLASH0.SLMLR.R = 0xC3C33333;&lt;BR /&gt;&amp;nbsp; CFLASH0.SLMLR.R = 0x00100000;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; /* Erase all blocks in CFLASH0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.ERS = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.LMSR.R = 0x000300FF; /* Select blocks */&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00010000 = 0xFFFFFFFF; /* Interlock write - write to any address in selected memory */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(CFLASH0.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.ERS = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Program double word */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.PGM = 1; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00001000 = 0xAABBCCDD; /* interlock write */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;*(unsigned int *)0x00001004 = 0x11223344; /* program data write */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(CFLASH0.MCR.B.DONE == 0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.EHV = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CFLASH0.MCR.B.PGM = 0;&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>Wed, 19 Apr 2017 14:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660714#M7263</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-19T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660715#M7264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/10997iB2EFB5C555C82C79/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I look at the data provided in the manual。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660715#M7264</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-19T15:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660716#M7265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your answer and advice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660716#M7265</guid>
      <dc:creator>wanglong</dc:creator>
      <dc:date>2017-04-19T15:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5634M Bam problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660717#M7266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, sorry, I mixed up PEG and PGM. My fault. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:12:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5634M-Bam-problem/m-p/660717#M7266</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-04-21T08:12:26Z</dc:date>
    </item>
  </channel>
</rss>

