<?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 MPC5744P INTC unable to assign value in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1494122#M21622</link>
    <description>&lt;P&gt;Hello, Please help me. I tried to set an interrupt in MPC5744P. But no matter how hard I try, I cannot initial INTC registers and the IPVR register. As writing in MPC57XX_Interrupt_Init.c, I use "INTC.CPR0.R = 0U;" to&amp;nbsp;ensure INTC's current priority is 0 and use "INTC.IACKR0.R = (uint32_t) &amp;amp;IntcIsrVectorTable[0];" "SetIVPR ((unsigned int) &amp;amp;VTABLE);" to set IACKR0 register and IVPR register. It did not work.&amp;nbsp;The values of all those registers are initial values. I'm sure these codes are running because I changed the value of the general register r7 on the next line of "INTC.CPR0.R = 0U;" during debugging, and r7 was successfully assigned.&amp;nbsp;Three days have passed,&amp;nbsp;I tried many methods, but I still couldn't successfully assign values to the INTC registers and IVPR register. This is my project. Please help me have a look. I really need your help.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5ecae606e1103eeda12d77888941bed.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187563i50B37B1EB9E4B460/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5ecae606e1103eeda12d77888941bed.jpg" alt="5ecae606e1103eeda12d77888941bed.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5a85ea0aa15f68e6284c89ea5d1ccc6.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187564i76D1C4B8DAEBE0F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5a85ea0aa15f68e6284c89ea5d1ccc6.jpg" alt="5a85ea0aa15f68e6284c89ea5d1ccc6.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="billie60_0-1658502694708.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187565iD323D6DB94C6B4BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="billie60_0-1658502694708.png" alt="billie60_0-1658502694708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 15:18:08 GMT</pubDate>
    <dc:creator>billie60</dc:creator>
    <dc:date>2022-07-22T15:18:08Z</dc:date>
    <item>
      <title>MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1494122#M21622</link>
      <description>&lt;P&gt;Hello, Please help me. I tried to set an interrupt in MPC5744P. But no matter how hard I try, I cannot initial INTC registers and the IPVR register. As writing in MPC57XX_Interrupt_Init.c, I use "INTC.CPR0.R = 0U;" to&amp;nbsp;ensure INTC's current priority is 0 and use "INTC.IACKR0.R = (uint32_t) &amp;amp;IntcIsrVectorTable[0];" "SetIVPR ((unsigned int) &amp;amp;VTABLE);" to set IACKR0 register and IVPR register. It did not work.&amp;nbsp;The values of all those registers are initial values. I'm sure these codes are running because I changed the value of the general register r7 on the next line of "INTC.CPR0.R = 0U;" during debugging, and r7 was successfully assigned.&amp;nbsp;Three days have passed,&amp;nbsp;I tried many methods, but I still couldn't successfully assign values to the INTC registers and IVPR register. This is my project. Please help me have a look. I really need your help.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5ecae606e1103eeda12d77888941bed.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187563i50B37B1EB9E4B460/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5ecae606e1103eeda12d77888941bed.jpg" alt="5ecae606e1103eeda12d77888941bed.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5a85ea0aa15f68e6284c89ea5d1ccc6.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187564i76D1C4B8DAEBE0F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5a85ea0aa15f68e6284c89ea5d1ccc6.jpg" alt="5a85ea0aa15f68e6284c89ea5d1ccc6.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="billie60_0-1658502694708.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187565iD323D6DB94C6B4BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="billie60_0-1658502694708.png" alt="billie60_0-1658502694708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1494122#M21622</guid>
      <dc:creator>billie60</dc:creator>
      <dc:date>2022-07-22T15:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1495372#M21639</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have just tested your SW and you are really not triggering any interrupt.\&lt;/P&gt;
