how void avoid multiple definition of `file__404_html';

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how void avoid multiple definition of `file__404_html';

Jump to solution
773 Views
zhangzhixing
Contributor III

when i compiling the S32K366 programm wiht LWIP,there are errors. It appears that the following codes caused the errors.

#define HTTPD_FSDATA_FILE "fsdata.c" 

........

#include HTTPD_FSDATA_FILE

how to void the errors.

the S32DS 3.6 broblem message as below:


Description Resource Path Location Type
multiple definition of `file__404_html'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:324: first defined here k366lan8720_M7_0_0 line 324, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem

 

 

 

 

 

 

 


Description Resource Path Location Type
multiple definition of `file__404_html'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:324: first defined here k366lan8720_M7_0_0 line 324, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem
multiple definition of `file__img_sics_gif'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:316: first defined here k366lan8720_M7_0_0 line 316, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem
multiple definition of `file__index_html'; ./stacks/tcpip/lwip/src/apps/http/fs.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\Debug_FLASH/../stacks/tcpip/lwip/src/apps/http/fsdata.c:332: first defined here k366lan8720_M7_0_0 line 332, external location: d:\nxp\s32ds.3.6.1\s32ds\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\arm-none-eabi\bin\real-ld.exe: .\stacks\tcpip\lwip\src\apps\http\fsdata.o:C:\Users\Administrator\workspaceS32DS.3.6.1\k366lan8720\k366lan8720_M7_0_0\stacks\tcpip\lwip\src\apps\http\fsdata.c C/C++ Problem

Tags (1)
0 Kudos
Reply
1 Solution
707 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @zhangzhixing,

Thanks for reaching out to us. Checking the release notes for the lwip package we offer, I notice that the S32K366 is not in the supported product list, therefore we cannot help you much in the porting, please consider that doing it by yourself can be quite time a consuming and difficult task, and we cannot ensure it works.

If you are searching for a low cost alternative solution to use lwip I can recommend you the FRDM-MCXN947, if you require an automotive chip, please consider the S32K148EVB.

I apologize for the inconveniences.

 

Best regards 

View solution in original post

0 Kudos
Reply
3 Replies
708 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @zhangzhixing,

Thanks for reaching out to us. Checking the release notes for the lwip package we offer, I notice that the S32K366 is not in the supported product list, therefore we cannot help you much in the porting, please consider that doing it by yourself can be quite time a consuming and difficult task, and we cannot ensure it works.

If you are searching for a low cost alternative solution to use lwip I can recommend you the FRDM-MCXN947, if you require an automotive chip, please consider the S32K148EVB.

I apologize for the inconveniences.

 

Best regards 

0 Kudos
Reply
609 Views
zhangzhixing
Contributor III

I'm currently using the S32K396 MCU with a raw TCP client implementation, which works fine. However, my module supplier requires me to switch to lwIP with FreeRTOS.

After importing the 'lwip_FreeRTOS_s32k396' example project and flashing it to my K396 board, the program enters the vPortEnterCritical() function when executing prvPortStartFirstTask(). How can I resolve this issue

zhangzhixing_0-1752665472388.png

 

 

 

Tags (1)
0 Kudos
Reply
598 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @zhangzhixing,

Please open a create post  in the S32K community. Since you already selected an accepted solution I won't receive proper notification on the updates in this post.

Please include the following in your new post:

S32DS version

RTD version

lwip version

FreeRTOS version

NXP board name or specify that you are using a custom board.

If you have done any modifications to the example.

 

For now, it would seems as if you are entering the vPortEnterCritical() function from an interrupt, and you should be using vPortEnterCritical_FromISR() instead. If you are not entering from an interrupt, please specify that in your new post.

 

Thanks!

0 Kudos
Reply