Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Error Compiling for board EnviroDIY Mayfly 1284p

Home Forums Mayfly Data Logger Error Compiling for board EnviroDIY Mayfly 1284p

Viewing 9 reply threads
  • Author
    Posts
    • #18762
      JK_WCCD
      Participant

        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.

      • #18763
        Shannon Hicks
        Moderator

          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.

        • #18764
          JK_WCCD
          Participant

            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?

          • #18765
            Shannon Hicks
            Moderator

              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.

            • #18766
              JK_WCCD
              Participant

                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 from

                C:\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.

              • #18767
                Shannon Hicks
                Moderator

                  Are you trying to use the that NoCellular sketch as-is, or have you modified it before attempting to upload it?

                • #18773
                  JK_WCCD
                  Participant

                    I have modified the sketch by replacing the UUID list in the original NoCellular sketch with my UUID list from Monitor My Watershed.

                  • #18774
                    Shannon Hicks
                    Moderator

                      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.

                    • #18841
                      JK_WCCD
                      Participant

                        I figured out the issue but I am now facing another error. I keep getting the following error message –

                        C:\Users\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\AlphasenseCO2.cpp:17:10: fatal error: Adafruit_ADS1X15.h: No such file or directory
                        #include <Adafruit_ADS1X15.h>
                        ^~~~~~~~~~~~~~~~~~~~
                        compilation terminated.
                        exit status 1
                        Error compiling for board EnviroDIY Mayfly 1284p.

                         

                        Any help would be appreciated. Thank you.

                         

                      • #18842
                        Shannon Hicks
                        Moderator

                          It looks like you’re having the same issues a few other people have reported lately. We’re working on a fix, but in the meantime, the easiest thing to do is to replace all your “MyDocuments/Arduino/libraries” files with the stable versions from last summer.  In order to do this, you’ll have to delete all the current library files on your PC.  If you’re only using a Mayfly board with the standard sensors and accessories we typically recommend, and you haven’t downloaded other library files for other non-EnviroDIY devices or equipment, then it’s fine to delete all your library files.  If you HAVE downloaded other non-EnviroDIY library files for other things, then don’t proceed because you’ll delete the files for those other things.  Otherwise, follow these instructions:

                          First, close the Arduino IDE (it’s best to do this without the IDE running).  Then use Windows File Manager (assuming you’re on a windows PC) to browse to MyDocuments/Arduino.

                          In there you’ll see any customized sketches you’ve saved, plus a folder called “libraries”

                          Double click on “libraries”, and in that folder you should see about 45 folders (if you’re using the most recent version of ModularSensors and it’s dependencies).  Highlight them all (using Ctrl+A) and then hit Delete key (or right click on them with the mouse and choose Delete).

                          Now you should have a libraries folder that is completely empty.

                          Now use your browser to visit this page: https://github.com/EnviroDIY/ModularSensors/releases

                          Scroll down to the May 17, 2024 entry which is for version v.0.35.0

                          At the bottom of that section, click on “Assets” and you should see 3 files listed.  Right-click on the one called “ModularSensors_Dependencies_v.0.35.0.zip” and save the file to your computer.

                          Now use windows File Manager to double-click on that zip file.  Inside it you should see 32 folders.  Select all of them, hit Ctrl-C to copy (or right-click and Copy).  Then switch to the empty “libraries” folder within your “MyDocuments/Arduino” folder, and paste the 32 directories into the libraries folder.

                          You have now installed the old, stable versions of the library files.  Restart your Arduino IDE and you should still have all your saved personal sketched in the Sketchbook, and when you compile the sketch for your logger, you should have no errors now.

                      Viewing 9 reply threads
                      • You must be logged in to reply to this topic.