how void avoid multiple definition of `file__404_html';

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how void avoid multiple definition of `file__404_html';

ソリューションへジャンプ
772件の閲覧回数
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

タグ(1)
0 件の賞賛
返信
1 解決策
706件の閲覧回数
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 件の賞賛
返信
3 返答(返信)
707件の閲覧回数
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 件の賞賛
返信
608件の閲覧回数
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

 

 

 

タグ(1)
0 件の賞賛
返信
597件の閲覧回数
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 件の賞賛
返信