cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

David_Zhang
New Contributor II

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

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

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
David_Zhang
New Contributor II

HI   Vasanth

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

0 Likes
DheerajK_81
Moderator
Moderator

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