Comments (3)
It does not work because - apparently - the ESP IDF UART driver does not send any notification on UART FIFO queue being empty / being consumed: espressif/arduino-esp32#6385
Options to fix this:
- Patch the ESP IDF with a new UART event type and possibly upstream this patch in future
- Offload the async "send" work to another hidden thread that does the sending stuff in a blocking way and notifies when done. Ugly
from esp-idf-hal.
@t-moe I've in the meantime come with a simple solution which uses the esp_idf_hal::task::yield_now
primitive.
While not efficient in terms of CPU utilization, it should work.
Maybe you can try it out.
from esp-idf-hal.
Hei @ivmarkov ,
thanks for working on this and yes, I'll take a look and report back. (It might take a while though....)
from esp-idf-hal.
Related Issues (20)
- Spi has some problems. or clk needs to pull up resistors、or other...(esp32c2 rust-std) HOT 3
- spi async need some config in the Cargo.toml and sdkconfig.defaults?
- Example uart_loopback does not compile. TX buffer managment in Uart is broken sending garbage characters. HOT 1
- Pin Direction Change compiles but does not seem to be working and produces weird Info Log messages that I can not supress: HOT 6
- I2C timeout calculated wrong for MCU !esp32 HOT 3
- AsyncCanDriver is not Sync HOT 7
- ESP32C6 analog read working wonky HOT 4
- Potential wrong core type conversion in cpu.rs
- [Discussed] SPI DMA,can it be used now? HOT 1
- UART read line example HOT 1
- esp32 - Spi Drivers freeze app and triggers TG1WDT_SYS_RESET HOT 3
- LEDC on ESP32: `SpeedMode` is currently a config, but it should actually be modelled as a peripheral HOT 2
- esp32c2 doesn't define XTAL_CFK_FREQ in esp-idf HOT 1
- esp32c2 generated bindgen doesn't include APB_CLK_FREQ correctly
- Uart rx buffer length error HOT 8
- Zigbee Support HOT 4
- rmt_neopixel.rs example doesn't work on ESP32-C3-DevKitC-02 when used in esp32-idf-template HOT 1
- When `feature = "std"` is enabled, implement std::io::Read and/or std::io::Write for all drivers where this makes sense HOT 2
- Add an option to set SPI clock pin to None HOT 2
- request for advice on "dynamic" device handling
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-idf-hal.