<?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: lpc1788 read lcd regs cause hardfault in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599063#M23205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, zhou!&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;1. My lpc1788 board is my own design ! I also attach scheme (panel.pdf) for reference.&lt;/P&gt;&lt;P&gt;2. I debug your project  on my board , error no change.&lt;/P&gt;&lt;P&gt;3. I add three line code in  LCD_Demo project  from NXP package.&lt;/P&gt;&lt;P&gt;change OSC to 24M(my board's config), and change target to lpc1788.&lt;/P&gt;&lt;P&gt;recompile, start debug. error no change.please note LCDC registers in IAR IDE, no value!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think error maybe  in my hardware design, but I don't known  where.&lt;/P&gt;&lt;P&gt;maybe rtc? reset ? &lt;/P&gt;&lt;P&gt;please check my scheme design.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 13:55:52 GMT</pubDate>
    <dc:creator>hainie</dc:creator>
    <dc:date>2016-10-26T13:55:52Z</dc:date>
    <item>
      <title>lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599061#M23203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC1788FBD208 after set PCONP.PCLCD=1, read LCD_CTRL or other lcd regs cause HardFault,&lt;/P&gt;&lt;P&gt;busfault addr:0x20088018&lt;/P&gt;&lt;P&gt;and write lcd regs no effect, code is below:&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;LPC_SC-&amp;gt;PCONP |= CLKPWR_PCONP_PCLCD;&lt;/P&gt;&lt;P&gt;LPC_LCD-&amp;gt;CTRL = 1 // no effect&lt;BR /&gt; LPC_LCD-&amp;gt;CTRL &amp;amp;= ~(1&amp;lt;&amp;lt;11); // casue HardFault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599061#M23203</guid>
      <dc:creator>hainie</dc:creator>
      <dc:date>2016-10-25T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599062#M23204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hai nie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have test the LCD on my IAR_1788 board, when I test your three lines code on my side, it works ok:&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/7387iF880AB22161182C1/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;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So I think it caused by your code, you can debug your code, and check the LCD_CTRL register, when configure it, whether the register has been the data which you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can refer to the code from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/lpc177x-and-lpc178x-cmsis-compliant-standard-peripheral-firmware-driver-library-keil" title="https://www.lpcware.com/content/nxpfile/lpc177x-and-lpc178x-cmsis-compliant-standard-peripheral-firmware-driver-library-keil"&gt;LPC177x and LPC178x CMSIS-Compliant Standard Peripheral Firmware Driver Library (Keil, IAR) | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Besides, I also attach one IAR LCD project for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please use these LCD code and test it on your side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you still have problem, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 05:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599062#M23204</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-26T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599063#M23205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, zhou!&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;1. My lpc1788 board is my own design ! I also attach scheme (panel.pdf) for reference.&lt;/P&gt;&lt;P&gt;2. I debug your project  on my board , error no change.&lt;/P&gt;&lt;P&gt;3. I add three line code in  LCD_Demo project  from NXP package.&lt;/P&gt;&lt;P&gt;change OSC to 24M(my board's config), and change target to lpc1788.&lt;/P&gt;&lt;P&gt;recompile, start debug. error no change.please note LCDC registers in IAR IDE, no value!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think error maybe  in my hardware design, but I don't known  where.&lt;/P&gt;&lt;P&gt;maybe rtc? reset ? &lt;/P&gt;&lt;P&gt;please check my scheme design.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:55:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599063#M23205</guid>
      <dc:creator>hainie</dc:creator>
      <dc:date>2016-10-26T13:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599064#M23206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hai nie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It seems your LCD module is not powered on or no clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check the PCONP-&amp;gt;PCLCD regester, did you really open it?&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/7342i1713E33636A6BFA7/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;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the clock, we can get that the default the LCD clock is from CCLK, so please checking yoru configuration, whether the CCLK have clock or not?&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/7388i6FC7EA422C0C215B/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;/P&gt;&lt;P&gt;Please check these points on your side, if you are using the OSC, please also check your OSC, whether it is oscillating in your hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 08:15:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599064#M23206</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-27T08:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599065#M23207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhou !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the chip lpc1788FBD208 is the reason , This  chip is buy from Tmall ( tmall.com), and maybe is remarked!&lt;/P&gt;&lt;P&gt;Maybe this chip is not really LPC1788, and don't have LCD function.I will buy new chip to test.&lt;/P&gt;&lt;P&gt;And will tell you test result,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 09:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599065#M23207</guid>
      <dc:creator>hainie</dc:creator>
      <dc:date>2016-10-27T09:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599066#M23208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hai,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, your problem is really like the LCD module is missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you buy it in Tmall... the quality can't be guaranteed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please buy the chip in the proper channels, you can find the &lt;SPAN style="color: #646464; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;distributors &lt;/SPAN&gt;from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/zh-Hans/webapp/sps/site/distributor.sp?orderablePartNum=LPC1788FBD208,551" title="http://www.nxp.com/zh-Hans/webapp/sps/site/distributor.sp?orderablePartNum=LPC1788FBD208,551"&gt;http://www.nxp.com/zh-Hans/webapp/sps/site/distributor.sp?orderablePartNum=LPC1788FBD208,551&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Any question or updated information, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 09:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599066#M23208</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-27T09:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599067#M23209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Zhou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC1788 LCD problem is the chip is remarked, thank you for your help, &lt;/P&gt;&lt;P&gt;and now I have another problem about usb device:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. attach file is my usb scheme, and my design does NOT  use VBUS ,SoftConnect, USB_LED pin. is it right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. when I run  lpc177x.lpc178x.cmsis.driver.library_2012.8.13\Examples\USBDEV\USB_VirtualCom, then plug usb into PC,&lt;/P&gt;&lt;P&gt;   then windows 7 's device manager show UNKNOWN DEVICE, and PID VID all zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. below is main() function, demo code unchanged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:03:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599067#M23209</guid>
      <dc:creator>hainie</dc:creator>
      <dc:date>2016-11-04T10:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 read lcd regs cause hardfault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599068#M23210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hai nie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Normally, one post for one topic question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For the new USB question, please create a new post, then we will reply you in your new post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This method will also help the other customer to find the similar question easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So, please create a new case about the USB, and if your problem about the LCD is solved, please mark the correct answer to close this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your understanding!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 01:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-read-lcd-regs-cause-hardfault/m-p/599068#M23210</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-11-07T01:39:44Z</dc:date>
    </item>
  </channel>
</rss>

