Another FreeMem() issue

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
orcusomega
New user
Posts: 3
Joined: 06 Jun 2017, 22:04

Another FreeMem() issue

#1 Post by orcusomega » 06 Jun 2017, 22:20

I have tried to follow in detail the instructions on configuring the Arduino IDE for pushing ESP Easy to my Wemos D1 Mini.

I am not sure why this is occuring - I have followed previous issues raised by others from Google - so please let me know where to start digging.

Code: Select all

Arduino: 1.8.3 (Windows 10), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void setup()':

ESPEasy:643: error: 'FreeMem' was not declared in this scope

   lowestRAM = FreeMem();

                       ^

ESPEasy:648: error: 'initLog' was not declared in this scope

   initLog();

           ^

ESPEasy:651: error: 'SpiffsSectors' was not declared in this scope

   if (SpiffsSectors() < 32)

                     ^

ESPEasy:658: error: 'emergencyReset' was not declared in this scope

   emergencyReset();

                  ^

ESPEasy:662: error: 'addLog' was not declared in this scope

   addLog(LOG_LEVEL_INFO, log);

                             ^

ESPEasy:664: error: 'fileSystemCheck' was not declared in this scope

   fileSystemCheck();

                   ^

ESPEasy:665: error: 'LoadSettings' was not declared in this scope

   LoadSettings();

                ^

ESPEasy:683: error: 'ResetFactory' was not declared in this scope

     ResetFactory();

                  ^

ESPEasy:690: error: 'BuildFixes' was not declared in this scope

     BuildFixes();

                ^

ESPEasy:700: error: 'hardwareInit' was not declared in this scope

   hardwareInit();

                ^

ESPEasy:703: error: 'WifiAPconfig' was not declared in this scope

   WifiAPconfig();

                ^

ESPEasy:704: error: 'WifiConnect' was not declared in this scope

   if (!WifiConnect(true,3))

                          ^

ESPEasy:722: error: 'PluginInit' was not declared in this scope

   PluginInit();

              ^

ESPEasy:723: error: 'CPluginInit' was not declared in this scope

   CPluginInit();

               ^

ESPEasy:724: error: 'NPluginInit' was not declared in this scope

   NPluginInit();

               ^

ESPEasy:726: error: 'WebServerInit' was not declared in this scope

   WebServerInit();

                 ^

ESPEasy:737: error: 'getProtocolIndex' was not declared in this scope

   byte ProtocolIndex = getProtocolIndex(Settings.Protocol[0]);

                                                             ^

ESPEasy:739: error: 'MQTTConnect' was not declared in this scope

     MQTTConnect();

                 ^

ESPEasy:741: error: 'sendSysInfoUDP' was not declared in this scope

   sendSysInfoUDP(3);

                   ^

ESPEasy:744: error: 'readFromRTC' was not declared in this scope

   if (readFromRTC())

                   ^

ESPEasy:746: error: 'readUserVarFromRTC' was not declared in this scope

     readUserVarFromRTC();

                        ^

ESPEasy:763: error: 'saveToRTC' was not declared in this scope

     saveToRTC();

               ^

ESPEasy:775: error: 'initTime' was not declared in this scope

     initTime();

              ^

ESPEasy:790: error: 'rulesProcessing' was not declared in this scope

     rulesProcessing(event);

                          ^

ESPEasy:794: error: 'saveToRTC' was not declared in this scope

   saveToRTC();

             ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void loop()':

ESPEasy:810: error: 'WifiConnect' was not declared in this scope

     WifiConnect(true,1);

                       ^

ESPEasy:816: error: 'isDeepSleepEnabled' was not declared in this scope

   if (isDeepSleepEnabled())

                          ^

ESPEasy:822: error: 'deepSleep' was not declared in this scope

       deepSleep(Settings.Delay);

                               ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void run50TimesPerSecond()':

ESPEasy:853: error: 'PluginCall' was not declared in this scope

   PluginCall(PLUGIN_FIFTY_PER_SECOND, 0, dummyString);

                                                     ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void run10TimesPerSecond()':

ESPEasy:865: error: 'PluginCall' was not declared in this scope

   PluginCall(PLUGIN_TEN_PER_SECOND, 0, dummyString);

                                                   ^

ESPEasy:868: error: 'rulesProcessing' was not declared in this scope

     rulesProcessing(eventBuffer);

                                ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void runOncePerSecond()':

ESPEasy:884: error: 'saveToRTC' was not declared in this scope

     saveToRTC();

               ^

ESPEasy:887: error: 'addLog' was not declared in this scope

     addLog(LOG_LEVEL_INFO, log);

                               ^

ESPEasy:896: error: 'delayedReboot' was not declared in this scope

       delayedReboot(60);

                       ^

ESPEasy:904: error: 'WifiDisconnect' was not declared in this scope

           WifiDisconnect();

                          ^

ESPEasy:918: error: 'checkTime' was not declared in this scope

     checkTime();

               ^

ESPEasy:921: error: 'PluginCall' was not declared in this scope

   PluginCall(PLUGIN_ONCE_A_SECOND, 0, dummyString);

                                                  ^

