<?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: [LPC4357] Enable RTC and show the time on display panel using emWin function, and then the system crashed. in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Enable-RTC-and-show-the-time-on-display-panel-using/m-p/579041#M19941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lturcotte on Thu Jan 16 15:50:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I encounter a similar problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the benefit of others, here is my solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From LPC open, file: clock_18xx_43xx.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; the Chip_Clock_RTCEnable was reprogramming the CLK0 pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLK0 is used for the SDRAM interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Enable RTC Clock */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void Chip_Clock_RTCEnable(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CREG-&amp;gt;CREG0 &amp;amp;= ~((1 &amp;lt;&amp;lt; 3) | (1 &amp;lt;&amp;lt; 2));/* Reset 32Khz oscillator */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CREG-&amp;gt;CREG0 |= (1 &amp;lt;&amp;lt; 1) | (1 &amp;lt;&amp;lt; 0);/* Enable 32 kHz &amp;amp; 1 kHz on osc32k and release reset */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// conflict with SDRAM clock pin, do not reprogram clock pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//LPC_SCU-&amp;gt;SFSCLK[0] = 1 | (0x3 &amp;lt;&amp;lt; 2);/* function 1; CGU clk out, pull down */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:03:49 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:03:49Z</dc:date>
    <item>
      <title>[LPC4357] Enable RTC and show the time on display panel using emWin function, and then the system crashed.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Enable-RTC-and-show-the-time-on-display-panel-using/m-p/579040#M19940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wangchainh on Tue Apr 02 02:07:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question about using the rtc and emwin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Software:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code base on LPC open 1.01.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;emWin 518 1.00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hardware:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC4357 Demo board&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the project hello_world, and show some strings or show a jpg/gif/bmp on display panel. It is no any problem. (Path: ..\lpcopen\applications\lpc18xx_43xx\examples\emWin\emwin_hello_world)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the project hello_world, and enable RTC. RTC can work well. I can print the time via USARE 3. (RTC code copy from .. \lpcopen\applications\lpc18xx_43xx\examples\periph\periph_rtc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, I enabled the RTC and then called any emWin function. The system will crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody know why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: hello_world have enabled two framebuffer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Enable-RTC-and-show-the-time-on-display-panel-using/m-p/579040#M19940</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC4357] Enable RTC and show the time on display panel using emWin function, and then the system crashed.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Enable-RTC-and-show-the-time-on-display-panel-using/m-p/579041#M19941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lturcotte on Thu Jan 16 15:50:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I encounter a similar problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the benefit of others, here is my solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From LPC open, file: clock_18xx_43xx.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; the Chip_Clock_RTCEnable was reprogramming the CLK0 pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLK0 is used for the SDRAM interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Enable RTC Clock */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void Chip_Clock_RTCEnable(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CREG-&amp;gt;CREG0 &amp;amp;= ~((1 &amp;lt;&amp;lt; 3) | (1 &amp;lt;&amp;lt; 2));/* Reset 32Khz oscillator */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CREG-&amp;gt;CREG0 |= (1 &amp;lt;&amp;lt; 1) | (1 &amp;lt;&amp;lt; 0);/* Enable 32 kHz &amp;amp; 1 kHz on osc32k and release reset */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// conflict with SDRAM clock pin, do not reprogram clock pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//LPC_SCU-&amp;gt;SFSCLK[0] = 1 | (0x3 &amp;lt;&amp;lt; 2);/* function 1; CGU clk out, pull down */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:03:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-Enable-RTC-and-show-the-time-on-display-panel-using/m-p/579041#M19941</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:03:49Z</dc:date>
    </item>
  </channel>
</rss>

