<?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: asm in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469122#M26</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Martion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the doc of e200z420? Dose e200z420 have the time base register? Because when I execute "asm("mtspr 284, %%r3 \n\t"::);", it will occur IVOR6 exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void GetTBL_start(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/****************&lt;/P&gt;&lt;P&gt;// Clear Timebase&lt;/P&gt;&lt;P&gt;****************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("e_li %%r3, 0 \n\t"::);&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mtspr 284, %%r3 \n\t"::);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* read tbl&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mfspr %%r3, 268 \n\t"::);&amp;nbsp; /* TBL */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 06:20:52 GMT</pubDate>
    <dc:creator>yueli</dc:creator>
    <dc:date>2016-06-02T06:20:52Z</dc:date>
    <item>
      <title>asm</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469119#M23</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I use asm in the S32DS?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="152717_152717.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121690iC77B28A830520E18/image-size/large?v=v2&amp;amp;px=999" role="button" title="152717_152717.JPG" alt="152717_152717.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59104iF1F2CEC790FCAEBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 03:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469119#M23</guid>
      <dc:creator>yueli</dc:creator>
      <dc:date>2016-06-01T03:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: asm</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469120#M24</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;instead of NOP instruction you can use one of these:&lt;/P&gt;&lt;P&gt;asm("e_ori 0,0,0");&lt;/P&gt;&lt;P&gt;asm("e_nop");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to read/write from/to registers r0-r31, you have to use %.&lt;/P&gt;&lt;P&gt;asm("mtspr 268,%r3 ");&lt;/P&gt;&lt;P&gt;asm("mfspr %r3, 268 ");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also e_li instruction has to have this format:&lt;/P&gt;&lt;P&gt;asm("e_li %r3,0 ");&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>Wed, 01 Jun 2016 07:47:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469120#M24</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-06-01T07:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: asm</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469121#M25</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to add prefix "%" when referring to the core registers you can add the compiler switch &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;-Wa,-mregnames.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&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/59948i0982BBDE7B834951/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Now your inline asm statements like asm("e_li r3,0") should be accepted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Stan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:36:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469121#M25</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2016-06-01T08:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: asm</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469122#M26</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Martion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the doc of e200z420? Dose e200z420 have the time base register? Because when I execute "asm("mtspr 284, %%r3 \n\t"::);", it will occur IVOR6 exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void GetTBL_start(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/****************&lt;/P&gt;&lt;P&gt;// Clear Timebase&lt;/P&gt;&lt;P&gt;****************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("e_li %%r3, 0 \n\t"::);&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mtspr 284, %%r3 \n\t"::);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* read tbl&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm("mfspr %%r3, 268 \n\t"::);&amp;nbsp; /* TBL */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 06:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469122#M26</guid>
      <dc:creator>yueli</dc:creator>
      <dc:date>2016-06-02T06:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: asm</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469123#M27</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;e200z420 does not contain time base register. This feature is not implemented in the core. I have e200z420 core reference manual, but I cannot share it here, because it is confidential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you need it, please create case and some responsible person will send you the manual.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif;"&gt;&lt;A class="jive-link-wiki-small" data-containerid="2001" data-containertype="14" data-objectid="329745" data-objecttype="102" href="https://community.nxp.com/docs/DOC-329745"&gt;https://community.nxp.com/docs/DOC-329745&lt;/A&gt;&lt;/SPAN&gt; &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, 02 Jun 2016 07:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/asm/m-p/469123#M27</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-06-02T07:40:21Z</dc:date>
    </item>
  </channel>
</rss>

