cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

New Contributor II

Hi,

I would like to create a CX3 project with library output (similar with E-Consystem libCX3OV5640.a) to protect some proprietary setting of this project before sharing the project to co-work(sensor maker) company. Is any document to describe this?

Thanks

Angus

0 Likes
Reply
1 Solution
Employee

You could use the arm-gcc tool along with SDK in command line. To do that,

1. go to the project path in command line.

2. run the command below

arm-none-eabi-gcc -c cyu3imagesensor.c -D__CYU3P_TX__=1 -I "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\fw_lib\1_3_3\inc" -I "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\arm-none-eabi\include"

You could modify if there is any difference in your environment.

3. After step2, you will get object file under the project path. Run ar tool to link and generate .a file.

arm-none-eabi-ar -r libCypressOv5640.a cyu3imagesensor.o

4. You should get the .a file under project path if no error appears. Add it in project settings.

BaiduShurufa_2019-3-8_10-10-28.bmp

I also write the command above into bat file. You could run them under project path.

View solution in original post

1 Reply
Employee

You could use the arm-gcc tool along with SDK in command line. To do that,

1. go to the project path in command line.

2. run the command below

arm-none-eabi-gcc -c cyu3imagesensor.c -D__CYU3P_TX__=1 -I "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\fw_lib\1_3_3\inc" -I "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\arm-none-eabi\include"

You could modify if there is any difference in your environment.

3. After step2, you will get object file under the project path. Run ar tool to link and generate .a file.

arm-none-eabi-ar -r libCypressOv5640.a cyu3imagesensor.o

4. You should get the .a file under project path if no error appears. Add it in project settings.

BaiduShurufa_2019-3-8_10-10-28.bmp

I also write the command above into bat file. You could run them under project path.

View solution in original post