<?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 FreeRTOS uIP for LPC2368 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/FreeRTOS-uIP-for-LPC2368/m-p/548614#M13673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by murnesty on Wed Mar 27 02:09:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- FreeRTOS v7.4.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- NXP LPC2368 MCU&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Red Suite 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Demo files : ARM7_LPC2368_Eclipse&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I failed to open and build the demo project directly so I built a new project and copy all the files needed. The project I created is able to run 3-4 tasks(LED blink &amp;amp; uart) and I'm trying to do uIP now. So I copy all the files needed according to the makefile in demo project. I'm able to build the project after copy all the needed file over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the problem. When I try to add a new task for uIP. It states show error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"make: *** [] Error1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From the console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Building target: RTOS Sample3.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="RTOS Sample3.map" -Xlinker --gc-sections -mcpu=arm7tdmi -T "RTOS_Sample3_Debug.ld" -o"RTOS Sample3.axf"&amp;nbsp; ./src/webserver/EMAC_ISR.o ./src/webserver/emac.o ./src/webserver/http-strings.o ./src/webserver/httpd-cgi.o ./src/webserver/httpd-fs.o ./src/webserver/httpd.o ./src/webserver/uIP_Task.o&amp;nbsp; ./src/cr_startup_lpc23.o ./src/croutine.o ./src/heap_2.o ./src/list.o ./src/main.o ./src/queue.o ./src/tasks.o ./src/timers.o&amp;nbsp; ./src/portable/port.o ./src/portable/portISR.o&amp;nbsp; ./src/peripherals/buzzer.o ./src/peripherals/ledBlink.o ./src/peripherals/pll.o ./src/peripherals/taskList.o ./src/peripherals/uart.o&amp;nbsp; ./src/Common/psock.o ./src/Common/timer.o ./src/Common/uip.o ./src/Common/uip_arp.o&amp;nbsp;&amp;nbsp; &lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(_deferredlazyseek.o): In function `__flsbuf':&lt;BR /&gt;_deferredlazyseek.c:(.text.(float, long, short, bool, float __restrict)+0xcc): undefined reference to `__sys_istty'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(_writebuf.o): In function `_Cwritebuf':&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x24): undefined reference to `__sys_flen'&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x48): undefined reference to `__sys_seek'&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x6c): undefined reference to `__sys_write'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(alloc.o): In function `malloc':&lt;BR /&gt;alloc.c:(.text.malloc+0xbc): undefined reference to `_sbrk'&lt;BR /&gt;alloc.c:(.text.malloc+0xec): undefined reference to `_sbrk'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(alloc.o): In function `_Csys_alloc':&lt;BR /&gt;alloc.c:(.text._Csys_alloc+0x18): undefined reference to `__sys_write'&lt;BR /&gt;alloc.c:(.text._Csys_alloc+0x1c): undefined reference to `__sys_appexit'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(fseek.o): In function `fseek':&lt;BR /&gt;fseek.c:(.text.fseek+0x2c): undefined reference to `__sys_istty'&lt;BR /&gt;fseek.c:(.text.fseek+0x68): undefined reference to `__sys_flen'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make: *** [RTOS Sample3.axf] Error 1&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the error lie on uip_process(u8_t flag) because it is able to compile if I comment out the whole content in this function. But this function has around 1200 lines. I don't know how to verify what problem it is. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:49:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:49:40Z</dc:date>
    <item>
      <title>FreeRTOS uIP for LPC2368</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FreeRTOS-uIP-for-LPC2368/m-p/548614#M13673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by murnesty on Wed Mar 27 02:09:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- FreeRTOS v7.4.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- NXP LPC2368 MCU&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Red Suite 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Demo files : ARM7_LPC2368_Eclipse&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I failed to open and build the demo project directly so I built a new project and copy all the files needed. The project I created is able to run 3-4 tasks(LED blink &amp;amp; uart) and I'm trying to do uIP now. So I copy all the files needed according to the makefile in demo project. I'm able to build the project after copy all the needed file over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the problem. When I try to add a new task for uIP. It states show error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"make: *** [] Error1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From the console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Building target: RTOS Sample3.axf&lt;BR /&gt;Invoking: MCU Linker&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -Xlinker -Map="RTOS Sample3.map" -Xlinker --gc-sections -mcpu=arm7tdmi -T "RTOS_Sample3_Debug.ld" -o"RTOS Sample3.axf"&amp;nbsp; ./src/webserver/EMAC_ISR.o ./src/webserver/emac.o ./src/webserver/http-strings.o ./src/webserver/httpd-cgi.o ./src/webserver/httpd-fs.o ./src/webserver/httpd.o ./src/webserver/uIP_Task.o&amp;nbsp; ./src/cr_startup_lpc23.o ./src/croutine.o ./src/heap_2.o ./src/list.o ./src/main.o ./src/queue.o ./src/tasks.o ./src/timers.o&amp;nbsp; ./src/portable/port.o ./src/portable/portISR.o&amp;nbsp; ./src/peripherals/buzzer.o ./src/peripherals/ledBlink.o ./src/peripherals/pll.o ./src/peripherals/taskList.o ./src/peripherals/uart.o&amp;nbsp; ./src/Common/psock.o ./src/Common/timer.o ./src/Common/uip.o ./src/Common/uip_arp.o&amp;nbsp;&amp;nbsp; &lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(_deferredlazyseek.o): In function `__flsbuf':&lt;BR /&gt;_deferredlazyseek.c:(.text.(float, long, short, bool, float __restrict)+0xcc): undefined reference to `__sys_istty'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(_writebuf.o): In function `_Cwritebuf':&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x24): undefined reference to `__sys_flen'&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x48): undefined reference to `__sys_seek'&lt;BR /&gt;_writebuf.c:(.text._Cwritebuf+0x6c): undefined reference to `__sys_write'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(alloc.o): In function `malloc':&lt;BR /&gt;alloc.c:(.text.malloc+0xbc): undefined reference to `_sbrk'&lt;BR /&gt;alloc.c:(.text.malloc+0xec): undefined reference to `_sbrk'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(alloc.o): In function `_Csys_alloc':&lt;BR /&gt;alloc.c:(.text._Csys_alloc+0x18): undefined reference to `__sys_write'&lt;BR /&gt;alloc.c:(.text._Csys_alloc+0x1c): undefined reference to `__sys_appexit'&lt;BR /&gt;c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(fseek.o): In function `fseek':&lt;BR /&gt;fseek.c:(.text.fseek+0x2c): undefined reference to `__sys_istty'&lt;BR /&gt;fseek.c:(.text.fseek+0x68): undefined reference to `__sys_flen'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make: *** [RTOS Sample3.axf] Error 1&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the error lie on uip_process(u8_t flag) because it is able to compile if I comment out the whole content in this function. But this function has around 1200 lines. I don't know how to verify what problem it is. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FreeRTOS-uIP-for-LPC2368/m-p/548614#M13673</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS uIP for LPC2368</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FreeRTOS-uIP-for-LPC2368/m-p/548615#M13674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by murnesty on Wed Mar 27 22:23:50 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw this FAQ at code red&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsupport.code-red-tech.com%2FCodeRedWiki%2FUndefinedReference" rel="nofollow" target="_blank"&gt;http://support.code-red-tech.com/CodeRedWiki/UndefinedReference&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;under "Undefined References with Redlib (v2)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the same issue there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) startup code : I'm able to compile and run the project before adding the new code so I don't think this is the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) semihosting interface layer : I can't find the keyword for __write and __readc so I don't think this is the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) printf variants : I tried directly adding a define in stdio.h (#define CR_INTEGER_PRINTF, #define CR_PRINTF_CHAR) but the error still the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4) heap allocation/checking : I don't know much of this and I just know freeRTOS has also a heap file. I have check my *.map and i get this : Is it my global variable used too much?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; COMMON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076e4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8 c:/code_red/redsuitenxp_4.0.6_249/redsuite/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libcr_c.a(__init_alloc.o)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076e4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __heaps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076e8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __end_of_heap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076ec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN (0x4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076ec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _ebss = .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076ec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE (end, .)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x400076ec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE (_pvHeapStart, .)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x40008000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE (_vStackTop, (__top_Ram32 - 0x0))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5) linker script : i'm using auto manage linker script mechanism and no issue again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6) assert : I'm using Redlib(none)so no issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;7) number of open files : Don't understand "open file". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;8) errno : no "unresolved refence to errno" message shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FreeRTOS-uIP-for-LPC2368/m-p/548615#M13674</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:49:41Z</dc:date>
    </item>
  </channel>
</rss>

