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

Error Compiling #1

Closed
jdwolin opened this issue Jan 3, 2018 · 2 comments
Closed

Error Compiling #1

jdwolin opened this issue Jan 3, 2018 · 2 comments

Comments

@jdwolin
Copy link

jdwolin commented Jan 3, 2018

This code looks awesome but I'm having a hard time compiling it on my end. I’m using Arduino 1.8.4 and the latest ESP core. I've tried multiple boards including the one you recommended in the readme.md file. Everything seems to compile fine until almost the very end and get this error message:

Arduino: 1.8.4 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"

Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\JASONW~1\AppData\Local\Temp\arduino_cache_215143\core\core_esp8266_esp8266_nodemcuv2_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,UploadSpeed_115200_7b72b833e5a4650743b2f437f2ae88d2.a
sketch\wled00.ino.cpp.o: In function `~StringSumHelper':

C:\Users\Jason Wolin\Dropbox\My Hobbies\ClockProduction\Code\Belgrade\wled00/wled12_alexa.ino:51: undefined reference to `NeoEsp8266Uart::NeoEsp8266Uart(unsigned short, unsigned int)'

sketch\wled00.ino.cpp.o: In function `__static_initialization_and_destruction_0':

C:\Users\Jason Wolin\Dropbox\My Hobbies\ClockProduction\Code\Belgrade\wled00/wled12_alexa.ino:51: undefined reference to `NeoEsp8266Uart::NeoEsp8266Uart(unsigned short, unsigned int)'

sketch\wled00.ino.cpp.o: In function `WS2812FX':

C:\Users\Jason Wolin\Dropbox\My Hobbies\ClockProduction\Code\Belgrade\wled00/wled12_alexa.ino:51: undefined reference to `NeoEsp8266Uart::~NeoEsp8266Uart()'

C:\Users\Jason Wolin\Dropbox\My Hobbies\ClockProduction\Code\Belgrade\wled00/wled12_alexa.ino:51: undefined reference to `NeoEsp8266Uart::~NeoEsp8266Uart()'

sketch\WS2812FX.cpp.o: In function `WS2812FX::setRange(int, int, unsigned int)':

sketch/WS2812FX.cpp:1904: undefined reference to `NeoEsp8266Uart::UpdateUart()'

sketch\WS2812FX.cpp.o: In function `NeoEsp8266UartMethodBase<NeoEsp8266UartSpeed800Kbps, NeoEsp8266Uart>::Update()':

sketch/WS2812FX.cpp:1904: undefined reference to `NeoEsp8266Uart::UpdateUart()'

sketch\WS2812FX.cpp.o:(.text._ZN11NeoPixelBusI13NeoGrbFeature24NeoEsp8266UartMethodBaseI26NeoEsp8266UartSpeed800Kbps14NeoEsp8266UartEE5BeginEv[_ZN11NeoPixelBusI13NeoGrbFeature24NeoEsp8266UartMethodBaseI26NeoEsp8266UartSpeed800Kbps14NeoEsp8266UartEE5BeginEv]+0x4): undefined reference to `NeoEsp8266Uart::InitializeUart(unsigned int)'

sketch\WS2812FX.cpp.o: In function `NeoEsp8266UartMethodBase<NeoEsp8266UartSpeed800Kbps, NeoEsp8266Uart>::Initialize()':

sketch/WS2812FX.cpp:1904: undefined reference to `NeoEsp8266Uart::InitializeUart(unsigned int)'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

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

@jdwolin
Copy link
Author

jdwolin commented Jan 4, 2018

Fixed the issue: I had to uninstall and reinstall the neopixelbus library. Wroks perfect now.

@jdwolin jdwolin closed this as completed Jan 4, 2018
@Aircoookie
Copy link
Owner

Just saw this now! Awesome that it works for you now! If you have any suggestions for future features, feel free to ask :)

