Hallo Zusammen...
Ich versucher derzeit gerade den ENC28J60 zusammen mit einem Launchpad
zum laufen zu bringen...
Dazu habe ich folgendes Beispiel verwendet...
Beitrag "ENC28J60 Basics[Beispielprogramm in AVRGCC für atmega8]"
Da dieses ursprünglich für AVR gedacht war, musste ich einiges ändern.
Nun bin ich soweit, das es nur noch ein paar einzelne Fehler gibt..
Jedoch habe ich leider keine Ahnung wie ich diese ausbessern kann...
Hier nun also die Liste:
Die Linien angaben sind Richtwerte, da ich ja etwas verändert habe!
Datei Stack.c Linie 108
1 | arp = (struct ARP_Header *)&buff[21];
|
Fehler: a value of type "struct ARP_Header *" cannot be assigned to an
entity of type "struct ARP_header *"
Datei Stack.c Linie 131
1 | icmp = (struct ICMP_Header *)&buff[34];
|
Fehler: a value of type "struct ICMP_Header *" cannot be assigned to an
entity of type "struct ICMP_header *"
Datei Stack.c Linie 88
1 | ip = (struct IP_Header *)&buff[24];
|
Fehler: a value of type "struct IP_Header *" cannot be assigned to an
entity of type "struct IP_header *"
Datei Stack.c Linie 149
1 | udp = (struct UDP_Header *)&buff[34];
|
Fehler: a value of type "struct UDP_Header *" cannot be assigned to an
entity of type "struct UDP_header *"
Datei main.c Linie xyz
1 | nicSetMacAddress(mymac);
|
Fehler: argument of type "volatile unsigned char *" is incompatible with
parameter of type "unsigned char *"
Ich hoffe ihr seht hier wo der Fehler liegt...
Danke schonmal