Measure the duration of pulse

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

cross mob
lock attach
Attachments are accessible only for community members.
SoEL_4655151
Level 1
Level 1

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
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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
2 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

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