-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shareable instances of config.toml and openocd.gdb
Instead of every chapter having its own copy of the cargo configuration and openocd.gdb files this change creates a shared set. This will make it much easier for the user of the discovery book to handle the situation where their Arm gdb is NOT arm-none-eabi-gdb. As only the shared copy of .cargo/config.toml will have to be modified. Also src/05-led-roulette is updated to take advantage of this and I will go through each of the other chapters changing them to use the shared set. I also needed to comment out the rustflags variable in all of the config files as I'd get an error executing ci/script.sh: ry.x:5: region 'FLASH' already defined >>> FLASH : ORIGIN = 0x08000000, LENGTH = 256K >>>
- Loading branch information
1 parent
bb43664
commit 3f33f3c
Showing
14 changed files
with
199 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
[target.thumbv7em-none-eabihf] | ||
runner = "arm-none-eabi-gdb -q" | ||
# runner = "gdb-multiarch -q" | ||
# runner = "gdb -q" | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
] | ||
|
||
[build] | ||
target = "thumbv7em-none-eabihf" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[target.thumbv7em-none-eabihf] | ||
runner = "arm-none-eabi-gdb -q -x openocd.gdb" | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
] | ||
#rustflags = [ | ||
# "-C", "link-arg=-Tlink.x", | ||
#] | ||
|
||
[build] | ||
target = "thumbv7em-none-eabihf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[target.thumbv7em-none-eabihf] | ||
runner = "arm-none-eabi-gdb -q -x openocd.gdb" | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
] | ||
#rustflags = [ | ||
# "-C", "link-arg=-Tlink.x", | ||
#] | ||
|
||
[build] | ||
target = "thumbv7em-none-eabihf" | ||
target = "thumbv7em-none-eabihf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[target.thumbv7em-none-eabihf] | ||
runner = "arm-none-eabi-gdb -q -x openocd.gdb" | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
] | ||
#rustflags = [ | ||
# "-C", "link-arg=-Tlink.x", | ||
#] | ||
|
||
[build] | ||
target = "thumbv7em-none-eabihf" | ||
target = "thumbv7em-none-eabihf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[target.thumbv7em-none-eabihf] | ||
runner = "arm-none-eabi-gdb -q -x openocd.gdb" | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", | ||
] | ||
#rustflags = [ | ||
# "-C", "link-arg=-Tlink.x", | ||
#] | ||
|
||
[build] | ||
target = "thumbv7em-none-eabihf" | ||
target = "thumbv7em-none-eabihf" |
Oops, something went wrong.