<?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: XS128 serial flash programming error. in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380838#M10816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0x300E is where the 16bits of the target address are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your tip really helped me as i moved the target address to the ones that you pointed and it worked. Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Nov 2014 16:00:50 GMT</pubDate>
    <dc:creator>PadelisGR</dc:creator>
    <dc:date>2014-11-30T16:00:50Z</dc:date>
    <item>
      <title>XS128 serial flash programming error.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380836#M10814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am working on a serial bootloader for which i dont have the original source code but i can debug it in Codewarrior with USBBDM.&lt;/P&gt;&lt;P&gt;The problem is when it reaches a certain point in the code. In sort it loads 0xF at GPAGE and then it stores a word or byte at the specified location.&lt;/P&gt;&lt;P&gt;On the GSTD or GSTAB instruction the cpu resets. So i have to start from the beginning. Here is the code in assemble language.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="plain" name="code"&gt;ORCC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #0X10 LDAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10 PSHB MOVB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #0xF, 0x0010 LDX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x300E LDD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3010 GSTD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0, X PULB STAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10 ANDCC #0xEF RTS&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cpu resets at the GSTD instruction.&lt;/P&gt;&lt;P&gt;A sort explanation on what the above code does is this,&lt;/P&gt;&lt;P&gt;Store 0xF to GPAGE&lt;/P&gt;&lt;P&gt;Load target address in X and word in D&lt;/P&gt;&lt;P&gt;Save word D at 0xF_xxxx.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone suggest something or have an idea on what is going wrong here?&lt;/P&gt;&lt;P&gt;I would expect that the 0xF_3000 is the "global" ram location which is the same as the "logical" ram location which is at 0x3000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2014 18:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380836#M10814</guid>
      <dc:creator>PadelisGR</dc:creator>
      <dc:date>2014-11-29T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: XS128 serial flash programming error.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380837#M10815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is stored in memory at 0x300E?&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;LDX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x300E&amp;nbsp; loads X reg from memory @0x300E.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I would expect that the 0xF_3000 is the "global" ram location which is the same as the "logical" ram location which is at 0x3000.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You expectations are wrong. See XS128 memory map depicted in Figure 1-2 in XS datasheet. Depending on available RAM size, 4k, 8k or 12k on XS64/XS128/XS256, RAM is available at global addresses 0xF_F000..0xF_FFFF / 0xF_E000.. / 0xF_D000..0xF_FFFF. Table 1-2 in datasheet specifies bottom global address for each derivative, see RAM_LOW column in Table 1-2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 12:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380837#M10815</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2014-11-30T12:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: XS128 serial flash programming error.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380838#M10816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0x300E is where the 16bits of the target address are stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your tip really helped me as i moved the target address to the ones that you pointed and it worked. Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 16:00:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XS128-serial-flash-programming-error/m-p/380838#M10816</guid>
      <dc:creator>PadelisGR</dc:creator>
      <dc:date>2014-11-30T16:00:50Z</dc:date>
    </item>
  </channel>
</rss>

