Skip to content
Snippets Groups Projects
Commit 744b7771 authored by Hammarkvast's avatar Hammarkvast
Browse files

bare1_3

parent d2eed697
No related branches found
No related tags found
No related merge requests found
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
"preLaunchTask": "cargo build --examples --release", "preLaunchTask": "cargo build --examples --release",
"executable": "./target/thumbv7em-none-eabihf/release/examples/${fileBasenameNoExtension}", "executable": "./target/thumbv7em-none-eabihf/release/examples/${fileBasenameNoExtension}",
"configFiles": [ "configFiles": [
"interface/stlink.cfg", //"interface/stlink.cfg",
// "interface/stlink-v2-1.cfg", // deprecated setup script "interface/stlink-v2-1.cfg", // deprecated setup script
"target/stm32f4x.cfg" "target/stm32f4x.cfg"
], ],
"postLaunchCommands": [ "postLaunchCommands": [
......
...@@ -116,15 +116,27 @@ fn main() -> ! { ...@@ -116,15 +116,27 @@ fn main() -> ! {
// > disassemble // > disassemble
// //
// ** your answer here ** // ** your answer here **
// // Dump of assembler code for function bare1::__cortex_m_rt_main:
// 0x08000406 <+0>: sub sp, #4
// 0x08000408 <+2>: mvn.w r0, #1
// 0x0800040c <+6>: str r0, [sp, #0]
// 0x0800040e <+8>: adds r0, #1
// 0x08000410 <+10>: bkpt 0x0000
// 0x08000412 <+12>: str r0, [sp, #0]
// => 0x08000414 <+14>: bkpt 0x0000
// 0x08000416 <+16>: ldr r0, [sp, #0]
// 0x08000418 <+18>: b.n 0x800040e <bare1::__cortex_m_rt_main+8>
// End of assembler dump.
// How many instructions are in between the two `bkpt` instructions. // How many instructions are in between the two `bkpt` instructions.
// //
// ** your answer here ** // ** your answer here **
// // Only one
// Where is the local variable stored? // Where is the local variable stored?
// //
// ** your answer here ** // ** your answer here **
// // at address #0
// commit your answers (bare1_3) // commit your answers (bare1_3)
// //
// Discussion: // Discussion:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment