Page 1 of 1

ethernet n9h30

Posted: 08 Jan 2021, 12:53
by sridhar
I am developing a project for ethernet using RDK N9H30 development board
I have downloaded sample code from github and nuvoton website
I am using lwip sample code for ethernet development
But it is not working
So need a sample code with TCP and UDP separately
R Sridhar

Re: ethernet n9h30

Posted: 11 Jan 2021, 14:46
by 9chuckyoung
FreeRTOS sample code: \N9H30_emWin_NonOS-master\SampleCode\FreeRTOS
FreeRTOS source code: \N9H30_emWin_NonOS-master\ThirdParty\FreeRTOSV9.0.0\FreeRTOS

lwIP sample code: \N9H30_emWin_NonOS-master\SampleCode\LwIP_httpd
lwIP source code: \N9H30_emWin_NonOS-master\ThirdParty\lwip-1.4.1

Other FreeRTOS samples, you can find out on FreeRTOS's Forum:

Or refer to Nuvoton MCU M480 for more related sample codes:
TCP / IP or UDP: ... r-PFM-M487

Re: ethernet n9h30

Posted: 20 Jan 2021, 14:42
by sridhar
i don't need to changed processor because i have developed a complete project using N9H30F61IEC
so please send example code links from same processor using keil

Re: ethernet n9h30

Posted: 05 Feb 2021, 10:11
by 9chuckyoung
Seems Nuvoton didn't provide any software stacks.
Hence, if you're not familiar with those software stacks, the learning curve and entry barrier is high.
What Nuvoton can do is porting its Ethernet driver into lwIP, because these parts are related with Nuvoton.
The sample code is okay when IP address set between PC and device, then PC's browser

Code: Select all

#ifdef USE_DHCP

    IP4_ADDR(&gw, 0, 0, 0, 0);
    IP4_ADDR(&ipaddr, 0, 0, 0, 0);
    IP4_ADDR(&netmask, 0, 0, 0, 0);


    IP4_ADDR(&gw, 192, 168, 0, 1);
    IP4_ADDR(&ipaddr, 192, 168, 0, 227);
    IP4_ADDR(&netmask, 255, 255, 255, 0);

Please note that if your question is about how to use lwIP, TCP / UDP, you may not get quick or clear answer here.