<?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>MPC5xxxのトピックRe: Machine check trap when write ETIMER registers in User mode</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902182#M13367</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;did you also enable User access in the Register Protection module? Set UAA bit of REG_PROT_GCR resister.&lt;/P&gt;&lt;P&gt;Below macro can be used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define REGPROT_GCR 0x3FFC&lt;/P&gt;&lt;P&gt;#define USER_ACCESS_ALLOWED(modulebaseaddress) (*(volatile uint32_t*)((uint32_t)modulebaseaddress+REGPROT_GCR)|=(uint32_t)(0x00800000))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 May 2019 05:58:13 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2019-05-07T05:58:13Z</dc:date>
    <item>
      <title>Machine check trap when write ETIMER registers in User mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902181#M13366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using MPC5744C for my project. Currently, I'm trying to write data to ETIMER in user mode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;ETIMER_0.CH[0].CNTR.R = 1000; //My code&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But Machine trap is fired (status is below pic):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64268iCFCC3A77A0984426/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I turned off all MPU mechanism and check AIPS configuration and it is OK. But Trap still happen.&lt;/P&gt;&lt;P&gt;So, Can you help me to find out trap's source?&lt;/P&gt;&lt;P&gt;Which reason can fired this trap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 03:59:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902181#M13366</guid>
      <dc:creator>phuong_nguyenle</dc:creator>
      <dc:date>2019-05-07T03:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Machine check trap when write ETIMER registers in User mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902182#M13367</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;did you also enable User access in the Register Protection module? Set UAA bit of REG_PROT_GCR resister.&lt;/P&gt;&lt;P&gt;Below macro can be used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define REGPROT_GCR 0x3FFC&lt;/P&gt;&lt;P&gt;#define USER_ACCESS_ALLOWED(modulebaseaddress) (*(volatile uint32_t*)((uint32_t)modulebaseaddress+REGPROT_GCR)|=(uint32_t)(0x00800000))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 05:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902182#M13367</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-05-07T05:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Machine check trap when write ETIMER registers in User mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902183#M13368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your guide. It solved my issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 06:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Machine-check-trap-when-write-ETIMER-registers-in-User-mode/m-p/902183#M13368</guid>
      <dc:creator>phuong_nguyenle</dc:creator>
      <dc:date>2019-05-07T06:32:49Z</dc:date>
    </item>
  </channel>
</rss>

