<?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>LPC Microcontrollersのトピックoccasional hard fault exception on using IAP command to read UID</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873904#M34871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lpc1114‌&lt;/P&gt;&lt;P&gt;I use LPC1114XL controller and came across an issue with IAP command to read UID. I was using this command in background loop to service a UART request(from PC) to read information. The code works, but rarely ends up at hard fault exception handler. With bit of debugging I was able to consistently reproduce the issue.&amp;nbsp; The problem occurs when the IAP routine is preempted by an interrupt. I couldn't find this issue documented in reference manual or errata. Can someone confirm if this issue and proposed workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2019 11:31:28 GMT</pubDate>
    <dc:creator>brayannevillepa</dc:creator>
    <dc:date>2019-02-19T11:31:28Z</dc:date>
    <item>
      <title>occasional hard fault exception on using IAP command to read UID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873904#M34871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lpc1114‌&lt;/P&gt;&lt;P&gt;I use LPC1114XL controller and came across an issue with IAP command to read UID. I was using this command in background loop to service a UART request(from PC) to read information. The code works, but rarely ends up at hard fault exception handler. With bit of debugging I was able to consistently reproduce the issue.&amp;nbsp; The problem occurs when the IAP routine is preempted by an interrupt. I couldn't find this issue documented in reference manual or errata. Can someone confirm if this issue and proposed workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873904#M34871</guid>
      <dc:creator>brayannevillepa</dc:creator>
      <dc:date>2019-02-19T11:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: occasional hard fault exception on using IAP command to read UID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873905#M34872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that for programming Flash, you must disable interrupts - maybe you need to do that for any IAP command. BTW: Why don't you read the UID once (at boot time) and then just return the value when requested, instead of making multiple IAP calls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873905#M34872</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-02-19T14:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: occasional hard fault exception on using IAP command to read UID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873906#M34873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IAP uses a small memory area in SRAM, if you have interrupts this area might be overwritten (depending on you memory layout). This could explain the crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the User Manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;19.4.8&amp;nbsp; RAM used by ISP command handler&lt;/STRONG&gt;&lt;BR /&gt;ISP commands use on-chip RAM from 0x1000 017C to 0x1000 025B. The user could use&lt;BR /&gt;this area, but the contents may be lost upon reset. Flash programming commands use the&lt;BR /&gt;top 32 bytes of on-chip RAM. The stack is located at (RAM top − 32). The maximum stack&lt;BR /&gt;usage is 256 bytes and it grows downwards.&lt;BR /&gt;&lt;STRONG&gt;19.4.9&amp;nbsp; RAM used by IAP command handler&lt;/STRONG&gt;&lt;BR /&gt;Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack&lt;BR /&gt;usage in the user allocated stack space is 128 bytes and it grows downwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:16:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873906#M34873</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2019-02-19T18:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: occasional hard fault exception on using IAP command to read UID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873907#M34874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that probably explains it. I do have the interrupt vector table mapped to SRAM. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 00:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873907#M34874</guid>
      <dc:creator>brayannevillepa</dc:creator>
      <dc:date>2019-02-20T00:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: occasional hard fault exception on using IAP command to read UID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873908#M34875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion, I am&amp;nbsp;using&amp;nbsp;the IAP commands at init now.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 00:12:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/occasional-hard-fault-exception-on-using-IAP-command-to-read-UID/m-p/873908#M34875</guid>
      <dc:creator>brayannevillepa</dc:creator>
      <dc:date>2019-02-20T00:12:30Z</dc:date>
    </item>
  </channel>
</rss>

