Simplke Task, Feeling Stupid

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

cross mob
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I am trying to add Avagadro's tinyprintf  librarey to a PSOC 4 design.

   

So I take following steps -

   

 

   

1) Project directory, add a folder, "User Code"

   

2) Linker and compiler search directorys, add the above directory

   

3) In the folder place the 2 key files, printf.c and printf.h

   

4) Clean and build , and I get error

   

 

   

C:\Users\Nerdsrus\Documents\PSOC Creator Projects\Jim Dad Pioneer LCD Display\Jim Dad Pioneer LCD Display.cydsn/.\main.c:41: undefined reference to `tfp_sprintf'

   


collect2.exe: error: ld returned 1 exit status

   


The command 'arm-none-eabi-gcc.exe' failed with exit code '1'

   

 

   

tfp_sprintf' is a function in the .h and..c files, tool essentially says it can't find it.

   

 

   

Am I doing this right, eg. to generally add not a componernt but just .c and .h files ?

   

 

   

Regards, Dana.

0 Likes
7 Replies