Aircoookie pushed a commit that referenced this issue Jan 5, 2020
@KB706 KB706 mentioned this issue Nov 18, 2021
1 task
profporridge pushed a commit to profporridge/WLED that referenced this issue Mar 10, 2022
Aircoookie added a commit that referenced this issue Mar 23, 2022
* Add usermode to control Wiz lights (#1)

* Fix inclusion in usermods list

Co-authored-by: Christian Schwinne <[email protected]>
ewoudwijma referenced this issue in MoonModules/WLED Oct 28, 2022
This is a nice little chip info tool that I've created some time ago.
When building with `-D WLED_DEBUG`, it reports some interesting information about your ESP32 on serial monitor.

````
====================================
Chip info for ESP32-D0WDQ5
SDK:          v4.4.1-472-gc9140caf8c
------------------------------------

 XTAL FREQ: 40   MHz
 APB FREQ:  80.0 MHz
 CPU FREQ:  240  MHz

ESP32 DEVICE:    ESP32-D0WD-V3 rev.3, 2 core(s), 240MHz.

Chip feature flags: 0b110010
  * 0b0000010 Chip has 2.4GHz WiFi
  * 0b0001000 Chip has Bluetooth LE
  * 0b0010000 Chip has Bluetooth Classic

FLASH CHIP FREQ (magic): 80.0 MHz
FLASH SIZE (magic byte): 4.00 MB
FLASH MODE (magic byte): 2 ;  0=QIO, 1=QOUT, 2=DIO, 3=DOUT or other

FLASH CHIP ID:   0x16405E
FLASH CHIP FREQ: 80.0 MHz
FLASH REAL SIZE: 4.00 MB
FLASH REAL MODE: DIO

------------------------------------
RAM HEAP SIZE:  261.79 KB
 FREE RAM:      232.57 KB
 MAX RAM alloc: 107.99 KB

ESP32 PSRAM: found.
* SPI RAM Chip availeable: 64MBits = 8MBytes
  total PSRAM:    4094 KB
  FREE PSRAM:     4093.89 KB
  MAX PSRAM alloc:4031.99 KB
  used PSRAM:     0 Bytes

* PSRAM free after malloc / ps_malloc : 2833.85 KB
* Can allocate big memory with ps_malloc()
* Can allocate big memory with malloc()

CPU #0 - last reset reason = 1  POWERON_RESET	 => Vbat power on reset
CPU #1 - last reset reason = 14 EXT_CPU_RESET	 => APP CPU reset by PRO CPU
====================================
````
blazoncek pushed a commit that referenced this issue Dec 14, 2022
arneboe pushed a commit to arneboe/WLED_ORIG that referenced this issue Aug 14, 2023
softhack007 added a commit that referenced this issue Sep 8, 2023
this is a band-aid fix for random crashes when switching between presets with multiple segments - crossfade disabled.

!! adding type initializers fixed it for me on -S3, however I still see (less frequent) crashes on esp32, due to heap corruption.

It took me hours to get a meaningful stackdump:

assert failed: heap_caps_free heap_caps.c:360 (heap != NULL && "free() target pointer is outside heap areas")

Backtrace: 0x40084ee1:0x3ffb2570 0x4008e341:0x3ffb2590 0x40094709:0x3ffb25b0 0x4008534a:0x3ffb26e0 0x40094739:0x3ffb2700 0x400e9037:0x3ffb2720 0x400e917c:0x3ffb2740 0x400eaeeb:0x3ffb2760 0x40117ec5:0x3ffb27c0 0x401184ea:0x3ffb2800 0x4013509d:0x3ffb2820

  #0  0x40084ee1:0x3ffb2570 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
  #1  0x4008e341:0x3ffb2590 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
  #2  0x40094709:0x3ffb25b0 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
  #3  0x4008534a:0x3ffb26e0 in heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:360
      (inlined by) heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:345
  #4  0x40094739:0x3ffb2700 in free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c:39
  #5  0x400e9037:0x3ffb2720 in Segment::deallocateData() at wled00/FX_fcn.cpp:189
  #6  0x400e917c:0x3ffb2740 in Segment::resetIfRequired() at wled00/FX_fcn.cpp:206
      (inlined by) Segment::resetIfRequired() at wled00/FX_fcn.cpp:203
  #7  0x400eaeeb:0x3ffb2760 in WS2812FX::service() at wled00/FX_fcn.cpp:1216 (discriminator 2)
  #8  0x40117ec5:0x3ffb27c0 in WLED::loop() at wled00/wled.cpp:115 (discriminator 3)
  #9  0x401184ea:0x3ffb2800 in loop() at C:/src/wled00/wled00.ino:20
  #10 0x4013509d:0x3ffb2820 in loopTask(void*) at C:/Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50

ELF file SHA256: 18c20b536f4c6ef4
blazoncek pushed a commit that referenced this issue Oct 22, 2023
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