&lt;P&gt;I did it manually in my test on your SW and the interrupt is triggered as soon as I set priority and set SWTN.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1658821208079.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187825i33C909C5B79B713B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="petervlna_0-1658821208079.png" alt="petervlna_0-1658821208079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So it is good to understand how INTC works before going into any tests.&lt;/P&gt;
&lt;P&gt;I am not sure if you want to trigger SW interrupt or peripheral one, but you are setting none of them.&lt;/P&gt;
&lt;P&gt;Please have a close look at reference manual where it is explained:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_1-1658821440004.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187826i1A8794D7B296B3AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="petervlna_1-1658821440004.png" alt="petervlna_1-1658821440004.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Your approach is quite chaotic and I cant say what you want to achieve. Have also a look at my interrupt example for better understanding:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5744P-PIT-triggering-interrupts/ta-p/1102928" target="_blank"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5744P-PIT-triggering-interrupts/ta-p/1102928&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 07:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1495372#M21639</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2022-07-26T07:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1495383#M21641</link>
      <description>&lt;P&gt;Hello, I wanna set a performance monitor interrupt. But I wanna do it by software vector mode. Is this feasible?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 08:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1495383#M21641</guid>
      <dc:creator>billie60</dc:creator>
      <dc:date>2022-07-26T08:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1496364#M21662</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Now I am confused. You are mixing 2 thing together. INTC (external interrupt to core) and core interrup IVOR7 which is the:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1658924316506.png" style="width: 632px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188052iD9B716C0C5784594/image-dimensions/632x289?v=v2" width="632" height="289" role="button" title="petervlna_0-1658924316506.png" alt="petervlna_0-1658924316506.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The conditions for triggering IVOR7 are set above.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 12:19:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1496364#M21662</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2022-07-27T12:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1496365#M21663</link>
      <description>&lt;P&gt;Hello. So if I want to set a performance monitor interrupt, I do not need to set INTC registers?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 12:23:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1496365#M21663</guid>
      <dc:creator>billie60</dc:creator>
      <dc:date>2022-07-27T12:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1496368#M21664</link>
      <description>&lt;P&gt;PS: Do you have any example about performance monitor interrupt? If you have, please share me. I'm a&amp;nbsp;beginner and I'm confused too. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 12:27:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1496368#M21664</guid>
      <dc:creator>billie60</dc:creator>
      <dc:date>2022-07-27T12:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1498724#M21715</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I do not think there is such example code.&lt;/P&gt;
&lt;P&gt;But it is not that complex. Just follow core reference manual:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="petervlna_0-1659347203700.png" style="width: 746px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188648iD4D626CFF4951B6D/image-dimensions/746x376?v=v2" width="746" height="376" role="button" title="petervlna_0-1659347203700.png" alt="petervlna_0-1659347203700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 09:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1498724#M21715</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2022-08-01T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1499491#M21743</link>
      <description>&lt;P&gt;Hello, peter！&lt;/P&gt;&lt;P&gt;Now I can enter the interrupt! But I still have a problem.&lt;/P&gt;&lt;P&gt;I changed the code and entered the interrupt from IVOR7. I set some values in MSR and PM registers in startup.s. Like this:&lt;/P&gt;&lt;P&gt;mfmsr r7&lt;BR /&gt;e_or2i r7, 0x1201&lt;BR /&gt;mtmsr r7&lt;BR /&gt;wrteei 1&amp;nbsp; &amp;nbsp; &amp;nbsp; //set EE, ME, DE and RI = 1 in MSR&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;e_bl xcptn_xmpl&amp;nbsp; &amp;nbsp; //init INTC.IACKR, INTC.BCR and IVPR.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;e_lis r7, 0x8000&lt;BR /&gt;e_or2i r7, 0x0000&lt;BR /&gt;mtpmr 400, r7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//freeze all global counters&lt;BR /&gt;se_isync&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;e_lis r7, 0x0402&amp;nbsp;&lt;BR /&gt;e_or2i r7, 0x7000&amp;nbsp;&lt;BR /&gt;mtpmr 144, r7&amp;nbsp; //set up Instructions completed event in counter 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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;se_isync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//(set CE and EVENT = 0000 0010 in PMLCa0 register)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e_lis r7, 0X7fff&lt;BR /&gt;e_or2i r7, 0xffff&amp;nbsp;&lt;BR /&gt;mtpmr 16, r7&amp;nbsp; &amp;nbsp; //Set the initial value of PMC0 to 7fffffff, that is, interrupt after running an instruction.&lt;BR /&gt;se_isync&lt;/P&gt;&lt;P&gt;e_lis r7, 0x4000&lt;BR /&gt;e_or2i r7, 0x0000&lt;BR /&gt;mtpmr 400, r7&amp;nbsp; &amp;nbsp;//un-freeze all global counters, set PMGC[PMIE] = 1,&amp;nbsp;&lt;BR /&gt;se_isync&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Performance monitor interrupt Enable&lt;/P&gt;&lt;P&gt;;# Jump to Main&lt;BR /&gt;e_bl main&lt;/P&gt;&lt;P&gt;I write main like this:&lt;/P&gt;&lt;P&gt;void IVOR7_Exception_Handler(void);&lt;/P&gt;&lt;P&gt;int inhandler = 0;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int a = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int b = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(;;)&lt;BR /&gt;&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; a++;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b++;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void IVOR7_Exception_Handler(void){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inhandler ++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;My idea is to trigger the performance monitor interrupt when the program runs an instruction. But when it running, inhandler still = 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="b261f5985eb219efa511d7f2f94817d.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188803i951F81BF14730546/image-size/medium?v=v2&amp;amp;px=400" role="button" title="b261f5985eb219efa511d7f2f94817d.jpg" alt="b261f5985eb219efa511d7f2f94817d.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;However, when I run the dead loop in the program, press the reset key of the development board. Then I suspend the code and check the expressions view, inhandler changed to 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="b943d22b0651e4fa6db6f9708f3f6bf.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188804i4BB3CB99A1E33465/image-size/medium?v=v2&amp;amp;px=400" role="button" title="b943d22b0651e4fa6db6f9708f3f6bf.jpg" alt="b943d22b0651e4fa6db6f9708f3f6bf.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;But why can't the interrupt be entered when the program is running normally, and the inhandler value can only be changed after pressing the reset key? I have no idea. Can you help me?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 10:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1499491#M21743</guid>
      <dc:creator>billie60</dc:creator>
      <dc:date>2022-08-02T10:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1500008#M21757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What comes to my mind is the you disable interrupts in your code. Those are enabled by default after reset and pending interrupt is then executed.&lt;/P&gt;
