Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error during compiling related to Chimera-Core and SD-Updater #47

Open
shfqrkhn opened this issue May 4, 2023 · 1 comment
Open

Comments

@shfqrkhn
Copy link

shfqrkhn commented May 4, 2023

Getting the error below during compiling. Please advise.

Device: M5Stack Core2 AWS (IoT)
Followed this discussion for the device: #8
Which points to a fork for the device. The master branch throws even more errors (shown below as well).

Fork compile error:

In file included from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src/ESP32-Chimera-Core.hpp:17,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src/ESP32-Chimera-Core.h:5,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:27:
c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src/Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.h:36,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:41:
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:179:47: note: #pragma message: Chimera Core detected
     SDU_PRAGMA_MESSAGE("Chimera Core detected")
                                               ^
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:250:54: note: #pragma message: Trigger source: Touch Button
     SDU_PRAGMA_MESSAGE("Trigger source: Touch Button")
                                                      ^
In file included from c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.h:36,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:41:
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:269:35: note: #pragma message: Attached UI
   SDU_PRAGMA_MESSAGE("Attached UI")
                                   ^
In file included from c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.h:36,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:41:
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:273:48: note: #pragma message: Attached Touch support
     SDU_PRAGMA_MESSAGE("Attached Touch support")
                                                ^
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\62B4BBDCFCBE3F733A1FEA6B0300377C/ESP32-WiFi-Hash-Monster.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg' overflowed by 1488 bytes
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
  Used: C:\Users\Administrator\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.7\libraries\SD
  Not used: C:\Users\Administrator\AppData\Local\Arduino15\libraries\SD
exit status 1

Compilation error: exit status 1

Master branch compile error:

In file included from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src/ESP32-Chimera-Core.hpp:17,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src/ESP32-Chimera-Core.h:5,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster-master\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:27:
c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src/Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.h:36,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster-master\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:41:
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:179:47: note: #pragma message: Chimera Core detected
     SDU_PRAGMA_MESSAGE("Chimera Core detected")
                                               ^
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:250:54: note: #pragma message: Trigger source: Touch Button
     SDU_PRAGMA_MESSAGE("Trigger source: Touch Button")
                                                      ^
In file included from c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.h:36,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster-master\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:41:
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:269:35: note: #pragma message: Attached UI
   SDU_PRAGMA_MESSAGE("Attached UI")
                                   ^
In file included from c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.h:36,
                 from C:\Users\Administrator\Downloads\_Apps\M5Stack Core 2\ESP32-WiFi-Hash-Monster-master\ESP32-WiFi-Hash-Monster\ESP32-WiFi-Hash-Monster.ino:41:
c:\Users\Administrator\Documents\Arduino\libraries\M5Stack-SD-Updater\src/M5StackUpdater.hpp:273:48: note: #pragma message: Attached Touch support
     SDU_PRAGMA_MESSAGE("Attached Touch support")
                                                ^
In file included from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\ESP32-Chimera-Core.hpp:17,
                 from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\esp32-chimera-core.h:5,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\M5Stack\M5Faces.h:6,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\M5Stack\M5Faces.cpp:4:
c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\ESP32-Chimera-Core.hpp:17,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\ESP32-Chimera-Core.cpp:4:
c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\ESP32-Chimera-Core.hpp:17,
                 from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\esp32-chimera-core.h:5,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\common\Audio\Mic_Class.cpp:6:
c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\ESP32-Chimera-Core.hpp:17,
                 from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\esp32-chimera-core.h:5,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\common\Audio\Speaker_Class.cpp:6:
c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\ESP32-Chimera-Core.hpp:17,
                 from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\esp32-chimera-core.h:5,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\drivers\common\IP5306\Power.cpp:10:
c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\ESP32-Chimera-Core.hpp:17,
                 from c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\esp32-chimera-core.h:5,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\utility\TouchButton.h:4,
                 from c:\Users\Administrator\Documents\Arduino\libraries\ESP32-Chimera-Core\src\utility\TouchButton.cpp:1:
c:\users\administrator\documents\arduino\libraries\esp32-chimera-core\src\Config.h:32:21: note: #pragma message: ESP32 Arduino x.x.x (edge)
     #pragma message "ESP32 Arduino x.x.x (edge)"
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\77D599CD61E54729A10728F7AE2A8765/ESP32-WiFi-Hash-Monster.ino.elf section `.dram0.bss' will not fit in region `dram0_0_seg'
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/administrator/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg' overflowed by 1488 bytes
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
  Used: C:\Users\Administrator\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.7\libraries\SD
  Not used: C:\Users\Administrator\AppData\Local\Arduino15\libraries\SD
exit status 1

Compilation error: exit status 1
@Koekebeest
Copy link

Try and comment the SD-updater part out and try again. Maybe try using cloud.arduino.cc
Worked for me this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants