-
Notifications
You must be signed in to change notification settings - Fork 138
Error on compile #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Which version of the arduino IDE are you currently using? Are you using version 1.2.0 of the MAX30100lib library? |
IDE version 1.8.1 |
There are actually two issues here:
If I correct the So you might say "Well, just install the library normally. Don't put it in the sketch folder" but actually it can be very useful to be able to bundle all 3rd party library dependencies of a sketch in the sketch folder so that it can be distributed as a self contained package. |
@per1234 thank you very much for your detailed analysis. @boubis if you confirm that the issue happens only when you bundle the library into your sketch folder, my suggestion is to simply paste the content of CircularBuffer.tpp into the CircularBuffer.h replacing the include and deleting the former, or renaming it to CircularBuffer_Template.h and adjust the include statement accordingly, as @per1234 suggests. Another option, which you may take just a suggestion, is to use platformio instead of Arduino IDE. |
As the tester hints, you're using the wrong part. As I see from the picture, it looks like a MAX30101 or MAX30102, which aren't compatible with the library. |
The "RCL" breakouts are pesky. Poorly designed, I2C pullups to the 1V8 line and now I see that they're also lying on the actual sensor.. MAX30100 are out of production since a while. |
Another annoying thing from Maxim is that MAX30101 and MAX30102, very similar yet two different models, report the same product id (0x15) when querying register 0xff. But what you have is definitely one of the two. |
I understand and i am so disappointed... |
Yes and no.. There are some backward-incompatible rearrangements of the registers, but the only part that needs to be partially re-written is the low-level device driver (MAX30100 class and its registers). I actually wanted to add support to the new chips, but finding time is always complicated :) |
Good luck! |
I was trying the example code "MAX30100_Minimal.ino", I kept all library src code in parallel the .ino file, which was throwing error while compiling it. As per suggested by @per1234, I removed src of library for project folder and imported it from Managed libraries in Arduino iDE, and it compiled perfectly. The reason Arduino IDE doesn't recognizes .tpp files. Thanks, |
Troubleshooting checklist
Description of the issue
CirculaBuffer.tpp is a file that exists in the directory but there is some issue and it cant link with the Tester.
maybe .tpp extension is wrong?
Output from MAX30100_Tester example
Details of my setup
i dont think this part matters because the code doesnt pass the compile phase
Arduino hardware: Uno
Vdd ->5V
Gnd->Gnd
SDA->SDA
SCL->SCL
INT->Pin 2
MAX30100 breakout: rcwl-0530
Arduino framework version: -
MAX30100 library version: -
The text was updated successfully, but these errors were encountered: