Undefined reference to countPulseASM when using pulseInLong function

When trying to use the "pulseInLong" function, I got undefined reference to `countPulseASM' error.
OS: Windows 11
Platform: Arduino
Platform SDK Version: [Arduino SDK version 1.6.4]

if possible can anyone share me proper pulseinlong source file ???

welcome to the forum

Please read 'How to get the best out of this forum'; in particular, ' Posting code and common code problems'

Then please post a minimal but complete sketch which demonstrates the problem, and the full output when you build it.

Ref: pulseInLong() - Arduino Reference

int pin = 7;
unsigned long duration;

void setup() {
  Serial.begin(9600);
  pinMode(pin, INPUT);
}

void loop() {
  duration = pulseInLong(pin, HIGH);
  Serial.println(duration);
}

Thank you all for the response. i just thought to ask the library file which contains the source code of countPulseASM function, because there is no function for countPulseASM. In my wiring_pulse.c, countPulseASM is being called inside pulseIn function and this countPulseASM is declared at wiring_private.h file, but when i try to check the countPulseASM function code, it is not there in any of my arduino library files. That's why I'm getting this issue, so I thought that maybe I should use the latest library file for pulsein and pulseinlong arduino functions.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.