cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

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
JoMe_264151
Expert II

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
JoMe_264151
Expert II

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

   

 

   

Bob

0 Likes
ETRO_SSN583
Esteemed Contributor

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
Esteemed Contributor

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