ESPEasy:926: error: 'rulesTimers' was not declared in this scope

     rulesTimers();

                 ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void runEach30Seconds()':

ESPEasy:964: error: 'FreeMem' was not declared in this scope

   sprintf_P(str, PSTR("Uptime %u ConnectFailures %u FreeMem %u"), wdcounter / 2, connectionFailures, FreeMem());

                                                                                                              ^

ESPEasy:967: error: 'addLog' was not declared in this scope

   addLog(LOG_LEVEL_INFO, log);

                             ^

ESPEasy:968: error: 'sendSysInfoUDP' was not declared in this scope

   sendSysInfoUDP(1);

                   ^

ESPEasy:969: error: 'refreshNodeList' was not declared in this scope

   refreshNodeList();

                   ^

ESPEasy:970: error: 'MQTTCheck' was not declared in this scope

   MQTTCheck();

             ^

ESPEasy:972: error: 'SSDP_update' was not declared in this scope

     SSDP_update();

                 ^

ESPEasy:981: error: 'WifiCheck' was not declared in this scope

   WifiCheck();

             ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void checkSensors()':

ESPEasy:995: error: 'isDeepSleepEnabled' was not declared in this scope

   bool isDeepSleep = isDeepSleepEnabled();

                                         ^

ESPEasy:1010: error: 'saveUserVarToRTC' was not declared in this scope

   saveUserVarToRTC();

                    ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void SensorSendTask(byte)':

ESPEasy:1036: error: 'getDeviceIndex' was not declared in this scope

     byte DeviceIndex = getDeviceIndex(Settings.TaskDeviceNumber[TaskIndex]);

                                                                           ^

ESPEasy:1037: error: 'LoadTaskSettings' was not declared in this scope

     LoadTaskSettings(TaskIndex);

                               ^

ESPEasy:1050: error: 'PluginCall' was not declared in this scope

       success = PluginCall(PLUGIN_READ, &TempEvent, dummyString);

                                                                ^

ESPEasy:1067: error: 'Calculate' was not declared in this scope

           byte error = Calculate(formula.c_str(), &result);

                                                          ^

ESPEasy:1072: error: 'sendData' was not declared in this scope

       sendData(&TempEvent);

                          ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'boolean checkSystemTimers()':

ESPEasy:1137: error: 'timeOut' was not declared in this scope

       if (timeOut(systemTimers[x].timer))

                                        ^

ESPEasy:1152: error: 'timeOut' was not declared in this scope

       if (timeOut(systemCMDTimers[x].timer))

                                           ^

ESPEasy:1155: error: 'parseCommandString' was not declared in this scope

         parseCommandString(&TempEvent, systemCMDTimers[x].action);

                                                                 ^

ESPEasy:1156: error: 'PluginCall' was not declared in this scope

         if (!PluginCall(PLUGIN_WRITE, &TempEvent, systemCMDTimers[x].action))

                                                                            ^

ESPEasy:1157: error: 'ExecuteCommand' was not declared in this scope

           ExecuteCommand(VALUE_SOURCE_SYSTEM, systemCMDTimers[x].action.c_str());

                                                                                ^

C:\Users\[REDACTED]\Documents\Dropbox\personal\Projects\1 - esp8266\ESPEasy\ESPEasy.ino: In function 'void backgroundtasks()':

ESPEasy:1169: error: 'tcpCleanup' was not declared in this scope

   tcpCleanup();

              ^

ESPEasy:1173: error: 'PluginCall' was not declared in this scope

       if (!PluginCall(PLUGIN_SERIAL_IN, 0, dummyString))

                                                       ^

ESPEasy:1174: error: 'serial' was not declared in this scope

         serial();

                ^

ESPEasy:1182: error: 'checkUDP' was not declared in this scope

   checkUDP();

            ^

ESPEasy:1198: error: 'statusLED' was not declared in this scope

   statusLED(false);

                  ^

Multiple libraries were found for "SD.h"
 Used: C:\Users\[REDACTED]\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
 Not used: C:\Program Files (x86)\Arduino\libraries\SD
Multiple libraries were found for "Servo.h"
 Used: C:\Users\[REDACTED]\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
 Not used: C:\Program Files (x86)\Arduino\libraries\Servo
exit status 1
'FreeMem' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I have tried the IDE version 1.6.3, 1.6.5, 1.6.7, 1.8.1, 1.8.2, and now on 1.8.3

IDE 1.8.3, version ESPEasy-2.0.0-dev10

I have tried compiling and installing other examples (Blink, for example) to confirm that the communications and mini are working at least.

Any suggestions very much appreciated! have been fighting with this all day.

Thanks!

michelvolkel
New user
Posts: 1
Joined: 02 Apr 2023, 21:42

Re: Another FreeMem() issue

#2 Post by michelvolkel » 02 Apr 2023, 21:43

Got the same error on this.. Weird that nobody has given a solution after all those years that passed by.

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Another FreeMem() issue

#3 Post by TD-er » 02 Apr 2023, 22:06

Please don't use Arduino IDE, but use PlatformIO.
For example along with VS-code.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 42 guests