Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtic_f4xx_nucleo
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Edvin Åkerfeldt
rtic_f4xx_nucleo
Commits
ea2982f9
Commit
ea2982f9
authored
4 years ago
by
Edvin Åkerfeldt
Browse files
Options
Downloads
Patches
Plain Diff
D complete
parent
c142aef8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.rs
+28
-2
28 additions, 2 deletions
src/main.rs
with
28 additions
and
2 deletions
src/main.rs
+
28
−
2
View file @
ea2982f9
...
...
@@ -5,8 +5,8 @@
#![no_main]
#![no_std]
//
use panic_halt as _;
use
panic_rtt_target
as
_
;
use
panic_halt
as
_
;
//
use panic_rtt_target as _;
use
rtt_target
::{
rprintln
,
rtt_init_print
};
use
stm32f4
;
...
...
@@ -89,12 +89,38 @@ panicked at 'panic', src/main.rs:24:9
// What is the output?
//
// [Your answer here]
/*
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `probe-run --chip STM32F411RETx target/thumbv7em-none-eabi/debug/app`
(HOST) INFO flashing program (10.54 KiB)
(HOST) INFO success!
────────────────────────────────────────────────────────────────────────────────
init
idle
*/
//
// Now press Ctrl-C
//
// What is the output?
//
// [Your answer here]
/*
^Cstack backtrace:
0: core::sync::atomic::compiler_fence
at /home/ironedde/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:2640
1: rust_begin_unwind
at /home/ironedde/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-halt-0.2.0/src/lib.rs:33
2: core::panicking::panic_fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
3: core::panicking::panic
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:50
4: app::idle
at src/main.rs:24
5: main
at src/main.rs:13
6: Reset
at /home/ironedde/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.6.13/src/lib.rs:526
*/
//
// E) Find the source
// Figure out how to find the source of `panic_halt`, and look at the implementation.
...
...
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