Comments (4)
Likely related to this issue: esp-rs/rust#96
from esp-idf-sys.
Yeah, it seems like this is the same bug. Closing it here in favor of the already existing bug report.
from esp-idf-sys.
@derchr String::with_capacity
only allocates memory, but does not set buffer length, i.e. you can't get a &mut [u8]
for the allocated memory. Does your example work if you use vec![0; some_size]
instead? In my case, I'm able to read into 0 filled vectors.
from esp-idf-sys.
@derchr
String::with_capacity
only allocates memory, but does not set buffer length, i.e. you can't get a&mut [u8]
for the allocated memory. Does your example work if you usevec![0; some_size]
instead? In my case, I'm able to read into 0 filled vectors.
I remember also testing Vec::with_capacity
and this did not work. Pre-filling the Vec and writing to it using &mut [u8]
might actually work as it's similar to the fixed-array method that did work for me.
from esp-idf-sys.
Related Issues (20)
- [QUESTION] Safe wrapper for IDF component HOT 2
- Suspected miscompilation (as observed in a BLE Mesh function) HOT 1
- xtensa-esp-elf: how to influence endianness ? HOT 10
- Failing to add mdns remote component HOT 4
- How to allocate a vector or array in PSRAM HOT 4
- backtrace (of rust code) is incomplete on esp32c6 HOT 17
- Integration with `bevy_ecs` - linker failure `pthread_setcancelstate is not implemented` HOT 5
- Do Rust Native Queues and Mutexes Properly Suspend Tasks HOT 3
- Misaligned struct pointer from esp camera HOT 22
- could not identify the root crate and `ESP_IDF_SYS_ROOT_CRATE` not specified HOT 2
- Time for `espidf_time32`? HOT 4
- Trying to set CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=1 not working HOT 2
- esp-idf-sys HOT 1
- esp-idf-sys build started fail on arm mac os HOT 20
- Unable to build on Mac M1 HOT 1
- ...no 'IDF_PYTHON_ENV_PATH' item,Debian 12, std mode, esp-idf-template, idf master HOT 4
- Windows path length message is wrong. HOT 1
- tskNO_AFFINITY missing with esp-idf v5.2.1 HOT 1
- Using custom components introduces a requirement of specifying all components HOT 7
- failed to run custom build command for `esp-idf-sys v0.34.1` HOT 1
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-sys.