UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor qazben
Visitor
98 Views
Registered: ‎06-18-2019

Problem with xiicps_eeprom_intr_example.c on ZC706 for no-OS

I use the example code (xiicps_eeprom_intr_example.c) for writing and reading "a page" of data successfully.

How should I do if I want to write and read for "multiple pages"?


I've tried to modify some lines of code (colored in red, example for 2 pages):

Status = EepromWriteData(&IicInstance, WrBfrOffset + PageSize * 2);

Status = EepromReadData(&IicInstance, ReadBuffer, PageSize * 2);

But the read result show that only the second page of WriteBuffer is read and located at ReadBuffer[0] to ReadBuffer[15].

Is there any code should I modify?

 

The following is my Write and Read buffer definitions: 

u8 WriteBuffer[sizeof(AddressType) + 32];

u8 ReadBuffer[32]; 

 

Regards, 

Ben Zhuo

0 Kudos
2 Replies
Visitor qazben
Visitor
62 Views
Registered: ‎06-18-2019

Re: Problem with xiicps_eeprom_intr_example.c on ZC706 for no-OS

Could anyone give me some suggestion?

thanks a lot

0 Kudos
Visitor qazben
Visitor
39 Views
Registered: ‎06-18-2019

Re: Problem with xiicps_eeprom_intr_example.c on ZC706 for no-OS

still not solved...

Could anyone give me some suggestion?

0 Kudos