CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help.. MACGetHeader function does not return true

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mr Noobie
Guest







Help.. MACGetHeader function does not return true
PostPosted: Tue Feb 05, 2008 10:15 am     Reply with quote

well.. i am doing the exercises from "Development Kit for the PIC MCU Exercise book". am actually trying out the code from Chapter 7 on ethernet layer.

Below is the code for that section


Code:
void main(void) {
   MAC_ADDR mac;
   int8 type;
   printf(ā€œ\r\n\nCCS TCP/IP TUTORIAL\r\nā€);
   MACInit();
   while(TRUE) {
      if (MACGetHeader(&mac, &type)) {
         if (type!=MAC_UNKNOWN) {
            MACDisplayHeader(&mac, type);
         }
      }
   }
}


After running the MACInit() function, the code return FALSE for MACGetHeader function. And because of that, i did not get the same UART reply as the one stated on the book..

The book say i should get reply as follows
Code:
CCS TCP/IP TUTORIAL
MAC: 00:0B:6A:B4:31:8C PROT:0x0800 [IP]
MAC: 00:D0:59:7F:23:A8 PROT:0x0800 [IP]
MAC: 00:09:5B:E1:30:E2 PROT:0x0800 [IP]
MAC: 00:C0:B6:02:92:BD PROT:0x0800 [IP]
MAC: 00:03:6D:1D:53:9A PROT:0x0806 [ARP]
MAC: 00:C0:B6:02:E2:CA PROT:0x0800 [IP]


but I only get the "CCS TCP/IP TUTORIAL" reply

If MACGetHeader return false, what does it mean..? How can it return FALSE and what must i do to troubleshoot..?

Please advise.. thanks..
Guest








PostPosted: Thu Feb 07, 2008 10:04 pm     Reply with quote

*bump*

Any inputs..?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group