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 while compiling after updating to platform-espressif32 V4.1.0 #16

Closed
Thermelgy-Repo opened this issue Apr 22, 2022 · 3 comments

Comments

@Thermelgy-Repo
Copy link

Thermelgy-Repo commented Apr 22, 2022

Dear @cpq @novlean & team,

Thank you for your great library. I actually updated the platform-espressif32 from V3.5.0 to V4.1.0. After updating it, I am getting error while building. It was compiling perfectly on 3.4 version. Kindly help me to solve it.
I also opened an issue on :
platformio/platform-espressif32#769 . They guide me to ask your support.

platformio/platform-espressif32#769 (comment)

Error Details :

`c:/users/asish johney george/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/libdeps/esp32dev/mDash/src/esp32\libmDash.a:(.literal+0x534): undefined reference to `lwip_recvfrom_r'
c:/users/asish johney george/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/libdeps/esp32dev/mDash/src/esp32\libmDash.a:(.literal+0x548): undefined reference to `lwip_sendto_r'
c:/users/asish johney george/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/libdeps/esp32dev/mDash/src/esp32\libmDash.a: in function `mlog':
/Users/lsm/src/cesanta.com/alib/log.c:28: undefined reference to `lwip_recvfrom_r'
c:/users/asish johney george/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/libdeps/esp32dev/mDash/src/esp32\libmDash.a: in function `ll_read':
/Users/lsm/src/cesanta.com/alib/src/sock.c:102: undefined reference to `lwip_sendto_r'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32dev\firmware.elf] Error 1`

Platformio.ini File:
`


[platformio]
default_envs = 

[env:esp32dev]
platform = espressif32
;platform = https://github.com/platformio/platform-espressif32.git#v3.5.0
board = esp32dev
framework = arduino
platform_packages = 
 	framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
;	framework-arduinoespressif32@~2.0.2
;	toolchain-xtensa32@~2.80400.0
;	framework-arduinoespressif32@~2.0.2

;	framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.2
board_build.partitions = F:\Aspiration Energy\Heat Pump Monitoring\Hardware Development\Thermelgy tMY Future\Firmware\Development\Thermelgy Gen2 Gateway\Partition\Thermelgy_Custom_16MB.csv
lib_extra_dirs = C:\Users\Asish Johney George\Documents\Arduino\libraries
monitor_speed = 115200
build_flags = 
	-L.pio/libdeps/esp32dev/mDash/src/esp32/ -llibmDash
	-DLOG_LEVEL=LOG_LEVEL_NONE
lib_deps = 
	cesanta/mDash@^1.2.14
	eModbus@^1.3
	esphome/AsyncTCP-esphome@^1.2.2
	knolleary/PubSubClient@^2.8

[env:env1]
lib_deps = 
	eModbus@^1.3
	esphome/AsyncTCP-esphome@^1.2.2
	knolleary/PubSubClient@^2.8

`
Build Details:

Building...
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (4.1.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 2.0.3+sha.b3c203d (git+https://github.com/espressif/arduino-esp32.git)
 - tool-esptoolpy @ 1.30100.210531 (3.1.0)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 107 compatible libraries
Scanning dependencies...
@jbrzusto
Copy link

jbrzusto commented Jun 28, 2022

This issue was previously reported in 2019 as #6 and closed because mDash was tracking the (then) current Arduino version.
In 2022, the current Arduino version (1.8.19) loads version 4.4 of the esp32-idf, and so mDash no longer builds, as reported above. For those of us new to mDash, it would be very helpful to have either esp32-idf v4.4 support, or specific instructions on how to configure an earlier version of Arduino + esp32-core so that mDash will build. I have struggled with this for several hours and failed.

@cpq
Copy link
Member

cpq commented Jul 2, 2022

Please try the latest version - tested and works with Arduino 1.8.19

@cpq cpq closed this as completed Jul 2, 2022
@jbrzusto
Copy link

jbrzusto commented Jul 5, 2022

Thanks - that works now!

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

3 participants