You are here

hello please help me | Cypress Semiconductor

hello please help me

Summary: 9 Replies, Latest post by bobgoar on 16 Jul 2016 07:19 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.

i have nokia 5110lcd and Psoc 4100 prototype , My Creater is Psoc 3.0 Creater 

than I can print that command use : LCD_string("any word");

but i cant print float, decimal etc ... same one help me that problem 

 

my mail is toogoo369@yahoo.com

user_1377889's picture
User
10803 posts

Welcome in the forum!

No need to present your email address here, I suggest you to delete it.

To print floats use the sprintf() function which will convert a float into a string. Some prerequisites:

Update to PSoC Creator 3.0 from Cypress website

In the view of the .cydwr file, "System" tab: set the "heap size" to 0x0200

In Project -> Build Settings -> Linker set use newlib-nano float formatting to "true"

in your main.c add a #include <stdio.h>

 

Happy coding

Bob

hi thanks for answer me 

i am beginner so i not good your advice , i think first i follow example project on Psoc3.0 creater and Psoc 4 CY8CKIT-049-42xx board 

so can you help me to give 5110.c 5110.h and printf (float ...)  etc

i have 5110.c and .h file can you show 

that file work on Psoc 3.0 creater

 

user_242978793's picture
User
1485 posts

Here is a program that shows how to use the sprintf() commands.  It is setup for Psoc 5lp and is running on PSoC Creator  3.3 CP2 (3.3.0.7343).

user_242978793's picture
User
1485 posts

Here is the program using a CY8Ckit-049-42xx.

user_242978793's picture
User
1485 posts

Up date your PSOC Creator to the latest version as it makes support easier.

should i update Psoc3.0 became to 3.3 CP2 ? After that archive02 file will work on Psoc3.3 CP2  ?  So Do i dont need other bootloadable.hex file from using now ?

user_242978793's picture
User
1485 posts

You need recompile the SCB_bootloader.cwrk file  after you update to Psoc Creator 3.3 CP2 that way you will have the correct files for the  bootloadable  dependencies . You should also install all of the kit files you intend to use.  Make sure your other files are updated also such as the PsocProgrammer is updated also.

Log in to post new comments.