<?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>i.MX RT Crossover MCUsのトピックRe: InstallIRQHandler()</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1679962#M25783</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219744"&gt;@yuansongchen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;函数InstallIRQHandler()通常在启动文件中调用，这是在系统初始化时设置中断处理程序的地方。这个函数的目的是为特定的中断请求（IRQ）安装一个新的中断处理程序（IRQHandler）。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;以下是一个示例，展示了如何在启动文件中使用这个函数：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; /* 在启动文件中 */ extern void YourIRQHandler(void); /* 这是你的中断处理程序 */&lt;BR /&gt;int main(void) {     /* ...系统初始化代码... */&lt;BR /&gt;    /* 安装你的中断处理程序 */     InstallIRQHandler(YourIRQ, (uint32_t)YourIRQHandler);&lt;BR /&gt;    /* ...其余的代码... */ } &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;请注意，你需要将YourIRQ和YourIRQHandler替换为你的实际IRQ和处理程序。你的IRQHandler应该是一个函数，当IRQ发生时，它会被自动调用。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;希望这个答案能帮到你。如果你还有其他问题，欢迎继续提问。&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2023 07:56:12 GMT</pubDate>
    <dc:creator>giraffe508</dc:creator>
    <dc:date>2023-07-02T07:56:12Z</dc:date>
    <item>
      <title>InstallIRQHandler()</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1679957#M25782</link>
      <description>&lt;P&gt;&lt;FONT&gt;我&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;需要程序在RAM中运行，这需要将&lt;/FONT&gt;&lt;FONT&gt;.isr_vector从ROM复制到RAM，fsl_ Common_arm中的函数uint32。c_ InstallIRQHandler（IRQn_Type irq，uint32_t irqHandler）似乎就是这样做的。请问这个函数在哪里调用？&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 03:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1679957#M25782</guid>
      <dc:creator>yuansongchen</dc:creator>
      <dc:date>2023-07-02T03:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: InstallIRQHandler()</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1679962#M25783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219744"&gt;@yuansongchen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;函数InstallIRQHandler()通常在启动文件中调用，这是在系统初始化时设置中断处理程序的地方。这个函数的目的是为特定的中断请求（IRQ）安装一个新的中断处理程序（IRQHandler）。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;以下是一个示例，展示了如何在启动文件中使用这个函数：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; /* 在启动文件中 */ extern void YourIRQHandler(void); /* 这是你的中断处理程序 */&lt;BR /&gt;int main(void) {     /* ...系统初始化代码... */&lt;BR /&gt;    /* 安装你的中断处理程序 */     InstallIRQHandler(YourIRQ, (uint32_t)YourIRQHandler);&lt;BR /&gt;    /* ...其余的代码... */ } &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;请注意，你需要将YourIRQ和YourIRQHandler替换为你的实际IRQ和处理程序。你的IRQHandler应该是一个函数，当IRQ发生时，它会被自动调用。&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;希望这个答案能帮到你。如果你还有其他问题，欢迎继续提问。&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 07:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1679962#M25783</guid>
      <dc:creator>giraffe508</dc:creator>
      <dc:date>2023-07-02T07:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: InstallIRQHandler()</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1680411#M25795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219744"&gt;@yuansongchen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;如果你的程序是编译在RAM中的，那ROM boot自动会把整个image copy到RAM并指定IVT地址，不需要你再去搬一次。&lt;/P&gt;
&lt;P&gt;此外你也可以在任何时候改变IVT，只要改之前禁止全局中断。&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 09:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/InstallIRQHandler/m-p/1680411#M25795</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-07-03T09:59:17Z</dc:date>
    </item>
  </channel>
</rss>

