<?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 LPC804 not leaving while loop in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419007#M47999</link>
    <description>&lt;P&gt;So I'm using an LPC804 with a slightly adjusted version of the SBL as of AN12378. The SBL executes correctly and switches to another Program. This program is basically used for IAP via SPI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the slave never leaves the loop waiting for the finish of the Data Transfer. ALTHOUGH the loop condition is FALSE after the transmission finishes. I have actually no idea why the chip is behaving like this...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variable false.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/171660i8445289440F28102/image-size/medium?v=v2&amp;amp;px=400" role="button" title="variable false.png" alt="variable false.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 10:07:59 GMT</pubDate>
    <dc:creator>lennartpt</dc:creator>
    <dc:date>2022-02-24T10:07:59Z</dc:date>
    <item>
      <title>LPC804 not leaving while loop</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419007#M47999</link>
      <description>&lt;P&gt;So I'm using an LPC804 with a slightly adjusted version of the SBL as of AN12378. The SBL executes correctly and switches to another Program. This program is basically used for IAP via SPI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the slave never leaves the loop waiting for the finish of the Data Transfer. ALTHOUGH the loop condition is FALSE after the transmission finishes. I have actually no idea why the chip is behaving like this...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variable false.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/171660i8445289440F28102/image-size/medium?v=v2&amp;amp;px=400" role="button" title="variable false.png" alt="variable false.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:07:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419007#M47999</guid>
      <dc:creator>lennartpt</dc:creator>
      <dc:date>2022-02-24T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 not leaving while loop</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419029#M48000</link>
      <description>&lt;P&gt;The variable, slaveActive, I assume that is being set by an interrupt routine ?&lt;/P&gt;&lt;P&gt;Make sure that slaveActive is defined as being "volatile", otherwise the while loop will not read it from actual memory (but rather keep it in a register...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419029#M48000</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2022-02-24T10:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 not leaving while loop</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419034#M48001</link>
      <description>&lt;P&gt;Wow, I had many different problems besides this one, also tried using volatile before, but obviously not in the same constellation... and then such a simple change fixes all of my problems at once..&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 10:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-not-leaving-while-loop/m-p/1419034#M48001</guid>
      <dc:creator>lennartpt</dc:creator>
      <dc:date>2022-02-24T10:40:10Z</dc:date>
    </item>
  </channel>
</rss>

