Do you know how to use dlan-greenphy-sdk?

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

Do you know how to use dlan-greenphy-sdk?

Jump to solution
3,111 Views
dhjeong
Contributor II
hello. I'm using the NXP MCUXPresso tool and following the instructions on the site below.

https://github.com/devolo/dlan-greenphy-sdk

There were a few issues, but the tech support team helped me out and solved them.

However, there is currently a problem in the process of starting "FirmwareStandalone" in step 4.

The page like the picture cannot be checked, and the board cannot be assigned an IP by DHCP, and a temporary IP (169.**.**.**) is assigned.

Can you give me a guide to get a quick start using that tool?

thank you
0 Kudos
Reply
1 Solution
3,098 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

First of all, the dlan-greenphy-sdk code is third party code, pls check yourself.

For the DHCP based on LWIP stack whose function is that the ethernet can be assigned an IP address, pls download the LPCopen from the link:

https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcop...

pls refer to the webserver_freertos example.

C:\DriveE\LPCOpen\lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.zip\webserver_freertos

there is example of DHCP as the following code:

/* LWIP kickoff and PHY link monitor thread */
static void vSetupIFTask(void *pvParameters) {
ip_addr_t ipaddr, netmask, gw;
volatile s32_t tcpipdone = 0;
uint32_t physts;
static int prt_ip = 0;

DEBUGSTR("LWIP HTTP Web Server FreeRTOS Demo...\r\n");

/* Wait until the TCP/IP thread is finished before
continuing or wierd things may happen */
DEBUGSTR("Waiting for TCPIP thread to initialize...\r\n");
tcpip_init(tcpip_init_done_signal, (void *) &tcpipdone);
while (!tcpipdone) {
msDelay(1);
}

DEBUGSTR("Starting LWIP HTTP server...\r\n");

/* Static IP assignment */
#if LWIP_DHCP
IP4_ADDR(&gw, 0, 0, 0, 0);
IP4_ADDR(&ipaddr, 0, 0, 0, 0);
IP4_ADDR(&netmask, 0, 0, 0, 0);
#else
IP4_ADDR(&gw, 10, 1, 10, 1);
IP4_ADDR(&ipaddr, 10, 1, 10, 234);
IP4_ADDR(&netmask, 255, 255, 255, 0);
#endif

 

Hope it can help you

BR

XiangJun Rong

View solution in original post

0 Kudos
Reply
2 Replies
1,181 Views
Charanmakkar_navtech
Contributor I

Hii dhjeong 

Hope you found the solution to your query ? "How to use devolo SDK" or how to develop new codes for Devolo Modules. 

Please guide us as well. 
I recently bought a Devolo board and facing alot of issue 
1. Issue while building latest build on Github 
Error : 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'

https://community.nxp.com/t5/LPC-Microcontrollers/dLAN-greenphy-sdk-LPC1758-Code-BUILD-ERROR/m-p/205... 


2. We don't have any spare I/O pins on HW, how to use this board for any application ?

3. How did you use this board in your application ?


Looking forward to hear and connect with you: charanmakkar.navtech@gmail.com

Regards 
Charan

0 Kudos
Reply
3,099 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

First of all, the dlan-greenphy-sdk code is third party code, pls check yourself.

For the DHCP based on LWIP stack whose function is that the ethernet can be assigned an IP address, pls download the LPCopen from the link:

https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcop...

pls refer to the webserver_freertos example.

C:\DriveE\LPCOpen\lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.zip\webserver_freertos

there is example of DHCP as the following code:

/* LWIP kickoff and PHY link monitor thread */
static void vSetupIFTask(void *pvParameters) {
ip_addr_t ipaddr, netmask, gw;
volatile s32_t tcpipdone = 0;
uint32_t physts;
static int prt_ip = 0;

DEBUGSTR("LWIP HTTP Web Server FreeRTOS Demo...\r\n");

/* Wait until the TCP/IP thread is finished before
continuing or wierd things may happen */
DEBUGSTR("Waiting for TCPIP thread to initialize...\r\n");
tcpip_init(tcpip_init_done_signal, (void *) &tcpipdone);
while (!tcpipdone) {
msDelay(1);
}

DEBUGSTR("Starting LWIP HTTP server...\r\n");

/* Static IP assignment */
#if LWIP_DHCP
IP4_ADDR(&gw, 0, 0, 0, 0);
IP4_ADDR(&ipaddr, 0, 0, 0, 0);
IP4_ADDR(&netmask, 0, 0, 0, 0);
#else
IP4_ADDR(&gw, 10, 1, 10, 1);
IP4_ADDR(&ipaddr, 10, 1, 10, 234);
IP4_ADDR(&netmask, 255, 255, 255, 0);
#endif

 

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply