<?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>Processor Expert Software中的主题 Problems with UART with interrupts and FLASH on S08mm32</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695609#M4065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a codewarrior 10.7 / processor expert project for the S08mm32. &amp;nbsp;I am using the processor expert beans for the AsynchroSerial using interrupts (because I need to use the buffer) and the&amp;nbsp;IntFLASH. &amp;nbsp; If I have interrupts enabled on the asynchronous serial, writing and reading from flash hangs.the processor. &amp;nbsp;If I don't have interrupts enabled, writing and reading from flash works, but I can't get the asynchronous serial to work (possibly because I can't poll quick enough to service it). &amp;nbsp;How can I get both to work?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18173i87D2ABCC91676B71/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18227i520F65A8B55E4F28/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18283iBBEE69ACD6EC21BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if there is more information I can offer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Aug 2017 05:46:06 GMT</pubDate>
    <dc:creator>Spikey_Mikey</dc:creator>
    <dc:date>2017-08-11T05:46:06Z</dc:date>
    <item>
      <title>Problems with UART with interrupts and FLASH on S08mm32</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695609#M4065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a codewarrior 10.7 / processor expert project for the S08mm32. &amp;nbsp;I am using the processor expert beans for the AsynchroSerial using interrupts (because I need to use the buffer) and the&amp;nbsp;IntFLASH. &amp;nbsp; If I have interrupts enabled on the asynchronous serial, writing and reading from flash hangs.the processor. &amp;nbsp;If I don't have interrupts enabled, writing and reading from flash works, but I can't get the asynchronous serial to work (possibly because I can't poll quick enough to service it). &amp;nbsp;How can I get both to work?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18173i87D2ABCC91676B71/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18227i520F65A8B55E4F28/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18283iBBEE69ACD6EC21BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if there is more information I can offer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 05:46:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695609#M4065</guid>
      <dc:creator>Spikey_Mikey</dc:creator>
      <dc:date>2017-08-11T05:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with UART with interrupts and FLASH on S08mm32</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695610#M4066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'm afraid that S08 flash is not readable while being programmed, and so &lt;/P&gt;&lt;P&gt;you have to disable interrupts when write/erase flash.&lt;/P&gt;&lt;P&gt;There is a same question with yours, you can have a look: &lt;A href="https://community.nxp.com/message/931493"&gt;https://community.nxp.com/message/931493&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can&amp;nbsp; transmit a block of&amp;nbsp; data ,then flash, then transmit a block data, then ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 09:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695610#M4066</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-08-18T09:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with UART with interrupts and FLASH on S08mm32</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695611#M4067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing me to the other thread. &amp;nbsp;I feel like I covered the issues described there. &amp;nbsp;For example, here is how I do my flash writes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void HandleFlashWrite(){&lt;BR /&gt; byte bErr;&lt;BR /&gt; &lt;BR /&gt; if((gbWriteFlash==1)&amp;amp;&amp;amp;(gbNumberOfFlashBytes&amp;lt;37)){&lt;BR /&gt; __DI(); // Disable interrupts&lt;BR /&gt; bErr = IFsh1_SetBlockFlash(&amp;amp;gbFlashData[0],gwFlashAddress, gbNumberOfFlashBytes);&lt;BR /&gt; gbWriteFlash = 0;&lt;BR /&gt; __EI(); // Enable interrupts&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I still end up with my code hung every so often. &amp;nbsp;Is there more than just disabling interrupts during flash writing that I need to take care of?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 04:26:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695611#M4067</guid>
      <dc:creator>Spikey_Mikey</dc:creator>
      <dc:date>2017-08-29T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with UART with interrupts and FLASH on S08mm32</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695612#M4068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the flash command is wrong, maybe something else.&lt;/P&gt;&lt;P&gt;You need debug step into&amp;nbsp;&amp;nbsp; to check where it hung ,then check the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 06:03:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problems-with-UART-with-interrupts-and-FLASH-on-S08mm32/m-p/695612#M4068</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-08-29T06:03:44Z</dc:date>
    </item>
  </channel>
</rss>

