Hi Ryu
Take a look at the uTasker project -
www.uTasker.comIt includes all that you need including the UART driver (with several modes - character, message with flow-control). It is free for non-commercial applications and includes full support.
To get an idea of code size see the following tutorial:
http://www.utasker.com/docs/NE64/uTaskerV1.2-Tutorial.PDFUsing just UDP it will occupy about 8..10k of space but it may be worth looking at TCP because it will allow end to end flow control (see the Telnet demo) and so avoid UART overruns.
Examples of UART->UDP and UDP->UART code
// read UART input and sent to UDP portLength = fnRead( SerialPortID, ptrUDP_Frame->ucUDP_Message, MEDIUM_MESSAGE);fnSendUDP(MyUDP_Socket, ucIP, usPortNr, ptrUDP_Frame, Length, OWN_TASK);
UDP->UART (using call back on UDP frame reception
extern int fnUDPListner(USOCKET SocketNr, unsigned char ucEvent, unsigned char *ucIP, unsigned short usPortNr, unsigned char *data, unsigned short usLength){ switch (ucEvent) { case UDP_EVENT_RXDATA: fnWrite(SerialPortID, data, usLength); break; }}The project comes with a GNU build and a serial loader/debugger as well as a CW project.
Simply remove unwanted files (like smtp, pop3, etc. to keep below the max allowed file count of eval version). It also contains an NE64 simulator so you can completly develop and test your project before moving to the target. The UART will be simulated over a COM port and the Ethernet interface by the PC's NIC.
Good luck
Regards
Mark Butcher
P.S. There is a live NE64 demo on the web site above. You can also telnet to it at "telnet 84.253.57.46"