-
Notifications
You must be signed in to change notification settings - Fork 13
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
Examples broken at runtime. #23
Comments
I cannot reproduce that exception on my side on ESP32-S3 I do see some TLS errors sometimes - but sometimes it just works |
I'm on toolchain Here's the steps to reproduce on my side. It's weird because it used to work at some point.
git clone https://github.com/esp-rs/esp-mbedtls
SSID=<SSID> PASSWORD=<SSID> cargo +esp run --example sync_server --target xtensa-esp32s3-none-elf -F esp32s3,esp-wifi/wifi-logs
|
Mhhh seems like in our 1.74 build the c-variadics are broken, again. e.g. for the first string it tries to get it e.g. reads the address Works fine with 1.73.0.1 cc @MabezDev |
I'm so sorry that's completely my bad. I forgot to add the commit to 1.74, because I was looking at the patch set from 1.73.0.0, instead of 1.73.0.1 🤦. I'll fix that and get a release out soon. |
Alright, I'm using Examples run without any issue on the Now, I'm only facing runtime issues during a connection. When I run the SSID=<SSID> PASSWORD=<PASS> cargo +esp run --release --example sync_server --target xtensa-esp32s3-none-elf -F esp32s3 I get the following error during a connection: INFO - esp-wifi configuration Config { rx_queue_size: 10, tx_queue_size: 10, static_rx_buf_num: 10, dynamic_rx_buf_num: 32, static_tx_buf_num: 0, dynamic_tx_buf_num: 32, ampdu_rx_enable: 0, ampdu_tx_enable: 0, amsdu_tx_enable: 0, rx_ba_win: 6, max_burst_size: 1, country_code: "CN", country_code_operating_class: 0, mtu: 1492, heap_size: 112640, tick_rate_hz: 100, listen_interval: 3, beacon_timeout: 6, ap_beacon_timeout: 300, failure_retry_cnt: 1, scan_method: 0 }
Call wifi_connect
Wait to get connected
Wait to get an ip address
Got ip Ok(IpInfo { ip: 192.168.69.165, subnet: Subnet { gateway: 192.168.69.1, mask: Mask(24) }, dns: Some(192.168.69.16), secondary_dns: None })
We are connected!
Point your browser to https://192.168.69.165/
New connection
!! A panic occured in 'examples/sync_server.rs', at line 198, column 21
PanicInfo {
payload: Any { .. },
message: Some(
MbedTlsError(-17280),
),
location: Location {
file: "examples/sync_server.rs",
line: 198,
col: 21,
},
can_unwind: true,
} The error code is for |
I can reproduce it. I also tried different versions of the toolchain and very few different (recent) commits of esp-mbedtls Oh wait ... seems like Aaaaand I can also get the current main to work when copying the pre-compiled libs from If it's reproducible on your side then there is something wrong with how mbedtls is built for Xtensa while it's fine for RISC-V |
I've tested with the pre-compiled libraries from before we refactored the build scripts to use xtasks and it works. The issue effectively seems to be from the way we build mbedtls for Xtensa, introduced in #15 |
I'm going to close this because it has been fixed in #24 after recompiling using clang |
I've tried to run the following examples after a clean git clone and they all fail due to various issues:
EDIT: After further testing, the problem seems to occur on Xtensa targets. It had issues on
esp32s3
but withesp32c3
everything is running without any failure.Here's the output from running async_client:
The text was updated successfully, but these errors were encountered: