Trying to setup a Freematics One+ for use with traccar and getting this error when attempting to build with Arduino Builder.
Build Target: ESP32 (MCU: esp32 @ 240Mhz)
Library path: hardware/arduino/esp32/libraries/SPI/src
Library path: hardware/arduino/esp32/libraries/FS/src
Library path: hardware/arduino/esp32/libraries/SD/src
Library path: hardware/arduino/esp32/libraries/SPIFFS/src
Library path: C:\Users\user\Documents\Freematics-master\Freematics-master/libraries/httpd
Library path: C:\Users\user\Documents\Freematics-master\Freematics-master/libraries/FreematicsPlus
Library path: hardware/arduino/esp32/libraries/WiFi/src
Referenced libraries: [SPI] [FS] [SD] [SPIFFS] [httpd] [FreematicsPlus] [WiFi]
[Sketch]
Compiling datalogger.ino.cpp...
C:\Users\user\AppData\Local\Temp/ArduinoBuilder/datalogger.ino.cpp: In function 'void showSysInfo()':
C:\Users\user\AppData\Local\Temp/ArduinoBuilder/datalogger.ino.cpp:727:36: error: 'esp_spiram_get_size' was not declared in this scope
Error compiling source code.
error: 'esp_spiram_get_size' was not declared in this scope
Re: error: 'esp_spiram_get_size' was not declared in this scope
It happened to me as well but on the datalogger example. I commented the "esp_spiram_get_size" function call inside "showSysInfo()" and it worked for me.
-
- Posts: 1
- Joined: Wed Apr 10, 2024 11:34 am
Re: error: 'esp_spiram_get_size' was not declared in this scope
Even with the datalogger example, I had the same problem. To fix that, I commented out the call to "esp_spiram_get_size" inside "showSysInfo()" and it ran well.
Re: error: 'esp_spiram_get_size' was not declared in this scope
I believe esp_spiram_get_size is an updated API provided by recent ESP32 Arduino core. It seems you might be using an older core.