Hi,
I am looking for a sample code of how to configure the cpu + basic send / receive UDP function. My start code is the Firmware and Lab Directory Structure, without FreeScale WebServer. The last part of the Main function was replaced by code to send a simple UDP packet.
prep_modules ();
netmain_init ();
data_pkt=udp_alloc(sizeof (data),0);
if (data_pkt==NULL)
printf("trouble allocating packet");
memcpy(data_pkt->nb_prot, data, sizeof(data));
data_pkt->nb_plen =sizeof (data);
data_pkt->fhost =(0x96A53C2C);
udp_send(3941, 3941, data_pkt);
When the netmain_init function is called the following error appears.
Running ColdFire TCP/IP-Lite stack
Copyright 2006 by Freescale Semiconductor Inc.
Use of this software is controlled by the agreement
found in the project LICENSE.H file.
Built on May 23 2007 17:20:56
etheraddr = 00B:BA:01:02
Staring ns
Acess rror -- PC = 00015
Attempted wieto write-prtectedsae
Acces Error -- PC
Attempted wieto write-prtectedsae
Acces Error -- PC = 00015
Attempted wieto write-prtected spc
Acess rror -- PC = 00015
Attempted wieto write-proteced space
Access Error -PC = 0x0000155
[]'s
Bruno
http://www.freescale.com/webapp/sps/download/license.jsp?colCode=FWLABSDIR&prodCode=MCF52233&nodeId=...