Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)
Moderator:
RSKV

Post Reply
Follow this topic



CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 04 Jul 2012 2:17 AM PST
Senior Member
15 Forum Posts

HI,

    I tried to download "my_firmware.iic" to my CY68013A board with two bland new 24LC128 EEPROM(A0,A1,A2:1,0,0 and 1,1,0), below is what i did:

1. Open Cypress suit usb 3.4.7->Cyconsole->EZ-USB interface

2.Select download C:\Cypress\USB\Examples\FX2LP\Vend_ax\Vend_ax.hex to CY68013A's on chip RAM

3.Set Req:0xA9, Value:0x0000, index:0x0000, Length:16, Dir:in,   i got:CD CD CD CD CD.........

4.Set Req:0xA9, Value:0x0000, index:0x0000, Length:1, Dir:out, hex byte: 00

5.Set Req:0xA9, Value:0x0000, index:0x0000, Length:1, Dir:in,  i got:CD again(that means now data be wrote in to EEPROM)

6.Select lg EEPROM->"my_firmware.iic"  i got messagebox: EEPROM NOT ENABLED.

7.I used a oscilloscope to IIC BUS during 0xA9 and lg EEPROM,  i found there is not wave on the BUS!!!

Is there anybody can help me? Thanks! 




Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 04 Jul 2012 02:22 AM PST
Senior Member
15 Forum Posts

There is a i2cread() function in "my_firmware.hex", when i download it to CY68013A's on chip RAM, it can read my ADC with perfect data return!



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

RSKV posted on 04 Jul 2012 02:47 AM PST
Cypress Employee
655 Forum Posts

Are you using your custom board or FX2LP DVK?

Regards,

sai krishna.



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 04 Jul 2012 02:56 AM PST
Senior Member
15 Forum Posts

YES, is there any problem?



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

RSKV posted on 04 Jul 2012 03:02 AM PST
Cypress Employee
655 Forum Posts

No problem at all.

But, I would like to know whether you are using FX2LP DVK or not. I can suggest you based on that.

Regards,

sai krishna.



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 04 Jul 2012 03:28 AM PST
Senior Member
15 Forum Posts

yes, i use my custom board, i have no FX2LP DVK.



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

RSKV posted on 04 Jul 2012 03:47 AM PST
Cypress Employee
655 Forum Posts

 Do you have any switch on your board to decide whether the EEPROM is connected to FX2LP or not.

Basically the message that you are getting comes when you don't have your EEPROM connected to the chip. Please check whether it is connected properly. If it is connected properly then check EEPROM is getting power correctly. Also the pull ups.

Actually once you connect your board to PC and if it gets detected by the CyConsole then you can directly use the "Lg EEPROM" button on the CyConsole to programm the EEPROM. But before clicking the Lg EEPROM button, that EEPROM should be connected to FX2LP.

Regards,

sai krishna.



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 04 Jul 2012 06:36 PM PST
Senior Member
15 Forum Posts

Do you have any switch on your board to decide whether the EEPROM is connected to FX2LP or not.

No, i don't have any switch about EEPROM, it's connected to my FX2LP directly.

Basically the message that you are getting comes when you don't have your EEPROM connected to the chip. Please check whether it is connected properly. If it is connected properly then check EEPROM is getting power correctly. Also the pull ups.

Yes, i'm pretty sure the EEPROMs connect to FX2LP well, and pull up is good, because is measure all the ping's voltage for EEPROM chip. and my ADC can be read normally when i download my_firmware.bin to FX2LP's on chip RAM.

Actually once you connect your board to PC and if it gets detected by the CyConsole then you can directly use the "Lg EEPROM" button on the CyConsole to programm the EEPROM. But before clicking the Lg EEPROM button, that EEPROM should be connected to FX2LP.

I think the key problem is not EEPROM connection issue. It should be why there is no wave on IIC bus, and also once i use lg EEPROM to download my_firemware.iic to board, the CLK of IIC bus will be set to low and never go high again(same with C:\Cypress\USB\Examples\FX2LP\EEPROM Images\FX2LP_C0.iic).

you can see my design in attachment!

thanks a lot!



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

RSKV posted on 05 Jul 2012 03:36 AM PST
Cypress Employee
655 Forum Posts

 SDA and SCK lines are interchanged at the EEPROM. SDA of FX2LP chip is connected to the clock of your EEPROM.

Regards,

sai krishna.



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 05 Jul 2012 06:04 PM PST
Senior Member
15 Forum Posts

OH,Yes, that's it , what a stupid mistake, thank you very much! I will take some fly wire on it  and try it again, also will let you know the result, thanks again!



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 05 Jul 2012 06:28 PM PST
Senior Member
15 Forum Posts

OK, the EEPROM is working now,  thank you!



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

RSKV posted on 05 Jul 2012 07:00 PM PST
Cypress Employee
655 Forum Posts

 Good to hear that it is working at your end.

Regards,

sai krishna.



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

gjhave posted on 05 Jul 2012 07:23 PM PST
Senior Member
15 Forum Posts

Hi, there's another question for EEPROM, CY68013A has a 16K BYTE RAM, 8K for program, 8Kfor data, but we use two 16K BYTE EEPROMs, if my firmware is more longer than 8K in EEPROM, can it work normal? if yes, how does it work? Thanks!



Re: CA68013A DOWNLOAD *.IIC TO EEPROM(no wave on iic bus)

RSKV posted on 05 Jul 2012 08:28 PM PST
Cypress Employee
655 Forum Posts

 Hi,

FX2LP has internal 16KB of RAM. Program memory and data memory are not seperated. Combined memory is 16KB. For more details on memory, please refer to 5th chapter (Memory) of the technical reference manual.

http://www.cypress.com/?rID=38232

Regards,

sai krishna.

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.