<?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>S32 Design StudioのトピックWaiting for a flag to set - hangs</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Waiting-for-a-flag-to-set-hangs/m-p/859063#M4348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many of the various code examples have simple wait instructions. For example:&lt;/P&gt;&lt;P&gt;while (CAN_A.MCR.B.NOTRDY == 0) {};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And these generally work. However, I occasionally (often) find that they do not work. For example:&lt;/P&gt;&lt;P&gt;while (eSCI_B.IFSR1.B.TDRE == 0) {};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one (checking for LIN to be ready) hangs; when I stop the debugger / halt execution it is just sitting on that line of code. I have in some cases created multiple lines of code to create an "equivalent" function, but that is sort of silly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS and mpc5777C. I've got most of the other peripherals (CAN, SPI, etc.) working. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2019 15:29:43 GMT</pubDate>
    <dc:creator>jackboatman</dc:creator>
    <dc:date>2019-02-13T15:29:43Z</dc:date>
    <item>
      <title>Waiting for a flag to set - hangs</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Waiting-for-a-flag-to-set-hangs/m-p/859063#M4348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many of the various code examples have simple wait instructions. For example:&lt;/P&gt;&lt;P&gt;while (CAN_A.MCR.B.NOTRDY == 0) {};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And these generally work. However, I occasionally (often) find that they do not work. For example:&lt;/P&gt;&lt;P&gt;while (eSCI_B.IFSR1.B.TDRE == 0) {};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one (checking for LIN to be ready) hangs; when I stop the debugger / halt execution it is just sitting on that line of code. I have in some cases created multiple lines of code to create an "equivalent" function, but that is sort of silly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using S32DS and mpc5777C. I've got most of the other peripherals (CAN, SPI, etc.) working. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:29:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Waiting-for-a-flag-to-set-hangs/m-p/859063#M4348</guid>
      <dc:creator>jackboatman</dc:creator>
      <dc:date>2019-02-13T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Waiting for a flag to set - hangs</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Waiting-for-a-flag-to-set-hangs/m-p/859064#M4349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad. Was working too fast and was trying to use IFSR1.B.TDRE. I should have been using IFSR2.B.TXRDY.&lt;/P&gt;&lt;P&gt;Code seems to work okay now. Sorry for the distraction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 20:43:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Waiting-for-a-flag-to-set-hangs/m-p/859064#M4349</guid>
      <dc:creator>jackboatman</dc:creator>
      <dc:date>2019-02-13T20:43:42Z</dc:date>
    </item>
  </channel>
</rss>

