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 when compiling with ESP32-C3 #663

Closed
ss89 opened this issue Mar 6, 2023 · 4 comments
Closed

Error when compiling with ESP32-C3 #663

ss89 opened this issue Mar 6, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ss89
Copy link

ss89 commented Mar 6, 2023

What happened?

I tried to compile OpenDTU for ESP32-C3

To Reproduce Bug

Add a configuration to platformio.ini like:

[env:seeed_xiao_esp32c3]
; https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started
board = seeed_xiao_esp32c3
build_flags = ${env.build_flags}
    -DHOYMILES_PIN_MISO=9
    -DHOYMILES_PIN_MOSI=10
    -DHOYMILES_PIN_SCLK=8
    -DHOYMILES_PIN_IRQ=3
    -DHOYMILES_PIN_CE=4
    -DHOYMILES_PIN_CS=5

Expected Behavior

Compile should succeed

Install Method

Self-Compiled

What git-hash/version of OpenDTU?

b42fff8

Relevant log/trace output

.pio/libdeps/esp32-c3-devkitm-1/ESP Async WebServer/src/AsyncWebSocket.cpp: In member function 'IPAddress AsyncWebSocketClient::remoteIP() const':
.pio/libdeps/esp32-c3-devkitm-1/ESP Async WebServer/src/AsyncWebSocket.cpp:740:28: error: call of overloaded 'IPAddress(unsigned int)' is ambiguous
         return IPAddress(0U);
                            ^
In file included from /Users/sebastian/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:170,
                 from .pio/libdeps/esp32-c3-devkitm-1/ESP Async WebServer/src/AsyncWebSocket.cpp:21:
/Users/sebastian/.platformio/packages/framework-arduinoespressif32/cores/esp32/IPAddress.h:51:5: note: candidate: 'IPAddress::IPAddress(const uint8_t*)'
     IPAddress(const uint8_t *address);
     ^~~~~~~~~
/Users/sebastian/.platformio/packages/framework-arduinoespressif32/cores/esp32/IPAddress.h:50:5: note: candidate: 'IPAddress::IPAddress(uint32_t)'
     IPAddress(uint32_t address);
     ^~~~~~~~~
/Users/sebastian/.platformio/packages/framework-arduinoespressif32/cores/esp32/IPAddress.h:29:7: note: candidate: 'constexpr IPAddress::IPAddress(const IPAddress&)'
 class IPAddress: public Printable
       ^~~~~~~~~


### Anything else?

Project owner already knows this issue and it is related to a dependency of this project, See: https://github.com/yubox-node-org/ESPAsyncWebServer/issues/9

This issue is purely for awareness of people interested in this project and wanting to use the C3 as well as documenting when it's build process is fixed.
@ss89 ss89 added the bug Something isn't working label Mar 6, 2023
@ss89
Copy link
Author

ss89 commented Mar 6, 2023

@tbnobody Seeing that the issue on the dependency side was not getting any responses from the repo owner and the last commit being from almost 1 year ago: Would it make sense to fork the repo and apply the needed fixes?
Or would it make sense to try out other forks?
I am not into ESP32 yet at all and am just starting to tinker a tiny bit, so i have no experience with the common used libraries and their pitfalls.
I do however know from the arduino libraries that things can regularly break and see if you'd rather not want to switch the dependency origin.

@ss89
Copy link
Author

ss89 commented Apr 9, 2023

I do see issues when not having the esp32-c3 connected to my laptop but instead using a usb power supply. It seems that the firmware(?) requires the log messages to be read. At least the firmware does only seem to "start" when i use the monitor command of platformio in vscode. Is there a way around?

EDIT: I found this: espressif/arduino-esp32#7583 However since i'm using Framework version 2.0.7, that should be fixed for me already and still my C3 is only working when i attach to the serial via vscode monitor.

EDIT 2: It seems i'll be stalled until 3.0.0 comes out, see: espressif/arduino-esp32#7721

EDIT 3: I tried this, but it didn't work out for me: espressif/arduino-esp32#7554 (comment)

@tbnobody
Copy link
Owner

tbnobody commented May 3, 2023

Just add the following to your profile:
custom_patches = esp32c3

This applies all patches in the patches/esp32c3 directory to the libraries and fixes this issue.

@tbnobody tbnobody closed this as completed May 3, 2023
Copy link

github-actions bot commented Apr 5, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants