how to include third-party lib.a file to the PSOC6 Project?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

hi  Cypress:

    we have third-party lib.a to use in the psoc6 project , so how to include the lib.a file and how to use it ?

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Go to Project > Build Settings > ARM GCC 4.8.4 > Linker > General > Additional Libraries. b. Type in the library name without prefix "lib" and suffix ".a" (for example, "libemf32nosnlfn.a" would be "emf32nosnlfn") see Figure 7. This is because GCC compiler will automatically add the “lib” prefix to the library name. Refer this thread too PSoc Creator 4.2 and .a lib .

Best Regards,
Vasanth

View solution in original post

0 Likes
3 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Go to Project > Build Settings > ARM GCC 4.8.4 > Linker > General > Additional Libraries. b. Type in the library name without prefix "lib" and suffix ".a" (for example, "libemf32nosnlfn.a" would be "emf32nosnlfn") see Figure 7. This is because GCC compiler will automatically add the “lib” prefix to the library name. Refer this thread too PSoc Creator 4.2 and .a lib .

Best Regards,
Vasanth

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

HI   Vasanth

  How to change  -mfloat-abi=softfp  to  -mfloat-abi=hard

0 Likes

Please refer to the following KBA for adding a library file to Creator: Adding .a Library File to PSoC Creator Project Using GCC Toolchain – KBA227572

PSoC Creator doesn't support hardfp directly. You need to export the project to a makefile project and then modify the VFP variable in the makefile. Please refer this KBA for more information: Enabling Hardware Floating Point Compilation for Arm Cortex-M4 in PSoC Creator™ - KBA222890

Regards,

Dheeraj

0 Likes