Hi,
I'm trying to compile the LPCXpresso LPC1769 LWIP_tcpecho_sa example. It compiles fine, but when linking, I get this error:
<code>Building target: lpc17xx_nxp_xpresso_1769_lwip_tcpecho_sa.axf</code><code>Invoking: MCU Linker</code><code>arm-none-eabi-gcc -nostdlib -L"..\..\..\nxp_xpresso_1769_board_lib\Debug" -Xlinker -Map="lpc17xx_nxp_xpresso_1769_lwip_tcpecho_sa.map" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T lpc176x.ld -L "..\..\..\..\..\examples\lwip\lwip_tcpecho_sa\linkerscripts" -o "lpc17xx_nxp_xpresso_1769_lwip_tcpecho_sa.axf" ./src/cr_startup_lpc17xx40xx.o ./src/echo.o ./src/lwip_tcpecho_sa.o ./lwiplpc/lpc17xx_40xx_emac.o ./lwiplpc/lpc17xx_40xx_systick_arch.o ./lwiplpc/lpc_debug.o ./lwip/autoip.o ./lwip/def.o ./lwip/dhcp.o ./lwip/dns.o ./lwip/etharp.o ./lwip/icmp.o ./lwip/igmp.o ./lwip/inet.o ./lwip/inet_chksum.o ./lwip/init.o ./lwip/ip.o ./lwip/ip_addr.o ./lwip/ip_frag.o ./lwip/mem.o ./lwip/memp.o ./lwip/netif.o ./lwip/pbuf.o ./lwip/raw.o ./lwip/stats.o ./lwip/sys.o ./lwip/tcp.o ./lwip/tcp_in.o ./lwip/tcp_out.o ./lwip/timers.o ./lwip/udp.o -lnxp_xpresso_1769_board_lib</code><code>c:/nxp/lpcxpresso_5.2.4_2122/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -lnxp_xpresso_1769_board_lib</code><code>collect2: ld returned 1 exit status</code><code>make: *** [lpc17xx_nxp_xpresso_1769_lwip_tcpecho_sa.axf] Error 1</code>
Any thoughts?
Thanks,
Jack
Yes - in the LPCOpen v1.03 platform, there is LWIP example using the LPCXpresso LPC1769 board and the base board (for PHY).
http://www.lpcware.com/content/nxpfile/lpcopen-platform
is there a IAR project for LPC1769 micro using LWIP
Hi,
I'm having trouble getting the example to work. Windows is not reporting any packets received and neither is wireshark. I've enabled full debugging meassages and I'm seeing things such as:
<code>lpc_low_level_output: pbuf packet(0x2007c64a) sent, chain#=0, size = 350 (index=3)</code>
Hi, thanks for your help. It turns out I needed to import the 'nxp_xpresso_1769_board_lib' project, build that, and then build the lwip example.
In windows Xpresso has the path limitation to < 260 characters.
Regards,
Sundar.
Make sure your project is not too deep inside the directory tree. Better to keep project inside a smaller path like "c:\lpcopen". If you have something like "C:\my_wrkarea\testing\boards\lpcopen" then subst it like this "subst X: C:\my_wrkarea\testing\boards\lpcopen" and compile the project from "X:\"
Regards,
Sundar.
><code>cannot find -lnxp_xpresso_1769_board_lib</code><code></code><code></code>
It can't find the chip/board library for the LPC1769 board. This library should automatically be built when you built your project unless the configuration for the library and example do not match.
><code>-L"..\..\..\nxp_xpresso_1769_board_lib\Debug"</code>
It's trying to use the debug library. Is your example also configured for debug too?
<strong>Selecting the build configuration for the libraries and examples</strong>
The Xpresso projects by default are configured for DEBUG optimization. At this level, the generated code isn't too efficient, but the code is easier to debug and step through.
Optionally, the projects can be configured for RELEASE optimization, which allows for a smaller and higher performance image at the expense of debug simplicity. To select the DEBUG or RELEASE level optimization, right-click on the projects and select DEBUG or RELEASE from the "Build configuration->Set Active" menu. All examples and projects must be configured to the same level when performing builds.