build error : undifinde reference to Pin_TRIGGER_Write

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

cross mob
Anonymous
Not applicable

Dear Forum users

I'm currently working on a psoc project that requires me to interface with an HC-sr04 ultrasonic distance sensor.

Now when i'm trying to write the code to trigger the sensor it keeps telling me that there is an undefined reference to 'Pin_TRIGGER_Write'

I've assigned the pin etc can some one tell me or point me to the right solution ?

Thanks in advanced and with best regards Ben

0 Likes
1 Solution

The name of the component is "TRIGGER", not "Pin_TRIGGER".

So the API TRIGGER_Write() will access your pin component.

Bob

View solution in original post

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Ben, can you please post your complete project so that we all can have a look at all of your settings. To do so, use

Creator->File->Create Workspace Bundle (minimal)

and attach the resulting file.

Bob

lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hey

Here you go

With best regards Ben

0 Likes

The name of the component is "TRIGGER", not "Pin_TRIGGER".

So the API TRIGGER_Write() will access your pin component.

Bob

0 Likes