Skip to content
Snippets Groups Projects
Commit 7b2a0421 authored by Anton Grahn's avatar Anton Grahn
Browse files

bare1_2

parent 66a252b9
Branches
No related tags found
No related merge requests found
......@@ -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 64MHz
......
......@@ -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 panicsc
// 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 :)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment