Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers

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



some questions about writing firmware codes
Moderator:
RSKV

Post Reply
Follow this topic



some questions about writing firmware codes

moeen posted on 05 Dec 2012 8:23 AM PST
Senior Member
11 Forum Posts

Hi,

I would like to develop a firmware for our application. I am manipulating the bulk loop example code. One modification I need is to run the device in high speed mode(our device is fx2lp and is high speed capable). I modified the code this way:

There is a function named HighSpeedCapable(). I manipulated the code in such a way that it always returns true. but when I download the iic file on my device and open the cy console, I notice that the maximum packet size for endpoints is set to 64. I guess in the dscr.a51 file, the descriptor for full speed mode containts maximum packet size 64 and the device dscr table for high speed mode containts the value 1024. So what is wrong with that? does it mean it is not running in high speed mode though I have set the return vaule of HighSpeedCapable function to true?

I have another question : when I want to use the assembly directive " org (($ / 2) +1) * 2"  i get the error : bad relocatable expression. what is the problem?

Tnx







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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20