<?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: use of global variables with MPC5643L, CW10.5 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276640#M10283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;This will probably require some further analysis.&lt;/P&gt;&lt;P&gt;Can you possibly submit a new Service Request:&amp;nbsp; &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework" style="font-size: 10pt; line-height: 1.5em;" title="https://www.freescale.com/webapp/servicerequest.create_SR.framework"&gt;New Service Request&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 12:22:32 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2014-03-21T12:22:32Z</dc:date>
    <item>
      <title>use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276634#M10277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on the MPC5643L using the tools RAPPID and CW10.5.&lt;/P&gt;&lt;P&gt;(development environment: XPC56xx EVB Motherboard Rev. C with XPC563xL 144LQFP MINI-MODULE equipped with µC PPC5643L)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with the use of global variables in my project. Running in debugger works fine. Stop debugging and do a power reset the µC does not start running.&lt;/P&gt;&lt;P&gt;It seems the µC starts working doing e. g. the initilazation of the ports for LEDs and then corrupts.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my source code: (µC is configured for DPM)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LL_var.c:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;#include "mpc5643l.h"&lt;/P&gt;&lt;P&gt;#include "kts\LL_var.h"&lt;/P&gt;&lt;P&gt;uint32_t dummy1 = 100;&lt;/P&gt;&lt;P&gt;uint32_t dummy2 = 200;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LL_var.h:&lt;/P&gt;&lt;P&gt;#ifndef LL_VAR_H_&lt;/P&gt;&lt;P&gt;#define LL_VAR_H_&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;extern uint32_t dummy1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;extern uint32_t dummy2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;main_p0.c:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;while(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // fa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy1 = 0x12345678;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy2 = 0x87654321;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // fa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If i just do "dummy1 = 0x12345678;" in while(1) (dummy2 commented out) it works fine with or without debugger.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if i define dummy1&amp;amp;2 as uint8 or unit16 it works fine with or without debugger. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Does anybody know this behaviour and can help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch Florian Farrenkopf: update&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276634#M10277</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2014-03-05T15:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276635#M10278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Florian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you possibly post your .elf file or better entire project if possible?&lt;/P&gt;&lt;P&gt;I suspect there is a startup issue. It might be related to e.g. SRAM init but I'd need more info for analysis.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276635#M10278</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2014-03-10T17:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276636#M10279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my entire demo project. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please contact me any time if you need further information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking forward for your analytics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Von: Stanislav Sliva  &lt;/P&gt;&lt;P&gt;Gesendet: Montag, 10. März 2014 18:45&lt;/P&gt;&lt;P&gt;An: Farrenkopf Florian&lt;/P&gt;&lt;P&gt;Betreff: Re:  - use of global variables with MPC5643L, CW10.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;https://community.freescale.com/&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use of global variables with MPC5643L, CW10.5 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Stanislav Sliva &amp;lt;https://community.freescale.com/people/stanish?et=watches.email.thread&amp;gt;  in CodeWarrior for MCU - View the full discussion &amp;lt;https://community.freescale.com/message/386831?et=watches.email.thread#386831&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 08:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276636#M10279</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2014-03-11T08:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276637#M10280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the mean time I have also built up a project in LS mode. Same behavior as DP mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 10:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276637#M10280</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2014-03-13T10:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276638#M10281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed the startup code (crt0_p0.s) does not include RAM ECC initialization routine.&lt;/P&gt;&lt;P&gt;If this routine is missing in debug - you don't see any problem since debugger script initializes the SRAM. But after a power on reset with no debugger connected an ECC exception might occur.&lt;/P&gt;&lt;P&gt;Can you possibly add the red code below into your crt0_p0.s rebuild the project and retest.&lt;/P&gt;&lt;P&gt;Please let me know if it helps.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;__start:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; .include "initialize_gpr.inc"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; .include "crt0_include_p0.inc"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_lis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, __SP_INIT_z4_0@h ; Initialize stack pointer r1 to&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_or2i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, __SP_INIT_z4_0@l&amp;nbsp;&amp;nbsp; ; value in linker command file.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_lis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r13, _SDA_BASE_@h ; Initialize r13 to sdata base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_or2i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r13, _SDA_BASE_@l ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_lis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r2, _SDA2_BASE_@h ; Initialize r2 to sdata2 base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_or2i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r2, _SDA2_BASE_@l ; (provided by linker).&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_addi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r0,r0,0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Clear r0.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; e_stwu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r1,-64(r1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Terminate stack.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier;"&gt;&amp;nbsp; /* SRAM initialization code 0x4000_0000, size 0x10000 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp; e_lis r11, 0x4000@h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; /* Loops to cover L2SRAM, stmw allows 128 bytes (32 GPRS x 4 bytes) writes */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; e_lis r12, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; e_or2i r12, 512&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt; start_init:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; mtctr r12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp; init_l2sram_loop:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_stmw&amp;nbsp; r0, 0(r11)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write 32 GPRs to SRAM*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_add16i r11, r11, 128&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Inc the ram ptr; 32 GPRs * 4 bytes = 128B */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_bdnz init_l2sram_loop&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Loop for L2SRAM_CNT */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* in decoupled mode initialize the core_1 SRAM also 0x5000_0000, size 0x10000*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_lis r12, 0x5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* check if we already initialized L2SRAM_LOCATION_P1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmplw r11, r12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; se_bgt exit_sram_init&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_lis r11, 0x5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //e_or2i r11, L2SRAM_LOCATION_P1@l &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_lis r12, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e_or2i r12, 512&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; se_b start_init&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit_sram_init:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; #endif&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 18:34:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276638#M10281</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2014-03-17T18:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276639#M10282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I integrated your code snippet into my DPM project. It does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached my modified crt0_p0.s file. Have I included it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The new included code are the lines between my comments // fa ….SRAM init… // fa.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Also tried with LSM project. Does also not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Von: Stanislav Sliva &lt;/P&gt;&lt;P&gt;Gesendet: Montag, 17. März 2014 19:46&lt;/P&gt;&lt;P&gt;An: Farrenkopf Florian&lt;/P&gt;&lt;P&gt;Betreff: Re:&amp;nbsp; - Re: use of global variables with MPC5643L, CW10.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;&lt;A class="" href="https://community.freescale.com/"&gt;https://community.freescale.com/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: use of global variables with MPC5643L, CW10.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;reply from Stanislav Sliva &amp;lt;&lt;/SPAN&gt;&lt;A class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="18393" data-objecttype="3" href="https://community.freescale.com/people/stanish?et=watches.email.thread"&gt;https://community.freescale.com/people/stanish?et=watches.email.thread&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&amp;nbsp; in CodeWarrior for MCU - View the full discussion &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/message/388536?et=watches.email.thread#388536"&gt;https://community.freescale.com/message/388536?et=watches.email.thread#388536&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 13:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276639#M10282</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2014-03-18T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276640#M10283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;This will probably require some further analysis.&lt;/P&gt;&lt;P&gt;Can you possibly submit a new Service Request:&amp;nbsp; &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework" style="font-size: 10pt; line-height: 1.5em;" title="https://www.freescale.com/webapp/servicerequest.create_SR.framework"&gt;New Service Request&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:22:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276640#M10283</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2014-03-21T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276641#M10284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok. I will open a service request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Florian&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:48:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276641#M10284</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2014-03-21T12:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276642#M10285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Please ignore my post with SRAM init code. RAppID init will generate SRAM initialization code if the correct option (ECC) is checked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Enable this ECC RappID option for all the cores you are using. Also make sure "Generate Code For Flash" option is enabled. and regenerate the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RappID_Enable_ECC.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43289i78FE80F70431E151/image-size/large?v=v2&amp;amp;px=999" role="button" title="RappID_Enable_ECC.png" alt="RappID_Enable_ECC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it does not help. Can you please also attach RappID init. project file (e.g. to the Service Request you've created)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276642#M10285</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2014-03-21T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276643#M10286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats it. This was the right hint.&lt;/P&gt;&lt;P&gt;I have tested it on both my LSM and DPM project and it works fine. :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just simple if you now what to do. :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Florian &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276643#M10286</guid>
      <dc:creator>flofa</dc:creator>
      <dc:date>2014-03-24T09:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276644#M10287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stanislav,&lt;/P&gt;&lt;P&gt;Could you please refer to a document where&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;e_bdnz&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;instruction is described?&lt;/P&gt;&lt;P&gt;I already checked inside&amp;nbsp;&lt;A href="http://cache.nxp.com/assets/documents/data/en/reference-manuals/VLEPEM.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1"&gt;Variable-Length Encoding (VLE) Programming Environments Manual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I was not able to find it there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably I found something:&amp;nbsp;&lt;A href="http://cache.nxp.com/assets/documents/data/en/supporting-information/VLEPIM.pdf?fsrch=1&amp;amp;sr=4&amp;amp;pageNum=1"&gt;Variable-Length Encoding (VLE) Extension Programming Interface Manual&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 11:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276644#M10287</guid>
      <dc:creator>yulianmatev</dc:creator>
      <dc:date>2017-04-06T11:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: use of global variables with MPC5643L, CW10.5</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276645#M10288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yulian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_bdnz is the instruction equivalent to &lt;STRONG&gt;e_bc 2,0,target ...&amp;nbsp;&lt;/STRONG&gt;Decrement CTR and branch if CTR ≠ 0&lt;/P&gt;&lt;P&gt;You can search "e_bdnz" in the VLE Extension Programming Interface Manual for more details:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/documents/data/en/supporting-information/VLEPIM.pdf" title="http://www.nxp.com/assets/documents/data/en/supporting-information/VLEPIM.pdf"&gt;http://www.nxp.com/assets/documents/data/en/supporting-information/VLEPIM.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 12:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/use-of-global-variables-with-MPC5643L-CW10-5/m-p/276645#M10288</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-04-06T12:09:14Z</dc:date>
    </item>
  </channel>
</rss>

