Comments (4)
try setting up probe-rs as a debugger: https://probe.rs/docs/tools/debugger/
then call break when the program hangs. You will probably find you end up in the fault handler with a bus error. To solve it try saving space somewhere. On nightly the arena is sized automatically to just the right size saving a bit of memory. Try lowering the amount of ram you use (shrink arrays and objects if you can).
from embassy.
Yep, I'll try and have a look at the actual fault.
The arena fits in available RAM (otherwise it wouldn't link), and the tasks fit in the arena (otherwise it would panic), so I don't think it's an issue of sizes - something else is going wrong.
from embassy.
You have to leave enough RAM for the stack. The stack starts from end of RAM and grows downwards. If it grows too much, it will crash into static data, causing UB. This is not checked at link time because the linker doesn't know how much stack your program uses.
from embassy.
Sorry for the noise, looks like it was just stack size. I was assuming the array in the example was part of task memory, but passing it to black_box()
(by value not reference) instead results in another stack copy.
from embassy.
Related Issues (20)
- Weird issue with `Timer::after_secs(99999999999999999).await;` HOT 5
- STM32H7 recover from SAI `OverrunError` HOT 2
- gpiote_port example fails HOT 2
- Not able to get ip address with esp32-s3 and embassy-net-wiznet HOT 1
- [stm32] ADC (v1) channel selection wrong HOT 1
- Cellular/4G network? HOT 2
- STM32G0: USB Clock select enum USBSEL is wrong HOT 2
- Embassy depends on fixed which requires rust 1.79 which is newer than 1.75 set in rust-toolchain.toml HOT 1
- RISC-V Support
- rp: wifi_tcp_server: fails with `dns` feature of `embassy-net` HOT 2
- rp: wifi_tcp_server: fails after the recent `bluetooth` feature for `cyw43` HOT 5
- RP235x support HOT 10
- stm32f750v8 led blink gives FLAH Overfow error HOT 2
- Question - STM32G4 Dual bank vs embassy-boot HOT 2
- TM1637 display protocol - desired for Embassy HOT 2
- Different RecvError::Finished behavior for embassy-net tcp recv() vs recv_with()
- [embassy-rp] I2C transaction sends SR between operations of equal type HOT 1
- STM32 Dual Core Init - Private Peripheral Bus considerations
- examples/rp fails to build; missing in ci-nightly script. HOT 3
- get_level followed by wait_for_falling_edge returns high HOT 4
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 embassy.