<?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: Sgpio camera error</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608036#M23676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2017 09:42:32 GMT</pubDate>
    <dc:creator>dimitrissideris</dc:creator>
    <dc:date>2017-02-13T09:42:32Z</dc:date>
    <item>
      <title>Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608026#M23666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get a camera work at my custom PCB.&lt;/P&gt;&lt;P&gt;The uC is 4367 and the camera is OV7670.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the example from here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/an11343-sgpio-camera-module-design-using-lpc4300" title="https://www.lpcware.com/content/nxpfile/an11343-sgpio-camera-module-design-using-lpc4300"&gt;AN11343: SGPIO camera module design using LPC4300 | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example works in dual core M0 and M4.&lt;/P&gt;&lt;P&gt;I changed the code according to my needs and used only M4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Is there any problem with that whatosoever?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think so because there is also an example with one core setup&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/an11196-camera-interface-design-using-sgpio" title="https://www.lpcware.com/content/nxpfile/an11196-camera-interface-design-using-sgpio"&gt;AN11196: Camera interface design using SGPIO | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i am under heavy development and in a state that i migrated the code from example 11343 to my code and this error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arm-none-eabi-gcc -nostdlib -L"C:\Users\d.sideris\Desktop\LPC_workspace\LpcOpen\lpc_chip_43xx\Debug" -L"C:\Users\d.sideris\Desktop\LPC_workspace\LpcOpen\lpc_board_nxp_lpcxpresso_4337\Debug" -Xlinker -Map="periph_sgpio_camera.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T "periph_uart_Debug.ld" -o "periph_sgpio_camera.axf"&amp;nbsp; ./example/src/cr_startup_lpc43xx.o ./example/src/ov7670.o ./example/src/sgpio_camera.o ./example/src/sysinit.o&amp;nbsp;&amp;nbsp; -llpc_board_nxp_lpcxpresso_4337 -llpc_chip_43xx&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: periph_sgpio_camera.axf section `.bss' will not fit in region `RamLoc32'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: region `RamLoc32' overflowed by 275540 bytes&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;make: *** [periph_sgpio_camera.axf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ve searched and read about ramloc32 ovlerflow but i didnt quite understand what i have to do to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please I would very like some help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 11343 was migrated to the periph_uart lpcopen example because projects goal is to transfer camera data through uart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;So I read that default lpcopen projects have "little memory" occupied. I dont know if this is valid. How can i check and configure what memory is occupied?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:34:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608026#M23666</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-07T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608027#M23667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:06:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608027#M23667</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-08T09:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608028#M23668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error means that your application is too large to fit into the available memory - by 275k! It is trying to load it into the 32k SRAM region of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error indicates that it is caused by the .bss section, which is for zero-initialised data, so I would guess that you have defined a very big array in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:25:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608028#M23668</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-02-08T09:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608029#M23669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i can't find anything like a big array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other clue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:17:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608029#M23669</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-08T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608030#M23670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i code an uninitialized array which is too big, compilers generates:&lt;/P&gt;&lt;P&gt;error: size of array 'ridiculously_long_variable' is too large&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608030#M23670</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-08T11:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608031#M23671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is something causing you code to be 275k too large. If you can't find it, attach you project and I'll take a look for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:24:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608031#M23671</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-02-08T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608032#M23672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really? That would be very helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delayed answer. I had to be off desk for a couple of days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check example/src&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:19:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608032#M23672</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-10T09:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608033#M23673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it didn't take long to find...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The large array is:&lt;/P&gt;&lt;P&gt;US_RcvBuf g_rcvDbBuf;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;US_RcvBuf is a union, that is 320x240x2x2 - 300k. (307200 bytes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are going to struggle to fit that into a 32k memory region. The largest block of contiguous RAM on this part if 40k.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 15:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608033#M23673</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-02-10T15:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608034#M23674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx a lot for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if i would like to handle camera how would i do that if ram can handle only 40k max?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please take a look here? This is the application note of what i am trying to do. I use this code as my basecode so that i can adjust it to my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/an11343-sgpio-camera-module-design-using-lpc4300" title="https://www.lpcware.com/content/nxpfile/an11343-sgpio-camera-module-design-using-lpc4300"&gt;AN11343: SGPIO camera module design using LPC4300 | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx a lot in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:05:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608034#M23674</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-13T09:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608035#M23675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know the application (and I do not want to), but the MCB4300 has a lot of external memory connected to the LPC4357 (16MB NOR Flash, 4MB Quad-SPI Flash, 16 MB SDRAM). I guess that is what the AN is using. So, if you want to have a large frame buffer, presumably you are going to need to do the same and connect an external memory device to your MCU, using the EMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck with your project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:37:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608035#M23675</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2017-02-13T09:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sgpio camera error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608036#M23676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Sgpio-camera-error/m-p/608036#M23676</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2017-02-13T09:42:32Z</dc:date>
    </item>
  </channel>
</rss>

