<?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: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594923#M4830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here's the project.&amp;nbsp; The 3 lines I changed in the lcf file are described in comments.&amp;nbsp; As I mentioned, the 32K settings run fine, the 64K settings won't run at all (debugger won't step off of the first line of crt0.s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2016 11:27:35 GMT</pubDate>
    <dc:creator>ronjaeger</dc:creator>
    <dc:date>2016-08-18T11:27:35Z</dc:date>
    <item>
      <title>We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weeds an</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594915#M4822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the SPC5605B processor, which is supposed to have 64K of RAM.&amp;nbsp; For some reason my predecessor set up the linker command file for 32K.&amp;nbsp; When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weeds and doesn't come back.&amp;nbsp; Is there anything else in the project that needs to be changed to use the whole 64K?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 19:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594915#M4822</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-11T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594916#M4823</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;could you please clarify, which IDE you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 06:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594916#M4823</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-08-12T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594917#M4824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I replied to the email, but apparently that didn't get posted here.&lt;/P&gt;&lt;P&gt;We are using CodeWarrior V10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further info:&lt;/P&gt;&lt;P&gt;This is what I changed in the lcf.&amp;nbsp; The 32K settings work, but the 64K settings don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__SRAM_BASE = 0x40000000;&lt;BR /&gt;__SRAM_SIZE = 0x&lt;STRONG&gt;10&lt;/STRONG&gt;000;&lt;/P&gt;&lt;P&gt;/* Changed from (32K):&lt;BR /&gt;__SRAM_SIZE = 0x8000;&lt;BR /&gt;*/&lt;BR /&gt;/* Changed to (64K):&lt;BR /&gt;__SRAM_SIZE = 0x01000;&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bootloader:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org=0x00000000, len=0x00008000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reserved:&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;&amp;nbsp; org=0x00008000, len=0x00000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org=0x00010000, len=0x000B0000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_flash:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org=0x00800000, len=0x00010000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sram:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org=0x40000000, len=0x0000&lt;STRONG&gt;FC&lt;/STRONG&gt;00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stack_ram:&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; org=0x4000&lt;STRONG&gt;FC&lt;/STRONG&gt;00, len=0x00000400&lt;BR /&gt;}&lt;BR /&gt;/* Changed from (32K):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sram:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org=0x40000000, len=0x00007C00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stack_ram:&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; org=0x40007C00, len=0x00000400&lt;BR /&gt;*/&lt;BR /&gt;/* Changed to (64K):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sram:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; org=0x40000000, len=0x0000FC00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stack_ram:&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; org=0x4000FC00, len=0x00000400&lt;BR /&gt;*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594917#M4824</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-15T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594918#M4825</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;have you correctly configured the following symbol in the linker file?&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;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; the whole L2SRAM (used for L2 SRAM initialization) */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;L2SRAM_CNT = 0x10000 / 128;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This symbol is used during startup (in HWInit.c file) and it ensures correct RAM initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 13:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594918#M4825</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-08-15T13:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594919#M4826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have variable L2SRAM_CNT or module HWInit.c.&amp;nbsp; This code has crt0.s and init_sram.s, which use these symbols defined in the lcf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__SRAM_BASE = 0x40000000;&lt;/P&gt;&lt;P&gt;__SRAM_SIZE = 0x10000;&lt;/P&gt;&lt;P&gt;__SP_INIT=ADDR(stack_ram)+SIZEOF(stack_ram);&lt;/P&gt;&lt;P&gt;__SP_END=ADDR(stack_ram);&lt;/P&gt;&lt;P&gt;__STACK_SIZE=SIZEOF(stack_ram);&lt;/P&gt;&lt;P&gt;__HEAP_END=__SP_END;&lt;/P&gt;&lt;P&gt;__FLASH_START_ADDRESS=ADDR(flash);&lt;/P&gt;&lt;P&gt;__FLASH_SIZE=SIZEOF(flash);&lt;/P&gt;&lt;P&gt;__RAM_START_ADDRESS=ADDR(sram);&lt;/P&gt;&lt;P&gt;__RAM_SIZE=SIZEOF(sram);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 14:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594919#M4826</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-15T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594920#M4827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok you have your own project structure, so it is a little bit difficult for me to provide you more information without deeper knowledge of your project. Could you please provide me some simple project, which demonstrates your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 05:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594920#M4827</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-08-16T05:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594921#M4828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I replied to your email with an attached small zipped-up project that demonstrates the problem.&amp;nbsp; If the settings in the lcf file are put back to the 32K settings, the code runs normally.&amp;nbsp; When built with the 64K settings, the code won’t run (the debugger won’t step off of the first line in crt0.s).&lt;/P&gt;&lt;P&gt;I didn't see a way to add an attachment here.&amp;nbsp; Let me know if you don't get the zipped file.&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 14:40:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594921#M4828</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-17T14:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594922#M4829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not receive the project. If you want to add attachment, click reply, and choose Use advanced editor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1539i7D325C4B87E522AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is the option Attach.&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/1617iA4F5307FFB2A5BAF/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;Please share the project once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 08:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594922#M4829</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-08-18T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594923#M4830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, here's the project.&amp;nbsp; The 3 lines I changed in the lcf file are described in comments.&amp;nbsp; As I mentioned, the 32K settings run fine, the 64K settings won't run at all (debugger won't step off of the first line of crt0.s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 11:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594923#M4830</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-18T11:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594924#M4831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your problem is this part of code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3142iD5378D8E6369C960/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At first, you should have set stack pointer before you initialize SRAM. Second problem is value in register r11 where you want to store r10 register (instruction e_stw). The value in r11 is 4001FC00, but your stack starts at 40010000. You have to fill stack from the address 40010000 to address 0x4001FC00. Fix this stack_loop in sram_init.s file and it will work correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 11:59:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594924#M4831</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-08-22T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594925#M4832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying, Martin.&lt;/P&gt;&lt;P&gt;The people who wrote this code are no longer here, and I'm not extremely familiar with PPC assembly.&amp;nbsp; From what I can tell, the intention is to load R11 with the value __SP_END (which is 4000FC00) with the instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; e_lis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r11, __SP_END@ha&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # low address of stack&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; e_or2i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r11, __SP_END@l&lt;/P&gt;&lt;P&gt;But as you mentioned, after executing these lines, R11 contains 4001FC00 rather than 4000FC00.&amp;nbsp; Since there is no RAM there, the stack_loop crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Immediately prior to these instructions, R11 contains 40010000 as a result of a previous loop.&amp;nbsp; It was obviously expected that the lines noted above would reset R11 to 4000FC00, but they don't.&amp;nbsp; I'm guessing this has something to do with sign extension or something, even though this is a load instruction, not an add instruction.&amp;nbsp; I don't quite understand why the load immediate doesn't set the upper address back to 4000.&amp;nbsp; Can you suggest the proper instructions to use here?&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;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 19:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594925#M4832</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-22T19:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594926#M4833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to correct my previous post a little bit. You can fill the stack memory from address 4000FC00 to 40010000. It is not necessary to access it from 40010000 downwards. It was my misunderstanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only need to fix the following line:&lt;/P&gt;&lt;P&gt;e_lis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r11, __SP_END@ha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this use only:&lt;/P&gt;&lt;P&gt;e_lis r11, __SP_END@h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work correct. You can check the address in r11 will be 4000FC00 now and you will be able to fill the stack with defined pattern DEADBEEF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any other question, please feel free to write me back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 08:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594926#M4833</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-08-23T08:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: We are using the SPC5605B processor, which is supposed to have 64K of RAM.  For some reason my predecessor set up the linker command file for 32K.  When I change the lcf settings to 64K, the project builds but when run, the code goes out into the weed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594927#M4834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fixed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 11:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/We-are-using-the-SPC5605B-processor-which-is-supposed-to-have/m-p/594927#M4834</guid>
      <dc:creator>ronjaeger</dc:creator>
      <dc:date>2016-08-23T11:15:46Z</dc:date>
    </item>
  </channel>
</rss>

