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 7 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.

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