<?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のトピックRe: unstable project</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515470#M1202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by YOZHik on Thu Oct 24 07:31:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into the same problem when tried to change widget parameters from interrupts while GUI_Exec() function was running. It might be the same with your case as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:17:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:17:50Z</dc:date>
    <item>
      <title>unstable project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515465#M1197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pcalton on Fri Aug 16 10:43:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a simple emWin project that runs perfectly in the simulator. However, when I download it to my embedded system it hardfaults if I keep pressing buttons. The faults occur within GUI_ALLOC_UnlockH or GUI_ALLOC_LockH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you give any pointers as to why these functions may fail in an embedded system but not in the simulation?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515465#M1197</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: unstable project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515466#M1198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Fri Aug 16 19:06:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi pcalton,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be possible that memory is not allocated correctly. Do you know how are you allocating memory?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515466#M1198</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: unstable project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515467#M1199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pcalton on Mon Aug 19 10:38:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My memory is allocated as so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define GUI_NUMBYTES&amp;nbsp; (1024 * 1024) * 24 // x MByte
#define GUI_BLOCKSIZE 0x80
U32 static _aMemory[GUI_NUMBYTES / 4] __attribute__ ((section(".GUI_RAM")));

void GUI_X_Config(void) {
&amp;nbsp; //
&amp;nbsp; // Assign memory to emWin
&amp;nbsp; //
&amp;nbsp; GUI_ALLOC_AssignMemory(_aMemory, GUI_NUMBYTES);
&amp;nbsp; GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Theframebuffers are allocated as so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define FB_XSIZE&amp;nbsp; 480
#define FB_YSIZE&amp;nbsp; 272
#define XSIZE_PHYS FB_XSIZE 
#define YSIZE_PHYS FB_YSIZE 

#define NUM_BUFFERS&amp;nbsp;&amp;nbsp; 3
#define NUM_VSCREENS&amp;nbsp; 1
#define PIXEL_WIDTH&amp;nbsp; 4

#define VRAM_ADDR_PHYS&amp;nbsp; (U32)&amp;amp;_aVRAM[0]

#define COLOR_CONVERSION GUICC_8888

static U32 _aVRAM[NUM_BUFFERS * FB_XSIZE * FB_YSIZE / (4 / PIXEL_WIDTH)] __attribute__ ((section (".VRAM")));

void LCD_X_Config(void)
{
GUI_MULTIBUF_Config(NUM_BUFFERS);
//
// Set display driver and color conversion for 1st layer
//
GUI_DEVICE_CreateAndLink(GUIDRV_LIN_32, COLOR_CONVERSION, 0, 0);

//
// Display driver configuration, required for Lin-driver
//
LCD_SetPosEx(0, 0, 0);
if (LCD_GetSwapXY())
{
LCD_SetSizeEx(0, YSIZE_PHYS, XSIZE_PHYS);
LCD_SetVSizeEx(0, YSIZE_PHYS * NUM_VSCREENS, XSIZE_PHYS);
}
else
{
LCD_SetSizeEx(0, XSIZE_PHYS, YSIZE_PHYS);
LCD_SetVSizeEx(0, XSIZE_PHYS, YSIZE_PHYS * NUM_VSCREENS);
}
LCD_SetVRAMAddrEx(0, (void *) VRAM_ADDR_PHYS);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They are assigned to the external SDRAM in the linker file as so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
.GUI_RAM (NOLOAD) : 
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);
&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.GUI_RAM)
&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.VRAM)
&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4);
&amp;nbsp; } &amp;gt;MEMORY_B1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515467#M1199</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: unstable project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515468#M1200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Mon Aug 19 22:02:06 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi pcalton,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the value of MEMORY_B1? Using debugger you can check the type of fault. Let us know the details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515468#M1200</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: unstable project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515469#M1201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pcalton on Tue Aug 20 12:58:55 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Memory_B1 is the SDRAM at 0x28000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The full linker script is now attached (renamed .txt so that I could upload)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The hardfault is a PRECISERR sometimes occurs within the GUI_ALLOC_LockH or GUI_ALLOC_UnlockH&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. PRECISERR with a BFAR of 0xa8040008 that occurs at 0x1a01fdb0 (within GUI_ALLOCK_UnlockH)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0xa8040008 is not a valid memory address&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515469#M1201</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: unstable project</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515470#M1202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by YOZHik on Thu Oct 24 07:31:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into the same problem when tried to change widget parameters from interrupts while GUI_Exec() function was running. It might be the same with your case as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unstable-project/m-p/515470#M1202</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:17:50Z</dc:date>
    </item>
  </channel>
</rss>

