<?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 PWM module does not want to access the custom interrupt routine but always jumps to the default rout in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/PWM-module-does-not-want-to-access-the-custom-interrupt-routine/m-p/1885121#M435</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi there,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I am working with the FRDM-MCXA153 board.&lt;BR /&gt;I´m trying to get an interruot on every rising edge using the standart PWM example portet to c++.&lt;BR /&gt;So far so simpe, bit unfortunately the interrupt always wants to jump tot the standart interrupt routine (declared as WEAK) and ignores my self-written one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The PWM module is configured via ConfigTools -&amp;gt; Peripherals -&amp;gt; FLEXPWM0 and should generate an interrupt at VAL2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 11:54:25 GMT</pubDate>
    <dc:creator>fi_schi_</dc:creator>
    <dc:date>2024-06-11T11:54:25Z</dc:date>
    <item>
      <title>PWM module does not want to access the custom interrupt routine but always jumps to the default rout</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/PWM-module-does-not-want-to-access-the-custom-interrupt-routine/m-p/1885121#M435</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi there,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I am working with the FRDM-MCXA153 board.&lt;BR /&gt;I´m trying to get an interruot on every rising edge using the standart PWM example portet to c++.&lt;BR /&gt;So far so simpe, bit unfortunately the interrupt always wants to jump tot the standart interrupt routine (declared as WEAK) and ignores my self-written one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The PWM module is configured via ConfigTools -&amp;gt; Peripherals -&amp;gt; FLEXPWM0 and should generate an interrupt at VAL2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 11:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/PWM-module-does-not-want-to-access-the-custom-interrupt-routine/m-p/1885121#M435</guid>
      <dc:creator>fi_schi_</dc:creator>
      <dc:date>2024-06-11T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: PWM module does not want to access the custom interrupt routine but always jumps to the default</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/PWM-module-does-not-want-to-access-the-custom-interrupt-routine/m-p/1885175#M436</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if your main-file is written in c++, you need to add extern "C" before your ISR.&lt;/P&gt;&lt;P&gt;Following is a short text I found in the startup file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;//*****************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Forward declaration of the core exception handlers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// When the application defines a handler (with the same name), this will&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// automatically take precedence over these weak definitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// If your application is a C++ one, then any interrupt handlers defined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// in C++ files within in your main application will need to have C linkage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// rather than C++ linkage. To do this, make sure that you are using &lt;/SPAN&gt;&lt;SPAN&gt;extern&lt;/SPAN&gt;&lt;SPAN&gt; "C"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// { .... } around the interrupt handler within your main application code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//*****************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jun 2024 12:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/PWM-module-does-not-want-to-access-the-custom-interrupt-routine/m-p/1885175#M436</guid>
      <dc:creator>snech99</dc:creator>
      <dc:date>2024-06-11T12:05:55Z</dc:date>
    </item>
  </channel>
</rss>

