PulseSensor_Amped_Arduino icon indicating copy to clipboard operation
PulseSensor_Amped_Arduino copied to clipboard

Error in Compilation

Open Mujaddadi opened this issue 9 years ago • 3 comments

Hi, As one more person mentioned in another issue of the code, I am having the same error. I am using Arduino IDE to compile for Intel Galileo

Interrupt.ino: In function 'void interruptSetup()': Interrupt.ino:17:3: error: 'TCCR2A' was not declared in this scope Interrupt.ino:18:3: error: 'TCCR2B' was not declared in this scope Interrupt.ino:19:3: error: 'OCR2A' was not declared in this scope Interrupt.ino:20:3: error: 'TIMSK2' was not declared in this scope Interrupt.ino:21:7: error: 'sei' was not declared in this scope Interrupt.ino: At global scope: Interrupt.ino:27:4: error: expected constructor, destructor, or type conversion before '(' token Error compiling.

Anyone has any idea why we are getting this error?

Mujaddadi avatar Oct 22 '15 17:10 Mujaddadi

Same Issue. Any help on this?

jpanz avatar Dec 18 '15 00:12 jpanz

Yeah I found that since arduino is Atmel based and Galileo is Quark based so they are not fully compatible. That's why we are getting interrupts error. I found out that for pulse sensor they have c++ code in Intel upm library http://iotdk.intel.com/docs/master/upm/dir_3d88723ba241360d69dd8d7099a56335.html but it not selectable in eclipse sensor view so I created an issue in upm GitHub page https://github.com/intel-iot-devkit/upm/issues/300 but apparently the pulse sensor developer are busy in some more important issues then fixing bugs. There is also support for this sensor in Intel IOT eclipse for Java but for that first we will need to install Java in the Linux image which Intel provides, since it do not come pre installed with it ironically. So I am trying to install Java in the linux image at the moment.

I am trying to install Java because I have some other requirements but if you want to use arduino IDE, I found one http://gowrisomanath.github.io/gsPulseHeartRate/. Also they have C++ library too but I haven't tried it yet

Mujaddadi avatar Dec 18 '15 15:12 Mujaddadi

Hi, I've the same problem, but with an ArduinoUno (last version) board.

sketch_jan09c.ino: In function 'void setup()': sketch_jan09c.ino:37:18: error: 'interruptSetup' was not declared in this scope sketch_jan09c.ino: In function 'void loop()': sketch_jan09c.ino:47:18: error: 'serialOutput' was not declared in this scope sketch_jan09c.ino:55:37: error: 'serialOutputWhenBeatHappens' was not declared in this scope

I'm an old Max users, but very new in Arduino.

stefanoscarani avatar Jan 09 '16 20:01 stefanoscarani