Skip to content

Commit ee4afa4

Browse files
authored
Merge pull request embassy-rs#2567 from jr-oss/faq_linker_error
FAQ add hint to embassy-time linker error to include HAL in linking
2 parents 8c82d1b + 4a0b1cb commit ee4afa4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/modules/ROOT/pages/faq.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ features = [
118118
]
119119
----
120120

121+
If you are in the early project setup phase and not using anything from the HAL, make sure the HAL is explicitly used to prevent the linker removing it as dead code by adding this line to your source:
122+
123+
[source,rust]
124+
----
125+
use embassy_stm32 as _;
126+
----
127+
121128
== Error: `Only one package in the dependency graph may specify the same links value.`
122129

123130
You have multiple versions of the same crate in your dependency tree. This means that some of your

0 commit comments

Comments
 (0)