Skip to content

print warning if building embassy-stm32 for bare-metal arm but withou…#6533

Merged
xoviat merged 1 commit into
embassy-rs:mainfrom
datdenkikniet:warn-on-rt
Jul 16, 2026
Merged

print warning if building embassy-stm32 for bare-metal arm but withou…#6533
xoviat merged 1 commit into
embassy-rs:mainfrom
datdenkikniet:warn-on-rt

Conversation

@datdenkikniet

@datdenkikniet datdenkikniet commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

…t rt

Not activating the rt feature will cause all interrupt handlers to be omitted, making anything that relies on interrupts hang/fail/do nothing.

I only applied this to embassy-stm32 for now, because I'm not sure if this holds for other HAL crates too.

Additionally, I'm not sure whether this should be a warning or just an error: are there use-cases where one wants to do this?

One solution/helpful hand towards resolving #6526

…t rt

Not activating the `rt` feature will cause all interrupt handlers to be
omitted, making anything that relies on interrupts hang/fail/do nothing.
@xoviat
xoviat added this pull request to the merge queue Jul 16, 2026
Merged via the queue into embassy-rs:main with commit 44d0ebe Jul 16, 2026
8 checks passed
@datdenkikniet

Copy link
Copy Markdown
Contributor Author

Thank you for the quick merge.

Sadly I discovered that this isn't as useful as I thought it would be: seems like the warnings are only printed in fairly specific circumstances: ref, so users of embassy outside of the repo won't actually see the warning... I will try to find a better way

@datdenkikniet
datdenkikniet deleted the warn-on-rt branch July 17, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants