File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
mdbook/src/appendix/1-general-troubleshooting Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,29 @@ Install the proper target.
5252``` console
5353$ rustup target add thumbv7em-none-eabihf
5454```
55+
56+ ### Unable to flash the device: ` No loadable segments were found in the ELF file `
57+
58+ * Symptoms:*
59+ ``` console
60+ > cargo embed
61+ Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s
62+ Config default
63+ Target /home/user/embedded/target/thumbv7em-none-eabihf/debug/examples/init
64+ WARN probe_rs::flashing::loader: No loadable segments were found in the ELF file.
65+ Error No loadable segments were found in the ELF file.
66+ ```
67+
68+ * Cause:*
69+
70+ Cargo needs to know how to build and link the program to the requirements of the target device.
71+ You therefore need to set the correct parameters in the ` .cargo/config.toml ` file.
72+
73+ * Fix:*
74+
75+ Add a ` .cargo/config.toml ` file with the correct parameters:
76+ ``` toml
77+ {{#include ../../05-meet-your-software/.cargo/config.toml}}
78+ ```
79+
80+ See [ Embedded Setup] ( ../../05-meet-your-software/embedded-setup.md ) for further details.
You can’t perform that action at this time.
0 commit comments