<?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 Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1227232#M43866</link>
    <description>&lt;P&gt;We had another production run with chips made in Q4 of 2020, very low fallout on that run.&lt;/P&gt;&lt;P&gt;There's another run today, so I'll be monitoring it.&lt;/P&gt;&lt;P&gt;Right now, I'm considering this a one-off event. Which hopefully it is because I've got four more products in the pipeline based on this chip.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 16:08:18 GMT</pubDate>
    <dc:creator>chrispflieger</dc:creator>
    <dc:date>2021-02-05T16:08:18Z</dc:date>
    <item>
      <title>LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211334#M43559</link>
      <description>&lt;P&gt;I've never seen something like this. Ever.&lt;/P&gt;&lt;P&gt;This software has been in production for some time, but we've recently had a fallout of a considerable percentage. I've spent the last day trying to figure it out, and I've been able to prove that if I turn off optimization (going to -O0 instead of -Os), it runs. Otherwise, it near immediately hard faults.&lt;/P&gt;&lt;P&gt;I've got a batch of identical production run devices, and the one that fail all have similar coding:&lt;/P&gt;&lt;PRE&gt;LPC11E67J&lt;BR /&gt;23 13&lt;BR /&gt;ZSD20&lt;BR /&gt;121A&lt;/PRE&gt;&lt;P&gt;I'm running FreeRTOS 10.0.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one task that does some serious DSP on audio, so I can't live with the RTOS running slow. In fact, to get it to run, I had to disable that task. If I enable it, it hits a hard fault.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 23:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211334#M43559</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-01-13T23:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211349#M43560</link>
      <description>&lt;P&gt;I upgraded to FreeRTOS v10.4.3 - it runs with full optimization. But, I have to disable the I2S (via SPI &amp;amp; DMA) to prevent a hard fault.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 22:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211349#M43560</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-01-13T22:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211374#M43561</link>
      <description>&lt;P&gt;A bit more about that - I can turn on the SPI, so long as I don't actually turn on the DMA that drives it. I have to comment out the last two lines of the init function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if my DMA ISR just dumps the data in the trash, it hard faults - but only on &lt;EM&gt;some&lt;/EM&gt; MCUs. On most boards this is working rock solid.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 23:40:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211374#M43561</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-01-13T23:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211991#M43575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94464"&gt;@chrispflieger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's an interesting problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand you properly , the issue seems to be parts with the part marking that you gave.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to provide some demo code were the issue is replicated?&lt;/P&gt;
&lt;P&gt;In you FreeRTOS tasks, could you provide more details on how&amp;nbsp; the SPI and DMA peripherals accessed and configured ? Do you have some kind of synchronization technique for&amp;nbsp; this?&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;All the best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;
&lt;P&gt;Edith: re-phrasing&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 00:41:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1211991#M43575</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-01-15T00:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1212541#M43582</link>
      <description>&lt;P&gt;I've attached the I2S driver. On a bad board, I need to disable the last line, which then keeps it from running.&lt;/P&gt;&lt;P&gt;I still can't figure out why an older version of FreeRTOS wouldn't run, but a newer one would. I ran it with minimal tasks, and with no devices, or off chip interfaces... I even tried to run code from another project (we use that chip and code base in a lot of production devices), it hard faulted there as well.&lt;/P&gt;&lt;P&gt;Even with I2S turned off, I still think there's occasional hard faults - maybe every ten or twenty minutes. I need to investigate that more.&lt;/P&gt;&lt;P&gt;Debugging hard faults on a CM0 is a real pain, but I can provide whatever data you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, I do see some problems on ZSD20 331A parts, but never on any made in 2019 or 2018.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 18:51:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1212541#M43582</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-01-15T18:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1213566#M43608</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94464"&gt;@chrispflieger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your code and additional information. &lt;/P&gt;
&lt;P&gt;Regarding hardware , Are you able to perform the following swap test and let me know your results?&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;1 Solder&amp;nbsp; a chip from&amp;nbsp; 2020 into a&amp;nbsp; 2019 or 2018 board.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;2 Solder&amp;nbsp; a chip from&amp;nbsp; 2018 or 2019 into a&amp;nbsp; 2020 board .&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 19:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1213566#M43608</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-01-18T19:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1214896#M43609</link>
      <description>&lt;P&gt;I failed on the first swap - I'll try another one. My solder rework skills aren't the best.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 22:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1214896#M43609</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-01-18T22:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1216557#M43618</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94464"&gt;@chrispflieger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your update and help for doing this procedure.&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 06:04:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1216557#M43618</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-01-19T06:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1223452#M43779</link>
      <description>&lt;P&gt;I had a few more failures in the last production run, but my CM is telling me they don't have anymore parts with these lot numbers.&lt;/P&gt;&lt;P&gt;So, at this point, I don't have the time to chase this anymore.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 19:41:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1223452#M43779</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-01-29T19:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1226793#M43856</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94464"&gt;@chrispflieger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just wanted to provide follow up.&lt;/P&gt;
&lt;P&gt;Many thanks you for update and your efforts to follow my previous recommendation.&lt;/P&gt;
&lt;P&gt;You may also check with your distributor if you are getting more failures with&amp;nbsp; more lots .However I am not sure how your distributor may work. As far as I know some distributors use&amp;nbsp; to request swap tests before checking for any possible quality incident. I am not implying that your chips&amp;nbsp;have a quality issue, but just mentioning this to narrow down the issue.&lt;/P&gt;
&lt;P&gt;Is there something else where I can help you with?&lt;/P&gt;
&lt;P&gt;I am sorry for the delay.&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 04:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1226793#M43856</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-02-05T04:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11e6x + FreeRTOS + optimizer = hard fault on _some_ chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1227232#M43866</link>
      <description>&lt;P&gt;We had another production run with chips made in Q4 of 2020, very low fallout on that run.&lt;/P&gt;&lt;P&gt;There's another run today, so I'll be monitoring it.&lt;/P&gt;&lt;P&gt;Right now, I'm considering this a one-off event. Which hopefully it is because I've got four more products in the pipeline based on this chip.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 16:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11e6x-FreeRTOS-optimizer-hard-fault-on-some-chips/m-p/1227232#M43866</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2021-02-05T16:08:18Z</dc:date>
    </item>
  </channel>
</rss>