&lt;P&gt;Have a look how you configure MSR (machine state register).&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 06:24:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1500008#M21757</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2022-08-03T06:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P INTC unable to assign value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1500151#M21760</link>
      <description>&lt;P&gt;Hello, peter&lt;/P&gt;&lt;P&gt;When I press reset button, MSR changed, from 1001001000000010(set MSR[EE][ME][DE][RI] = 1) to&amp;nbsp;10101100100100(set MSR[FP][FE0][DE][FE1][IS][PMM] = 1), So I directly initialize MSR to the latter in startup.s. It does not work, I also have to press the reset to change "inhandler".&lt;/P&gt;&lt;P&gt;PS: It is not mentioned in any user manual that the values of Fe0, Fe1, and IS need to be set to trigger the performance monitor interrupt.&lt;/P&gt;&lt;P&gt;After that, I added a branch to the main function like this:&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int a = 1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int b = 2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (a==1){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;a = a+b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;b = a+b;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for(;;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a++;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b++;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;And set PMLCa register event as event10 (Completed branch instructions, includes branch and link type instructions)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="0feb221ec6a524f7ce2ca14cca9a443.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188942i3A62142BA77392FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="0feb221ec6a524f7ce2ca14cca9a443.jpg" alt="0feb221ec6a524f7ce2ca14cca9a443.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Then I debug the project in S32DS. "inhandler" never changed no matter whether I press the reset or not. I have set event to make PMC(performance monitor counter) count the branch completed. And the initial value of PMC is 7fff ffff (Theoretically, running a branch can trigger an interrupt but it has not worked). It seems PMC never counts the code in main.c. Did I have any problem in my setting? I have studied PMU for many days but I also cannot make it interrupt as I wish. I wish your help. Thank you sooo much.&amp;nbsp;I uploaded the code I corrected. I hope you can read it and give some suggestions.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Billie&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 09:34:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-INTC-unable-to-assign-value/m-p/1500151#M21760</guid>
      <dc:creator>billie60</dc:creator>
      <dc:date>2022-08-03T09:34:09Z</dc:date>
    </item>
  </channel>
</rss>

