Hi Steve - While not exactly your
challenge, I recently had to update an LwIP 2.x to the latest,
on an ST project (easier change than
from 1.x).
I've attached my notes below; perhaps
they will help,
Best Regards, Dave
ST distributes a lwip 2.x version which is not up-to-date and
cleverly has all version notes and change logs stripped.
To use the
latest distributed lwip safe release:
-
Download latest lwip
-
Copy into project using different directory name
lwip-2.1.2 so CubeMX does not over-write it.
-
Copy the lwip\system tree into lwip-2.1.2
-
In project, mark Resouce Configurations → Exclude
From Build (for all configurations):
-
CubeMX-generated lwip
tree
-
lwip-2.1.2\src\apps\http\fsdata.c
(this C file is included in fs.c)
-
lwip-2.1.2\src\apps\http\makefsdata
tree (utility needs to be built in Visual Studio)
-
lwip-2.1.2\src\apps
any unused apps (SMTP, etc.)
-
lwip-2.1.2\src\test
tree
-
Update, for all configurations, change C compiler
include paths from lwip
to lwip-2.1.2
On 2/8/2019 12:39 AM, goldsimon wrote:
Am 8. Februar 2019 00:27:58 MEZ schrieb Stephen Cowell
<address@hidden>:
>I'm attempting to update the SAM4E example project
>THIRDPARTY_LWIP_BASIC_HTTP_EXAMPLE1 from 1.4.1 to 2.1.2. The
dev
>system is Atmel Studio 7 using ARM/GNU Common toolchain. I
have NO_SYS =1....
>this is the bare-metal implementation.
>
>I've partway through the directory problems... it seems that
the
>directory structure has changed, but the files I have have not
been
>updated. Is this normal? Does everyone have to go through
and edit
>the header file includes to reflect the new structure? I
can't see why
>this is not fixed in the release.
>
>Now I'm getting #error "<dirent.h> not supported". Does
this mean that
>I'll have to go to a different toolchain? Do I have to have
tinydir for
>the stack to work? My eventual target (we've been selling our
product
>with lwip 1.4.1 for years) has FatFS already, I'd rather not
do the
>filesystem over as well. Also getting "#error makefsdata not
supported
>
>on this platform"... how do I carve up lwIP? I've already
deleted the
>'api' folder, referring to this link:
>
>https://www.nongnu.org/lwip/2_0_x/group__lwip__opts__nosys.html
>
>This link was a great help, but I'm not sure if these guys are
running
>bare-metal or not...
>
>https://community.atmel.com/forum/upgrading-lwip-141-200-pbuf-issue
>
>Perhaps someone could throw me a bone? Do I need an RTOS to
move
>forward? Do I need a different toolchain?
>__
>Steve
>--
>
>Stephen Cowell
>Project Manager/Engineer
>Plasmability LLC
>Office (512) 267-7087
>Cell (512) 632-8593
>www.plasmability.com
>
>_______________________________________________
>lwip-users mailing list
>address@hidden
>https://lists.nongnu.org/mailman/listinfo/lwip-users
--
Dave Nadler, USA East Coast voice (978) 263-0097, address@hidden, Skype
Dave.Nadler1