Floating Point Again

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 know I've been through this before. I am trying to us sprintf to print floating point numbers. I made the recommended changes to the Build Settings to Use newliv-nano Float Formatting, Addition Libraries m. Still not working. Returns nothing.

   

It is Creator 3.3 on a PSoC5.

   

Nick

0 Likes
1 Solution
ScEn_283436
Level 5
Level 5
5 sign-ins First solution authored 100 replies posted

Yes, thanks. Forgot about the Heap Space thing. Cypress support recommended going from the default of 0x80 to 0x1000 on our PSoC 5. I was in such a panic state I didn't see the note at the bottom of the article.

   

http://www.cypress.com/knowledge-base-article/floating-point-support-printf-and-scanf-gnu-arm-compil...

View solution in original post

0 Likes
2 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received


Open the .cydwr-file (where you assign the pins), select the "System" tab at the bottom and in the list you find the settings for the heap which you should increase to 0x200.
PSoC Creator4.1 has been released

0 Likes
ScEn_283436
Level 5
Level 5
5 sign-ins First solution authored 100 replies posted

Yes, thanks. Forgot about the Heap Space thing. Cypress support recommended going from the default of 0x80 to 0x1000 on our PSoC 5. I was in such a panic state I didn't see the note at the bottom of the article.

   

http://www.cypress.com/knowledge-base-article/floating-point-support-printf-and-scanf-gnu-arm-compil...

0 Likes