Skip to content

Commit 09c6034

Browse files
authored
Merge pull request #58 from ajamtli/embedded-setup-troubleshooting
Add paragraph to general troubleshooting guide
2 parents 386a174 + 16a6cf9 commit 09c6034

File tree

1 file changed

+26
-0
lines changed
  • mdbook/src/appendix/1-general-troubleshooting

1 file changed

+26
-0
lines changed

mdbook/src/appendix/1-general-troubleshooting/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)