The compiler is reporting the same set of warnings for multiple files due to conflicting errno definitions conditionally included via "#ifdef LWIP_PROVIDE_ERRNO" at line 77 of arch.h. The symbol appears for definition at line 161 of lwipopts.h and line 37 of cc.h - One definition and one commented out. No joy in attempting to build with a consistent definition (ie. defined in both header files or commented out in both headers).
Has this demo configuration been successfully built, and if so, how?
Thanks!
Fred W.
Hello Fred,
Sorry for the delay, could you please try using KSDK 1.2. I built this example without issues.
Go to C:\Freescale\KSDK_1.2.0\examples\twrk60d100m\demo_apps\lwip\lwip_httpserver_demo\httpserver_rtos\httpserver_mqx\iar
Drag lwip_httpserver_demo_mqx.eww to IAR
Build mqx_twrk60d100m
Build mqx_stdlib_twrk60d100m
Build ksdk_mqx_lib
Build lwip_httpserver_demo_mqx
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Fred,
Could you share a screenshot of these warnings???
Regards
Soledad
Hi Fred,
To run the demo you will need to build the following libraries for K60:
KSDK Platform Lib
C:\Freescale\KSDK_1.1.0\lib\ksdk_platform_lib\iar\K60D10
KSDK OSA for MQX Lib
C:\Freescale\KSDK_1.1.0\lib\ksdk_mqx_lib\iar\K60D10
MQX Lib
C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx\build\kds\mqx_frdmk22f
MQX stdlib
C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx_stdlib\build\iar\mqx_stdlib_twrk60d100m
MQX Shell Lib
C:\Freescale\KSDK_1.1.0\rtos\mqx\nshell\build\iar\nshell_twrk60d100m
RTCSLib
C:\Freescale\KSDK_1.1.0\tcpip\rtcs\build\iar\rtcs_twrk60d100m
You can import the library projects using the option in menu File > Import > General > Existing Project into Workspace
You can also import the 3 MQX Libs using the build_libs.wsd file with the option menu File > Import > Project of Projects > Existing project Sets. This working set is located in the following path:
C:\Freescale\KSDK_1.1.0\rtos\mqx\build\iar\workspace_twrk60d100m
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I am also seeing the same results with this configuration. Your response says to build and include the RTCS library, but the original question is about the lwIP stack demo, located at C:\Freescale\KSDK_1.1.0\demos\lwip_httpserver_demo\httpserver_rtos\httpserver_mqx\kds\frdmk64f.
My understanding is that this should use lwIP and not RTCS, perhaps you are thinking of the rtcs httpserv demo?
Would you be willing to look at this lwIP project and see what we might be missing? I have included all the libs indicated in the "lwIP TCPIP Stack and Kinetis SDK Integration User's Guide.pdf" which describes these projects, and my build results in the same 1,638 warnings.
I appreciate any help you can provide.
Sol.
Have you successfully built this configuration? I deleted and re-installed the entire KSDK and built all the libs in the new pristine environment. The app project still has the same set of warnings.
fcw
Sol,
You mention:
MQX Lib
C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx\build\kds\mqx_frdmk22f
Should that read?
C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx\build\iar\mqx_twrk60d100m
If so, that lib and the other libs were built before the app.
I have verified the libs are up to date, and clean/build of ...
C:\Freescale\KSDK_1.1.0\demos\lwip_httpserver_demo\httpserver_rtos\httpserver_mqx\iar\twrk60d100m
... still generates the 1630 warnings.
I'll delete all the IAR .dep files and debug folders and start from scratch. I doubt that will solve the problem - I did a build for the K64F tower kit (including libs, obviously) and got the same set of warnings.
Other suggestions??
fcw