<?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: System crashes with change of variable size in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513197#M56</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 16 15:46:06 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: andrejvrecer&lt;/STRONG&gt;&lt;BR /&gt;I can tell how system crashes but you can easyly try it.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nope&amp;nbsp; :p &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Working without problems here. With and without optimization and even after filling this array&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful if you post your project....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: From your description I would guess that your code is somewhere using this array with 128x80 and overwriting something else...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:04:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:04:27Z</dc:date>
    <item>
      <title>System crashes with change of variable size</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513194#M53</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andrejvrecer on Tue Dec 16 10:36:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC1549 processor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have put together some example code from lpcOpen (USB VCOM, ADC, DAC) All is working. Have been using VCOM for debug printouts. Now I have added TFT LCD to show some ADC data on it. All was working until I haven't use frame buffer and I draw directly to LCD memory. Then I wished to use frame buffer and problems started :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After some research I found out there is a stack problem since stack is addressed at end of first RAM bank. I have changed in MCU setting that there is only one bank with size 0x9000 (I use LPC1549 with 36k RAM)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have static uint16_t framebuffer[LCD_X*LCD_Y] array. LCD_X is always 128 and if I set LCD_Y to 80 all is working. (framebuffer size is 20480byte) but if I change LCD_Y size to 40 or 20 ( so less then 80), system crashes immediately even if I don't use framebuffer array at all!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong? What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code is working on different project with the same TFT LCD and LPC1758 with different compiler so code should be correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrej&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:04:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513194#M53</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: System crashes with change of variable size</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513195#M54</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Tue Dec 16 10:47:32 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean "crashes". Explain exactly what is happening and then we might be able to help you debug it...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513195#M54</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: System crashes with change of variable size</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513196#M55</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andrejvrecer on Tue Dec 16 12:02:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this moment I am downloading 7.5 version (I am using 7.2) I can tell how system crashes but you can easyly try it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have tried to open lpcOpen project lpc15xx usbd_rom_cdc and compile it, put it on test board and it works. After adding to the top of cdc_main.c file this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define FRAME_BUFFER_WIDTH&amp;nbsp;&amp;nbsp; 128&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define FRAME_BUFFER_HEIGHT&amp;nbsp; 80&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Frame buffer is 128pix wide and 80pix height.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static uint16_t frameBuffer[FRAME_BUFFER_WIDTH * FRAME_BUFFER_HEIGHT];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it increased bss size and it still works. Then changing frame buffer height to 20 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define FRAME_BUFFER_HEIGHT&amp;nbsp; 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it stoped working. USB VCOM is not detected anymore on Windows PC. Nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bss size is correct, flash code didn't change so all this make no sense. Will report back what is status with Xpresso v7.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513196#M55</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: System crashes with change of variable size</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513197#M56</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 16 15:46:06 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: andrejvrecer&lt;/STRONG&gt;&lt;BR /&gt;I can tell how system crashes but you can easyly try it.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nope&amp;nbsp; :p &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Working without problems here. With and without optimization and even after filling this array&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful if you post your project....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: From your description I would guess that your code is somewhere using this array with 128x80 and overwriting something else...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:04:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513197#M56</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: System crashes with change of variable size</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513198#M57</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andrejvrecer on Tue Dec 16 23:17:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try with 7.2 or 7.5?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would also say that something overwrites but when using array of 128 x 80 all is ok, when using smaller (128x20) is causing problems :( and even if I write only to first field and not to all array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am making more examples now with 7.5 and more or less all code started to work on xpresso board but not on my so I think I will replace processor on my board. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:04:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513198#M57</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: System crashes with change of variable size</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513199#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andrejvrecer on Wed Dec 17 10:17:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dis some more tests and because all of this made no sense I replaced processor on my board. All is working now ok so it seams there was some "hardware" bug inside processor :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help now lets go back to work :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/System-crashes-with-change-of-variable-size/m-p/513199#M58</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:04:28Z</dc:date>
    </item>
  </channel>
</rss>

