diff --git a/.vscode/launch.json b/.vscode/launch.json index c361322ac1d36a74642c3dcc579a82217cc642be..f46a9952efb2d761b47eb0e85b62517126c12f25 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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 diff --git a/examples/bare1.rs b/examples/bare1.rs index 7f8b6429863535501515033e92afb2456b222bea..962f7c4aa6d1e2e7d64d3d5c9a49f678d99b6ebf 100644 --- a/examples/bare1.rs +++ b/examples/bare1.rs @@ -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 :) //