Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e7020e_2020
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
Anton Grahn
e7020e_2020
Commits
7b2a0421
Commit
7b2a0421
authored
5 years ago
by
Anton Grahn
Browse files
Options
Downloads
Patches
Plain Diff
bare1_2
parent
66a252b9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/launch.json
+9
-9
9 additions, 9 deletions
.vscode/launch.json
examples/bare1.rs
+8
-2
8 additions, 2 deletions
examples/bare1.rs
with
17 additions
and
11 deletions
.vscode/launch.json
+
9
−
9
View file @
7b2a0421
...
...
@@ -18,7 +18,7 @@
"configFiles"
:
[
//
"interface/stlink.cfg"
,
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor arm semihosting enable"
...
...
@@ -41,7 +41,7 @@
"configFiles"
:
[
//
"interface/stlink.cfg"
,
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor arm semihosting enable"
,
...
...
@@ -76,8 +76,8 @@
"executable"
:
"./target/thumbv7em-none-eabihf/debug/examples/${fileBasenameNoExtension}"
,
"configFiles"
:
[
"interface/stlink.cfg"
,
//
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor arm semihosting enable"
,
...
...
@@ -101,8 +101,8 @@
"executable"
:
"./target/thumbv7em-none-eabihf/debug/examples/${fileBasenameNoExtension}"
,
"configFiles"
:
[
"interface/stlink.cfg"
,
//
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor arm semihosting enable"
,
...
...
@@ -127,7 +127,7 @@
"configFiles"
:
[
//
"interface/stlink.cfg"
,
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor arm semihosting enable"
,
...
...
@@ -152,7 +152,7 @@
"configFiles"
:
[
//
"interface/stlink.cfg"
,
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor arm semihosting enable"
,
...
...
@@ -177,7 +177,7 @@
"configFiles"
:
[
//
"interface/stlink.cfg"
,
"interface/stlink-v2-1.cfg"
,
//
deprecated
setup
script
"target/stm32f4x.cfg"
//
"target/stm32f4x.cfg"
],
"postLaunchCommands"
:
[
"monitor reset init"
,
//
sets
the
MCU
to
64
MHz
...
...
This diff is collapsed.
Click to expand it.
examples/bare1.rs
+
8
−
2
View file @
7b2a0421
...
...
@@ -59,7 +59,7 @@ fn main() -> ! {
// (passing 3 breakpoints)
//
// ** your answer here **
// The program panics
"panicked at 'attempt to add with overflow', examples/bare1.rs:23:9 "
// The program panics
c
// What is the `ITM` output.
//
...
...
@@ -75,9 +75,15 @@ fn main() -> ! {
//
// What is the output of:
// > disassemble
//
// ** your answer here **
//
// Dump of assembler code for function main:
// 0x08000400 <+0>: push {r7, lr}
// 0x08000402 <+2>: mov r7, sp
// => 0x08000404 <+4>: bl 0x800040a <bare1::__cortex_m_rt_main>
// 0x08000408 <+8>: udf #254 ; 0xfe
// End of assembler dump.
//
// How many instructions are in between the two `bkpt` instructions in the loop.
// Notice, the generated code may not be exactly what you expect :)
//
...
...
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