float LCD creator 3.1

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

cross mob
Anonymous
Not applicable

 Hello everyone

   

someone could help me with a question about creator 3.1

   

to print a float variable in the LCD creator 3.0 is used the

   

-u_printf_float in the settings window

   

but this does not work in crator help as 3.1 prodría algien

   

I can fix this.

   

Thank you for your help

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Please check in project -> Build Settings -> Linker

   

Use newlib nano TRUE

   

Use newlib-nano Float Formatting TRUE

   

 

   

Then a sprintf(Buffer,"%f",3.1416") should work

   

 

   

Bob

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

... and check stack and heap size according to this post.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

These might help -

   

 

       

http://airsupplylab.com/index.php/learn/14-psoc5/9-psoc-floating-point-problem-in-psoc-creator-3 nano library  enable

   

 

   

http://www.cypress.com/?id=4&rID=87354     nano library enable

   

 

   

    

   

         

   

The heap and stack size were reduced in 3.1, try restoring to 3.0 levels 4K and 16K respectively.

   

3.1 default settings are now 128 bytes and 2K. (depends on part used)

   

 System tab in xxxxx*.cydwr file, workspace explorer near the top.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 hello goodnight

   

First, thank you very much for your help.

   

troubleshoot by following the instructions

   

  but unfortunately I have not managed to solve.

   

creator am using 3.0 connection while not cuante with this problem.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Post you project.

   

 

   

Also consider updating Creator to 3.2 SP3, many bug fixes and

   

enhancements since your version.

   

 

   

    

   

          

   

Consider posting your project, makes life easier to troubleshoot.

   

 

   

“File”                                                             Creator

   

“Create Workspace Bundle”

   

 

   

 

   

Regards, Dana.

0 Likes