SEEPROM API Example!

Has anyone tried using SEEPROM API example (naseeprom) given by Netsilicon. The readme file says that the only modification one has to make in the source file root.c is at the line NASEInit() /* Initialize driver / rc = NASEInit(AT25640, PORTC_BIT7, PORTC_BIT5, PORTF_BIT5, PORTH_BIT1); I am using a Net50-3 Eval board Rev C … it has a SPI serial eeprom (8k x 8) on it. However, looking at the BOM in hardware description, I had to modify the line as / Initialize driver */ rc = NASEInit(AT25640, PORTC_BIT7, PORTC_BIT3, PORTC_BIT4, PORTC_BIT5); Port C bit 7 is the chip select out of the Net+50 Port C bit 5 is data out of the Net+50 Port C bit 3 is the clk out of the Net+50 Port C bit 4 is data into the Net+50 However, the application does not work for any of the above two combination and hangs at NASEBlockWriteProtect((unsigned char)j) where j = 0 to 3. What could cause the possible error ? (1) Could it be that some other GPIO lines are used ? (2) Could it be that the API is not working ? Those who have managed using it please reply. Thanks, S, Ay

The application works fine. Try rc = NASEInit(AT25640, PORTC_BIT7, PORTC_BIT3, PORTC_BIT5, PORTC_BIT4); Data In = Port 5 Data out = Port 4