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.
|