cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor

Hello everybody,

Can someone help me find the error in this code, this is an application that measures the pulse duration numerically.

I cannot display the values in the terminal.

I attach my project to this disccusion with the diagram and the code, and also the results displayed on the terminal

Thanks in advance.

Pin assignment:

I have PSoC 4200L card development

pastedImage_1.png

Terminal result:

pastedImage_2.png

0 Likes
Reply
1 Solution
Esteemed Contributor

Hi,

Please try following 2 things

(1) Linker Option

   From Menu: Project > Build Settings

    In the Build Settings dialog: ARM GCC ... > Linker > General

     Use newlib-nano Float Formatting: True

000-Linker-settings.JPG

(2) Expand Heap Size

From Workspace explorer > Design Wide Resources > System

Heap Size: 0x400

001-heap.JPG

moto

View solution in original post

0 Likes
Reply
2 Replies
Esteemed Contributor

Hi,

Please try following 2 things

(1) Linker Option

   From Menu: Project > Build Settings

    In the Build Settings dialog: ARM GCC ... > Linker > General

     Use newlib-nano Float Formatting: True

000-Linker-settings.JPG

(2) Expand Heap Size

From Workspace explorer > Design Wide Resources > System

Heap Size: 0x400

001-heap.JPG

moto

View solution in original post

0 Likes
Reply
Moderator
Moderator

Hi,

As already mentioned by Motoo Tanaka- San, changes are required to be done in build settings to include the support for the floating point. You can find this information under 'Build Settings' section of PSoC Creator User Guide.

You can follow this path for the same - PSoC Creator -> Help -> Documentation -> PSoC Creator User Guide.

I have attached the image for your convenience.

pastedImage_1.png

Thanks and Regards,

Aashita

PSoC Creator User Guide