dLAN_greenphy_sdk-LPC1758-Code_BUILD_ERROR

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

dLAN_greenphy_sdk-LPC1758-Code_BUILD_ERROR

962 Views
Charanmakkar_navtech
Contributor I
I recently bought the "dLAN® Green PHY eval board II" with the "#dLAN® Green PHY module".

I found an SDK link in Documents available on website, but that code is giving me an error while building in NXP IDE,

git : https://github.com/devolo/dlan-greenphy-sdk
NXP IDLE : MCUXpresso IDE v24.12 [Build 148] [2025-01-10]
Python Libs Installed, Python: 3.13 (latest) with all Libs installed
Paths added to Environment 
OS : Windows 10


ERROR : C:\Users\Charanpreet Singh\Downloads\dlan-greenphy-sdk-master\Libraries\Debug/../FreeRTOS-Plus-TCP-multi-master/source/portable/FileSystem/httpd-fs/httpd-fs.c:93:(.text.httpd_fs_open+0x50): undefined reference to `fs_root'

All the instructions followed, given in the Readme file of Git Repo. 

If I am building only Libraries directory project, by right clicking on Libraries in project explorer, it builds,
but when trying to build FirmwareStandalone or FirmwareStandaloneTFTP
getting this issue
Tried multiple time after cleaning the projects as well
Checked the Linked folders as well
Checked directories are added to path of Windows Environment as well

Anyone who can help ! support will be appreciated.
 

LOG : FirmwareStandalone
""""
18:31:29 **** Build of configuration Debug for project FirmwareStandalone ****
make -r -j8 all
Building file: ../src/cr_startup_lpc175x_6x.c
Building file: ../src/crp.c
Invoking: MCU C Compiler
Invoking: MCU C Compiler
arm-none-eabi-gcc -DCORE_M3 -D__USE_LPCOPEN -D__REDLIB__ -D__CODE_RED -D__LPC17XX__ -DDEBUG -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\ClickboardConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\Clickboards\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\HTTP\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\FreeRTOS\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\SaveConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Configuration" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\FileSystem\httpd-fs" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\protocols\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\Compiler\GCC" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\dLAN_Green_PHY_eval_board\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\lpc_chip_175x_6x\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\portable\GCC\ARM_CM3" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\include" -O0 -fno-common -g3 -gdwarf-4 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../src/"= -mcpu=cortex-m3 -mthumb -fstack-usage -specs=redlib.specs -MMD -MP -MF"src/cr_startup_lpc175x_6x.d" -MT"src/cr_startup_lpc175x_6x.o" -MT"src/cr_startup_lpc175x_6x.d" -o "src/cr_startup_lpc175x_6x.o" "../src/cr_startup_lpc175x_6x.c"
Building file: ../src/main.c
arm-none-eabi-gcc -DCORE_M3 -D__USE_LPCOPEN -D__REDLIB__ -D__CODE_RED -D__LPC17XX__ -DDEBUG -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\ClickboardConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\Clickboards\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\HTTP\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\FreeRTOS\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\SaveConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Configuration" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\FileSystem\httpd-fs" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\protocols\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\Compiler\GCC" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\dLAN_Green_PHY_eval_board\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\lpc_chip_175x_6x\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\portable\GCC\ARM_CM3" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\include" -O0 -fno-common -g3 -gdwarf-4 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../src/"= -mcpu=cortex-m3 -mthumb -fstack-usage -specs=redlib.specs -MMD -MP -MF"src/crp.d" -MT"src/crp.o" -MT"src/crp.d" -o "src/crp.o" "../src/crp.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -DCORE_M3 -D__USE_LPCOPEN -D__REDLIB__ -D__CODE_RED -D__LPC17XX__ -DDEBUG -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\ClickboardConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\Clickboards\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\HTTP\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\FreeRTOS\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\SaveConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Configuration" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\FileSystem\httpd-fs" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\protocols\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\Compiler\GCC" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\dLAN_Green_PHY_eval_board\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\lpc_chip_175x_6x\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\portable\GCC\ARM_CM3" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\include" -O0 -fno-common -g3 -gdwarf-4 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../src/"= -mcpu=cortex-m3 -mthumb -fstack-usage -specs=redlib.specs -MMD -MP -MF"src/main.d" -MT"src/main.o" -MT"src/main.d" -o "src/main.o" "../src/main.c"
Building file: ../src/sysinit.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DCORE_M3 -D__USE_LPCOPEN -D__REDLIB__ -D__CODE_RED -D__LPC17XX__ -DDEBUG -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\ClickboardConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\Clickboards\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\HTTP\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\FreeRTOS\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\SaveConfig" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Configuration" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\FileSystem\httpd-fs" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\protocols\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\source\portable\Compiler\GCC" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOS-Plus-TCP-multi-master\include" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\dLAN_Green_PHY_eval_board\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\lpc_chip_175x_6x\inc" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\portable\GCC\ARM_CM3" -I"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\FreeRTOSv10.4.1\include" -O0 -fno-common -g3 -gdwarf-4 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../src/"= -mcpu=cortex-m3 -mthumb -fstack-usage -specs=redlib.specs -MMD -MP -MF"src/sysinit.d" -MT"src/sysinit.o" -MT"src/sysinit.d" -o "src/sysinit.o" "../src/sysinit.c"
Finished building: ../src/crp.c
Finished building: ../src/cr_startup_lpc175x_6x.c

Finished building: ../src/main.c
Finished building: ../src/sysinit.c

Building target: FirmwareStandalone.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Applications\Debug" -L"C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\Debug" -Xlinker -Map="FirmwareStandalone.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m3 -mthumb -T FirmwareStandalone_Debug.ld -o "FirmwareStandalone.axf" ./src/cr_startup_lpc175x_6x.o ./src/crp.o ./src/main.o ./src/sysinit.o -Wl,--whole-archive -Wl,--no-whole-archive -lApplications -lLibraries
C:/nxp/MCUXpressoIDE_24.12.148/ide/plugins/com.nxp.mcuxpresso.tools.win32_24.12.0.202407110909/tools/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\Debug\libLibraries.a(httpd-fs.o): in function `httpd_fs_open':

