<?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 CPU HANGS ON GUI_PID_StoreState ONLY WHEN GUI_DRAW PNG IS USED in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CPU-HANGS-ON-GUI-PID-StoreState-ONLY-WHEN-GUI-DRAW-PNG-IS-USED/m-p/515208#M1068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chetansd83 on Mon Jan 11 23:11:36 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Friends&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Embedded Artist board EA4357 with emwin 5.30 M4F library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All was working fine (Display, Touch etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence emwin5.30 doesn't have inbuilt png support, I have downloaded the emwin_png package (emWin_V5.26) from LPCware and included all files in my keil compilor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Program compiled and run properly (PNG images displayed). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as i touched the touch screen (anyware in screen) program hangs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After debugging I came to conclusion that program hangs when&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;GUI_PID_StoreState()&lt;/STRONG&gt;&lt;SPAN&gt; function is called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand what is the relation between GUI_PID_StoreState and GUI_Draw_png...??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing I observed, when I touched the touch screen, following error (debug) message is printed on serial port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;GUI_Alloc.c:&lt;BR /&gt;Dereferencing free block in GUI_ALLOC_h2p().GUI_Alloc.c:&lt;BR /&gt;Block is already unlocked in GUI_ALLOC_UnlockH().&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am clueless to solve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please Guide me what can be the reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chetan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:15:39 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:15:39Z</dc:date>
    <item>
      <title>CPU HANGS ON GUI_PID_StoreState ONLY WHEN GUI_DRAW PNG IS USED</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CPU-HANGS-ON-GUI-PID-StoreState-ONLY-WHEN-GUI-DRAW-PNG-IS-USED/m-p/515208#M1068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chetansd83 on Mon Jan 11 23:11:36 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Friends&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Embedded Artist board EA4357 with emwin 5.30 M4F library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All was working fine (Display, Touch etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence emwin5.30 doesn't have inbuilt png support, I have downloaded the emwin_png package (emWin_V5.26) from LPCware and included all files in my keil compilor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Program compiled and run properly (PNG images displayed). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as i touched the touch screen (anyware in screen) program hangs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After debugging I came to conclusion that program hangs when&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;GUI_PID_StoreState()&lt;/STRONG&gt;&lt;SPAN&gt; function is called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand what is the relation between GUI_PID_StoreState and GUI_Draw_png...??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing I observed, when I touched the touch screen, following error (debug) message is printed on serial port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;GUI_Alloc.c:&lt;BR /&gt;Dereferencing free block in GUI_ALLOC_h2p().GUI_Alloc.c:&lt;BR /&gt;Block is already unlocked in GUI_ALLOC_UnlockH().&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am clueless to solve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please Guide me what can be the reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chetan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:15:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CPU-HANGS-ON-GUI-PID-StoreState-ONLY-WHEN-GUI-DRAW-PNG-IS-USED/m-p/515208#M1068</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:15:39Z</dc:date>
    </item>
  </channel>
</rss>

