Comments (4)
Update: It doesn't happen in development mode and also doesn't happen with an opt-level
<= 1 (also not with "s" or "z")
from esp-wifi.
Not sure if this is still an issue for you, but to me it sounds like this could be a timing thing.
having info!
there causes several bytes to be written to the uart peripheral in a blocking manner. at 115200 baud a string consisting of 12 chars would take ~1ms. If you consider the string "Check service"
plus additional characters added such as log level, timestamp, tag, etc. you could easily see a 3ms delay there.
Changing the optimization level could have effects on execution timing and ordering as well.
What happens if you manually insert a delay there?
Mind you, a delay may not be the ideal fix for this, but it would provide a clue as to what may be happening.
Edit: I read your original post more carefully and if adding a single nop there has such a dramatic effect I'm not sure this experiment is even worth it. To me it sounds like a potential optimization problem?
from esp-wifi.
Hello and thanks for thinking about this odd issue!
My guess currently is also a mis-optimization / mis-compilation unfortunately. I tried to reproduce this in a much smaller example without success so far since tracking down what happens at assembly level in such a big code base is really hard.
from esp-wifi.
A lot changed in-between so the original issue isn't reproducible but also the Xtensa toolchain got much, much better. Closing this for now - will create a new issue if anything like that comes up again
from esp-wifi.
Related Issues (20)
- Driver Update HOT 1
- BLE example is not work for esp32s3 HOT 13
- [ESP32] esp-wifi crash if used with embassy and any task on the second core HOT 10
- Start a CHANGELOG.md
- ESP8266 WIFI attempts HOT 2
- esp-wifi should be useable without depending on embedded-svc HOT 1
- esp-wifi 0.3.0 does not compile for ESP32-C3, it depends on portable-atomic, and that doesnt build for RiscV HOT 5
- How to depend on esp-wifi in an external example HOT 3
- example/embassy_ble does not compile HOT 2
- esp-wifi lockup on esp32c3 when using the embassy InterruptExecutor HOT 3
- [ESP32] esp-wifi crashes when trying to connect via BLE HOT 6
- NVS initialization error HOT 1
- compile error HOT 2
- W (42148) wifi:m f null Getting This warning and then wifi is never reconnected in the execution HOT 1
- Critical section feature conflict between esp-wifi and esp-idf-hal HOT 3
- #[interrupt] macro has been removed from esp-hal-procmacros HOT 6
- docs.rs failed to build HOT 3
- HTTPS support HOT 2
- [RISCV] Stable esp-wifi HOT 2
- Access point example with password can't connect (ESP32S3) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-wifi.