Merge pull request #2567 from jr-oss/faq_linker_error

FAQ add hint to embassy-time linker error to include HAL in linking
This commit is contained in:
Dario Nieuwenhuis 2024-02-13 15:33:31 +01:00 committed by GitHub
commit ee4afa4280
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,6 +118,13 @@ features = [
] ]
---- ----
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:
[source,rust]
----
use embassy_stm32 as _;
----
== Error: `Only one package in the dependency graph may specify the same links value.` == Error: `Only one package in the dependency graph may specify the same links value.`
You have multiple versions of the same crate in your dependency tree. This means that some of your You have multiple versions of the same crate in your dependency tree. This means that some of your