Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Code memory of CY7C68013A

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



Code memory of CY7C68013A
Moderator:
RSKV

Post Reply
Follow this topic



Code memory of CY7C68013A

Jony posted on 23 May 2011 8:58 PM PST
Member
4 Forum Posts

Dear sir,

We choose CY7C68013A to implement our project. And the firmware is based on BulkLoop. Of course, we have added the needed code what will help us. But the problem is that: while we burning the iic file(C2 load) into our lardge eeprom(24C128), the CyConsole can not recognise our board. So, we cut some code and retry the front steps, Oh....it can recognise our board!

We have no idea about it! Why? The CY7C68013A restrict the code size ? But, the <EZ-USB TRM> has specified that it has 16KB internal RAM which is Program&Data(We set EA=0).

So, help me please! Thanks so much!

 

Josh Wei

 




Re: Code memory of CY7C68013A

aasi posted on 24 May 2011 08:31 AM PST
Cypress Employee
1090 Forum Posts
Have you taken care of mapping the code to internal memory?? hex2bix would print out a line at the end showing code size and stuff... can you post that here? Regards, Anand

Re: Code memory of CY7C68013A

Jony posted on 24 May 2011 07:54 PM PST
Member
4 Forum Posts

Thanks for reply.

Yes, we used hex2bix to convert our hex file into iic file which will be burned into EEPROM(24C128) with C2 load.

And the command is set as below:

.\hex2bix -i -f 0xC2 -o GP10.iic GP10.hex

Note:  1). The hex2bix is under our project directory;

            2). The command is attached to Keil User Program which will run when you compile the keil project.

 

Now, the hex2bix output is that:

creating hex file from "GP10"

User command #1:.\hex2bix -i -f 0xC2 -o GP10.iic GP10.hex

Intel Hex file to EZ-USB Binary file conversion utility

Copyright (c) 1997-2005, Cypress Semiconductor Inc.

4353 Bytes written.

Total Code Bytes = 4304

Conversion completed successfully.



Re: Code memory of CY7C68013A

Jony posted on 24 May 2011 07:59 PM PST
Member
4 Forum Posts

Also, you said that mapping code into internal memory! But, I really don't know how to do?? (The EA pin is set as LOW)

Could you tell me, sir!

 

Thanks a lot,

 

Josh Wei



Re: Code memory of CY7C68013A

aasi posted on 26 May 2011 08:57 PM PST
Cypress Employee
1090 Forum Posts

Josh,

Your code size is aroundd 4k much lesser than the internal RAM size.

In keil, under project settings you should find the xdata and code field under BL51 tab. Using this you can specify the range occupied by data and code of your firmware. Before converting to iic downloading the hex file to check and confirm the working would be a  good idea.

Regards,

Anand






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.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20