C:\Users\Charanpreet Singh\Documents\MCUXpressoIDE_24.12.148\workspace\Libraries\Debug/../FreeRTOS-Plus-TCP-multi-master/source/portable/FileSystem/httpd-fs/httpd-fs.c:93:(.text.httpd_fs_open+0x50): undefined reference to `fs_root'

Memory region Used Size Region Size %age Used
MFlash512: 110480 B 512 KB 21.07%
RamLoc32: 27540 B 32 KB 84.05%
RamAHB32: 30848 B 32 KB 94.14%
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:49: FirmwareStandalone.axf] Error 1
make: *** [makefile:35: all] Error 2
"make -r -j8 all" terminated with exit code 2. Build might be incomplete.

18:31:30 Build Failed. 3 errors, 0 warnings. (took 661ms)
""""

#dlan #devolo #green_phy_module #PLC #dLAN

0 Kudos
Reply
3 Replies

934 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Charanmakkar_navtech 

I checked the 

Usage
Download the repository, following the Clone or download button's instructions above.

Import the project into MCUXpresso:

In MCUXpresso create a new workspace and open the File->Import dialogue.
Select General/Existing Projects into Workspace import wizard and click next.
If you downloaded the SDK as .zip, select it in the Select archive file input, if you got it by git clone use the Select root directory input.
Leave all projects marked for import and click Finish.

 

Snipaste_2025-03-03_14-27-51.png

I can successfully compile it.

So I think you can create a new workspace and compile it.

BR

Harry

0 Kudos
Reply

922 Views
Charanmakkar_navtech
Contributor I
thanks Harry, for trying it and replying to my query.

I can see you tried to build "Application" project
but, the issue i am facing is with "FirmwareStandalone" or "FirmwareStandaloneTFTP".

I followed the exact same steps to import and build the code earlier, got this error. Anyways tried again, by creating fresh workspace and importing sdk from zip again and compiled. Still getting same error for "FirmwareStandalone" and "FirmwareStandaloneTFTP".

As per readme of SDK, we need to use "FirmwareStandalone" or "FirmwareStandaloneTFTP" as sample codes.

please try building "FirmwareStandalone" or "FirmwareStandaloneTFTP" and let me know if they work for you !

Regards
Charan
0 Kudos
Reply

908 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Charanmakkar_navtech 

Sorry, this project is not officially maintained by us.

You can seek help through the GitHub link.

BR

Harry 

0 Kudos
Reply