-
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.
299: New-06-hello-world r=eldruin a=winksaville Converted lib.rs, Cargo.toml to use stm32f3_discovery. .cargo/config: I also, found that I would forget to to use `--target` when building and running using cargo so set the default build target to thumbv7em-none-eabihf openocd.cfg: Since the monitor lines are quite long and also easy to mistype or forget to do I enhanced the file with the new lines and commented on each of the lines. README.md Update to reflect the above changes. Co-authored-by: Wink Saville <wink@saville.com>
- Loading branch information
Showing
7 changed files
with
230 additions
and
97 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
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,11 @@ | ||
[package] | ||
authors = ["Jorge Aparicio <jorge@japaric.io>"] | ||
authors = [ | ||
"Jorge Aparicio <jorge@japaric.io>", | ||
"Wink Saville <wink@saville.com", | ||
] | ||
edition = "2018" | ||
name = "hello-world" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
|
||
[dependencies] | ||
aux6 = { path = "auxiliary" } |
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,11 +1,15 @@ | ||
[package] | ||
authors = ["Jorge Aparicio <jorge@japaric.io>"] | ||
authors = [ | ||
"Jorge Aparicio <jorge@japaric.io>", | ||
"Wink Saville <wink@saville.com", | ||
] | ||
edition = "2018" | ||
name = "aux6" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
|
||
[dependencies] | ||
cortex-m = "0.6.3" | ||
cortex-m-rt = "0.6.3" | ||
panic-itm = "0.4.0" | ||
f3 = "0.6.1" | ||
cortex-m = "0.6.4" | ||
cortex-m-rt = "0.6.13" | ||
stm32f3-discovery = "0.5.0" | ||
panic-halt = "0.2.0" | ||
panic-itm = "0.4.2" |
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,6 +1,26 @@ | ||
# Connect to gdb remote server | ||
target remote :3333 | ||
|
||
# Load will flash the code | ||
load | ||
|
||
# Eanble demangling asm names on disassembly | ||
set print asm-demangle on | ||
|
||
# Enable pretty printing | ||
set print pretty on | ||
load | ||
|
||
# Disable style sources as the default colors can be hard to read | ||
set style sources off | ||
|
||
# Have the tpiu send the data to a file tim.txt | ||
monitor tpiu config internal itm.txt uart off 8000000 | ||
|
||
# Turn on the itm port | ||
monitor itm port 0 on | ||
|
||
# Set a breakpoint at main | ||
break main | ||
|
||
# Continue running and we'll hit the main breakpoint | ||
continue |
Oops, something went wrong.