Comments (6)
Or am I confusing the definition of "exceptions" and "panics"? Is this instead related to #105?
from rtic.
Indeed, you are confusing exceptions and panics.
Exceptions are the exception interrupts in the Cortex-M core, and has nothing to do with panics. :)
The issue with exceptions and v6 is that source masking does not work atomically there, so the locking has a race-condition if we were to allow it.
Hence the error you are getting. :)
from rtic.
Thanks for getting back to me :)
- I know the lock used to set PRIMASK when using Armv6-M which is atomic; does it now mask individual interrupts using NVIC_ISER and NVIC_ICER?
- If the lock were to mask individual interrupts, I'm not following how the non-atomic read, modify, write of NVIC_ISER and NVIC_ICER would cause a data race, since preempting exceptions which modify the NVIC interrupt enable state should return the state when leaving its context.
from rtic.
Binding tasks to core exceptions, SysTick, HardFault, SVPend, SVCall, etc result in this error. Core exceptions are not maskable by the NVIC (which handles locking in Armv6m) so sharing data between an exception handler and another task causes the data race. Maybe this error message could be improved to specify something like "core exceptions" to point toward those exceptions which are handled directly by the CPU core, rather than the NVIC.
from rtic.
Once the under the hood docs are done, we could consider pointing the reader to the docs for an in depth explanation.
from rtic.
We close this for now awaiting documentation.
from rtic.
Related Issues (20)
- Task reschedule, How to do? HOT 4
- Maximum Task Priority HOT 5
- Allow variables in Task names
- How to take ownership of a local resource from hardware task HOT 7
- rp2040 SPI0_IRQ appears to not be asserting HOT 3
- Enable Sponsors HOT 1
- [Book] Improve channel docs for hardware tasks
- Support for AVR boards such as the atmega32u4? HOT 5
- Spi working in the init function but not within a software defined task HOT 7
- how to access peripherals in pre_init? HOT 3
- Ownership difference between tuple locking and nested locking HOT 2
- Whacky behavior with `rtic_monotonics::rp2040::Timer` HOT 5
- Adding a dispatcher argument to app causes build error HOT 2
- `LinkedList` is duplicated HOT 3
- spawn_{at,after} keeps block until time has reached HOT 5
- `Scheduler<M: Monotonic>` trait HOT 1
- (partially) removing core peripherals from RTIC context HOT 4
- Removing `nop` from `rtic::export` HOT 1
- Monotonic trait confusion HOT 3
- Build Error with STM32L0 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 rtic.