<?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 Disable interrupt will lead to program Collapse? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737218#M14380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;I happened to an issue. I used the ADC interrupt in my 9S12Xep100 CPU. I disable the&amp;nbsp;&lt;SPAN&gt;ADC interrupt in the course of running. Because the main loop and the ADC interrupt function will access a same varible, so in the main loop, before accessing the variable, I must disable the &amp;nbsp;ADC interrupt. I can see that sometime the ADC interrupt is disabled indeed. The result is that sometime the&amp;nbsp;program will collapse. I don't know why. Can someone answer my question? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 12:25:29 GMT</pubDate>
    <dc:creator>赵子成</dc:creator>
    <dc:date>2018-04-17T12:25:29Z</dc:date>
    <item>
      <title>Disable interrupt will lead to program Collapse?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737218#M14380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;I happened to an issue. I used the ADC interrupt in my 9S12Xep100 CPU. I disable the&amp;nbsp;&lt;SPAN&gt;ADC interrupt in the course of running. Because the main loop and the ADC interrupt function will access a same varible, so in the main loop, before accessing the variable, I must disable the &amp;nbsp;ADC interrupt. I can see that sometime the ADC interrupt is disabled indeed. The result is that sometime the&amp;nbsp;program will collapse. I don't know why. Can someone answer my question? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737218#M14380</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-04-17T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Disable interrupt will lead to program Collapse?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737219#M14381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How it works if you disable all interrupt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jennie Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 07:42:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737219#M14381</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-04-18T07:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disable interrupt will lead to program Collapse?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737220#M14382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jennie&lt;/P&gt;&lt;P&gt;I don't disable all interrupts. I just disable the ADC interrupt, and not all the time, just when the main loop access the virable which the ADC interrupt also access.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;MAIN LOOP:&lt;/P&gt;&lt;P&gt;Disable ADC interrupt&lt;/P&gt;&lt;P&gt;Access a certain virable&lt;/P&gt;&lt;P&gt;Enable &amp;nbsp;&lt;SPAN&gt;ADC interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADC interrupt:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access a certain same virable of Main LOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:20:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737220#M14382</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-05-09T11:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Disable interrupt will lead to program Collapse?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737221#M14383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've never used the S12, but try to run the program not in debug mode without the programmer, and see if it happens.&lt;/P&gt;&lt;P&gt;I faced such problems with other chips, and the blame was the programming pod I used.&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 08:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737221#M14383</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2018-05-10T08:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disable interrupt will lead to program Collapse?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737222#M14384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood your procedure.&lt;/P&gt;&lt;P&gt;I asked you disable all interrupt to verify if the problem is caused by other interrupt. Thus we can narrow download the trouble shooting to the right track.&lt;/P&gt;&lt;P&gt;Jennie Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 09:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Disable-interrupt-will-lead-to-program-Collapse/m-p/737222#M14384</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-05-10T09:57:57Z</dc:date>
    </item>
  </channel>
</rss>

