Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
probe_app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
probe_app
Commits
13a848ce
Commit
13a848ce
authored
5 years ago
by
Per Lindgren
Browse files
Options
Downloads
Patches
Plain Diff
bluepill works
parent
54f68823
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.cargo/config
+2
-2
2 additions, 2 deletions
.cargo/config
README.md
+8
-0
8 additions, 0 deletions
README.md
memory.x
+2
-2
2 additions, 2 deletions
memory.x
with
12 additions
and
4 deletions
.cargo/config
+
2
−
2
View file @
13a848ce
...
@@ -28,6 +28,6 @@ rustflags = [
...
@@ -28,6 +28,6 @@ rustflags = [
[build]
[build]
# Pick ONE of these compilation targets
# Pick ONE of these compilation targets
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
#
target = "thumbv7m-none-eabi" # Cortex-M3
target = "thumbv7m-none-eabi" # Cortex-M3
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
#
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
This diff is collapsed.
Click to expand it.
README.md
+
8
−
0
View file @
13a848ce
...
@@ -102,6 +102,12 @@ MEMORY
...
@@ -102,6 +102,12 @@ MEMORY
$
cargo build
$
cargo build
```
```
## probe.rs, cargo-flash and friends
```
console
$
cargo flash
--example
hello
--release
--chip
STM32F103C8
--log
debug
```
## VS Code
## VS Code
This template includes launch configurations for debugging CortexM programs with Visual Studio Code located in the
`.vscode/`
directory.
This template includes launch configurations for debugging CortexM programs with Visual Studio Code located in the
`.vscode/`
directory.
...
@@ -133,3 +139,5 @@ to intervene to uphold that code of conduct.
...
@@ -133,3 +139,5 @@ to intervene to uphold that code of conduct.
[
CoC
]:
https://www.rust-lang.org/policies/code-of-conduct
[
CoC
]:
https://www.rust-lang.org/policies/code-of-conduct
[
team
]:
https://github.com/rust-embedded/wg#the-cortex-m-team
[
team
]:
https://github.com/rust-embedded/wg#the-cortex-m-team
This diff is collapsed.
Click to expand it.
memory.x
+
2
−
2
View file @
13a848ce
...
@@ -3,8 +3,8 @@ MEMORY
...
@@ -3,8 +3,8 @@ MEMORY
/* NOTE 1 K = 1 KiBi = 1024 bytes */
/* NOTE 1 K = 1 KiBi = 1024 bytes */
/* TODO Adjust these memory regions to match your device memory layout */
/* TODO Adjust these memory regions to match your device memory layout */
/* These values correspond to the LM3S6965, one of the few devices QEMU can emulate */
/* These values correspond to the LM3S6965, one of the few devices QEMU can emulate */
FLASH : ORIGIN = 0x0
0
000000, LENGTH = 2
56
K
FLASH : ORIGIN = 0x0
8
000000, LENGTH =
3
2K
RAM : ORIGIN = 0x20000000, LENGTH = 6
4
K
RAM : ORIGIN = 0x20000000, LENGTH =
1
6K
}
}
/* This is where the call stack will be allocated. */
/* This is where the call stack will be allocated. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment