C library PSoC3 to PSoC5

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

cross mob
ScEn_283436
Level 5
Level 5
5 sign-ins First solution authored 100 replies posted

Hi,

   

I have recently switched from Creator 3.0 - PSoC3 to Creator 3.3 SP2 - PSoC5. Have been having issues getting the libraries to function as they did previously in 3.0. I have checked the migration guide and there is no mention of the C libraries. First I had a problem with math.h and found an app-note on that regarding the build settings->linker->general. Is there a similar thing you have to do for stdio.h? The sprintf function doesn't do anything. Also, is there a guide for setting all this up?

   

Thanks,

   

Nick

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

To use sprintf() for floats:

   
        
  • Increase the heap to at least 0x0200
  •     
  • Use newlib nano
  •     
  • Use newlib nano float formatting
  •    
   

 

   

Bob

0 Likes