We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
We wanted to post this problem and solution here in case anyone has a similar problem - which took us several days to track down.
We have a custom board with a CypressFX2LP and a large 32kB (256kb) EEPROM. For the purpose of bootloading from an attached EEPROM, the Cypress hardware determines the size range (small or large, single or double byte addressing) of the attached EEPROM depending on how its address is wired up. It must be wired up so that A2-A0=001. We were using an MSOP8 EEPROM (Microchip 24AA256) that does not connect A0 and A1 internally, therefore it is impossible to set the address to 001. That means the Cypress treats this EEPROM as a small EEPROM and only correctly reads part of the program. It also means that when we tried to write to the EEPROM we were using the address we wired up on the board but the EEPROM was not configured with this address (due to the unconnected pins in the MSOP8 package), so we were never completing the write and the EZUSB_WaitForEEPROMWrite was never returning.
We were finally able to write to the EEPROM using address 000 but this still doesn't solve the problem that this EEPROM cannot be wired up to be recognized by the CypressFX2 as a large EEPROM. For now we are testing with RAM download of the firmware.
Rather the point of above post is,
"We have a custom board with a CypressFX2LP and a large 32kB (256kb) EEPROM...(Microchip 24AA256)"
He is going to connect an EEPROM of unsupported size. Then, he has hard time.
Supported EEPROMs and its slave address assignment is listed up on this chapter of EZ-USB manual (TRM).
"13.5 EEPROM Boot Loader (EZ-USB_TRM.pdf Page 13-17)"
24LC00 - 24LC128 are listed up.
As the size of program/data RAM of FX2LP is 16K bytes, usually, 24LC128 covers full code area.
Maybe he needs some extra space.
Tsuneo
EZ-USB Technical Reference Manual Version 1.4 download.cypress.com.edgesuite.net/.../ez_usb_r___technical_reference_manual__trm__14.pdf