Home › Forums › Mayfly Data Logger › Error Compiling for board EnviroDIY Mayfly 1284p
- This topic has 7 replies, 2 voices, and was last updated 2024-12-03 at 2:54 PM by Shannon Hicks.
-
AuthorPosts
-
-
2024-11-25 at 2:58 PM #18762
Hello,
I am trying to upload the sketch through the following instructions (ModularSensors/examples/DRWI_NoCellular at master · EnviroDIY/ModularSensors · GitHub)
I followed all the directions but when I try to verify or upload the sketch through Arduino onto our Mayfly, I get the following error message –
<p style=”text-align: center;”>exit status 1
Error compiling for board EnviroDIY Mayfly 1284p.</p>
I am a complete beginner to this and was wondering if I could get any guidance on solving this issue.Thank you.
-
2024-11-25 at 3:28 PM #18763
Have you installed all the supporting libraries into your Arduino/libraries folder? There should be either 32 folders worth of libraries, or 47, depending on whether you downloaded all the recommended EnviroDIY libraries, or just the ModularSensors dependencies.
-
2024-11-25 at 4:26 PM #18764
Yes, I believe I have. It looks like I downloaded all recommended EnviroDIY libraries (47). Do I need to do anything with them once I have them in my library folder? Do I need to install all of them in Arduino somehow?
-
2024-11-25 at 5:20 PM #18765
The unzipped folders go into your MyDocumenrs/Arduino/libraries folder. Make sure they aren’t nested within a second ‘libraries’ folder within the first one. What version of the IDE are you using?
A good way to check that your libraries are installed correctly is to look at the built-in examples. In the ARduino IDE, go to the File dropdown menu, then select examples. You should see the basic Arduino example, then some more complex ones, but keep scrolling to the bottom and you should see lots of other ones like Adafruit and ModularSensors and SDI12. The sketch you’re trying to use should be included under the ModularSensors list. If you don’t see it, then your libraries aren’t installed correctly.
If your libraries are correct, there should be more information in the error window that will tell you what is causing the problem. If you still get the error, copy that full error message into your post.
-
2024-11-26 at 10:29 AM #18766
I am using Arduino 1.8.19
I checked the libraries using your method and I do see all the examples and the sketches under the ModularSensors list.
I now ran into another problem which I believe is related to the DS3231 clock. I was able to set the time correctly using the directions from this page – 4. Preparing the Mayfly Data Logger – EnviroDIY
However, when I tried to upload the sketch for DRWI_NoCellular, I got the following error window:
Arduino: 1.8.19 (Windows 10), Board: “EnviroDIY Mayfly 1284p”
C:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\MaximDS3231.cpp: In member function ‘virtual bool MaximDS3231::startSingleMeasurement()’:
C:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\MaximDS3231.cpp:46:33: error: no matching function for call to ‘Sodaq_DS3231::convertTemperature(bool)’
rtc.convertTemperature(false);
^
In file included fromC:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\MaximDS3231.cpp:10:0:
C:\Users\Documents\Arduino\libraries\Sodaq_DS3231\src/Sodaq_DS3231.h:73:10: note: candidate: void Sodaq_DS3231::convertTemperature()
void convertTemperature();
^~~~~~~~~~~~~~~~~~
C:\Users\Documents\Arduino\libraries\Sodaq_DS3231\src/Sodaq_DS3231.h:73:10: note: candidate expects 0 arguments, 1 provided
exit status 1
Error compiling for board EnviroDIY Mayfly 1284p.This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences. -
2024-11-27 at 10:29 AM #18767
Are you trying to use the that NoCellular sketch as-is, or have you modified it before attempting to upload it?
-
2024-12-03 at 10:34 AM #18773
I have modified the sketch by replacing the UUID list in the original NoCellular sketch with my UUID list from Monitor My Watershed.
-
2024-12-03 at 2:54 PM #18774
The warnings you posted above seem to indicate that there’s a clash with the Sodaq DS3231 library. Did you by chance happen to install that library separately into your Arduino/libraries folder? ModularSensors already includes its own version of the DS3231 library which will conflict with the Sodaq library if they both exist on the same computer.
-
-
AuthorPosts
- You must be logged in to reply to this topic.