aboutsummaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-02-13 15:33:31 +0100
committerGitHub <[email protected]>2024-02-13 15:33:31 +0100
commitee4afa42808109efa45a472fd29e4c772550a0fd (patch)
tree933a40c638c2362eed6fdcdb5ab3fc7dbda2ca6e /docs/modules
parent8c82d1bcbcb8b04f18e9fd2a2d388a316bc50b49 (diff)
parent4a0b1cbadb252f186ef41c465936bb3ac4dfcf3f (diff)
Merge pull request #2567 from jr-oss/faq_linker_error
FAQ add hint to embassy-time linker error to include HAL in linking
Diffstat (limited to 'docs/modules')
-rw-r--r--docs/modules/ROOT/pages/faq.adoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/faq.adoc b/docs/modules/ROOT/pages/faq.adoc
index 7fb81e2ca..6b5e6d009 100644
--- a/docs/modules/ROOT/pages/faq.adoc
+++ b/docs/modules/ROOT/pages/faq.adoc
@@ -118,6 +118,13 @@ features = [
118] 118]
119---- 119----
120 120
121If 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----
125use embassy_stm32 as _;
126----
127
121== Error: `Only one package in the dependency graph may specify the same links value.` 128== Error: `Only one package in the dependency graph may specify the same links value.`
122 129
123You have multiple versions of the same crate in your dependency tree. This means that some of your 130You have multiple versions of the same crate in your dependency tree. This means that some of your