Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Image sensor project with AN75779 does not work with SDK 1.2

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



Image sensor project with AN75779 does not work with SDK 1.2
Moderator:
RSKV

Post Reply
Follow this topic



Image sensor project with AN75779 does not work with SDK 1.2

shah posted on 28 Sep 2012 5:28 PM PST
Cypress Employee
8 Forum Posts

The image sensor project associated with AN75779 uses I2C, a low speed peripheral, to send control settings to image sensors. The low speed peripheral API library has been separated from the main API library. So the low speed peripheral API library file needs to be added to the project. Steps to add are as below:

1.) Open Project in Eclipse

2.) Right click on the project in the Project Explorer and choose Properties

3.) Choose 'Settings' under 'C/C++ Build' in the Properties box (left panel)

4.) Under the 'Tool Settings' tab go to 'ARM Sourcery Windows GCC C Linker' -> 'Miscellaneous'

5.) Find 'Other flags' field (bottom right) anb add the following text with quotation marks along with other paths:  "${FX3_INSTALL_PATH}\firmware\u3p_firmware\lib\fx3_debug\cyu3lpp.a"

6.) Click Apply then click OK

 

Next, change the memory mapping. Open cyfxtx.c file by double clicking on it in the Project Explorer. Change the heap memory base as follows:

#define CY_U3P_MEM_HEAP_BASE         ((uint8_t *)0x40038000)

 

Last change is in the start up code. Replace the cyfx_gcc_startup.S file in the project with the cyfx_gcc_startup.S file found in any of the SDK 1.2 examples.

 

Save, compile and run.




Re: Image sensor project with AN75779 does not work with SDK 1.2

shah posted on 28 Sep 2012 05:29 PM PST
Cypress Employee
8 Forum Posts

Almost forgot, change the buffer count to 4 in uvc.h file.

#define CY_FX_UVC_STREAM_BUF_COUNT     4

 

Regards,

Karnik



Re: Image sensor project with AN75779 does not work with SDK 1.2

ramuuu posted on 01 Oct 2012 12:14 AM PST
Senior Member
12 Forum Posts

Hi Karnik,

 

Thanks for the update. But, Iam using the Omnivision imagesensor which supports only sccb interface (slightly different from I2C). Can you please support me on this. With a minor update on the I2C API library, you can give me the SCCB API library very fast. Thanks in anticipation.

Sriraam



Re: Image sensor project with AN75779 does not work with SDK 1.2

shah posted on 16 Oct 2012 06:44 PM PST
Cypress Employee
8 Forum Posts

Sriraam,

I do not have any code available. I do not have an omnivision camera with me to test. For now, the best reliable way to do it is to implement it by bit-banging. One of the other customers is also using bit banging to implement the SCCB interface. I am updating some features to AN75779. Once, I am done testing and updating, I will look into implementing SCCB interface and update the post here with results.

Regards,

Karnik



Re: Image sensor project with AN75779 does not work with SDK 1.2

RSKV posted on 17 Oct 2012 03:51 AM PST
Cypress Employee
655 Forum Posts

As I mentioned in the other thread, I2C source code is opened to customers from the SDKv 1.2. Using that, customers might be able to tweak the I2C APIs according to thier requirement.

http://www.cypress.com/?app=forum&id=167&rID=67381

Thanks,

sai krishna.



Re: Omnivision Camera

logicland posted on 15 Nov 2012 05:37 PM PST
Member
9 Forum Posts

FYI there have been posts on this subject already, but there are at least two of us who have got Omnivisions SCCB bus working,  we have used straight I2C and the OV5620 we have worked fine, the other post used bit-banging.

 

 






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.