<?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>MQX Software Solutions中的主题 Re: Need fast context switch for _int_install_kernel_isr</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250488#M7217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution to context switching in 'C' when using _int_install_kernel_isr proved to be the use of __declspec&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;(interrupt)&lt;/SPAN&gt; in front of my isr definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partial solution to latency was to run from flash rather then NRAM.&amp;nbsp; At best latency is now ~110us as it should be, but at worst is still over 300us.&amp;nbsp; So something in MQX or RTCS is disabling interrupts.&amp;nbsp; Note that my ISR is level 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Hess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 13:54:25 GMT</pubDate>
    <dc:creator>OldPeculier</dc:creator>
    <dc:date>2013-07-30T13:54:25Z</dc:date>
    <item>
      <title>Need fast context switch for _int_install_kernel_isr</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250486#M7215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to service my FlexCAN ISR in ~100us (the rate that fames can be received).&lt;/P&gt;&lt;P&gt;Presently, _int_install_isr is taking 184us to over 354us.&amp;nbsp; FlexCAN interrupt level is 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possibly can use _int_install_kernel_isr but I have never done a context switch in Freescsale, nor in c.&amp;nbsp; Any examples for fast context switching?&lt;/P&gt;&lt;P&gt; Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 15:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250486#M7215</guid>
      <dc:creator>OldPeculier</dc:creator>
      <dc:date>2013-07-02T15:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need fast context switch for _int_install_kernel_isr</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250487#M7216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin Hess,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just&amp;nbsp; install isr for your vector with int_install_kernel_isr , enable vectors to be in RAM and measure the ISR invokation time. Is it around 100us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You ensure that your ISR routine outside of MQX "world" does not invoke any MQX internal functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;c1070&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 07:07:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250487#M7216</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-07-03T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need fast context switch for _int_install_kernel_isr</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250488#M7217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution to context switching in 'C' when using _int_install_kernel_isr proved to be the use of __declspec&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;(interrupt)&lt;/SPAN&gt; in front of my isr definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The partial solution to latency was to run from flash rather then NRAM.&amp;nbsp; At best latency is now ~110us as it should be, but at worst is still over 300us.&amp;nbsp; So something in MQX or RTCS is disabling interrupts.&amp;nbsp; Note that my ISR is level 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Hess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 13:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Need-fast-context-switch-for-int-install-kernel-isr/m-p/250488#M7217</guid>
      <dc:creator>OldPeculier</dc:creator>
      <dc:date>2013-07-30T13:54:25Z</dc:date>
    </item>
  </channel>
</rss>

