diff --git a/compile.sh b/compile.sh index a4015884a6c369f693c934598521fb8cb2f84339..4f1861a35b78983a7472042bab809a1a26c9206c 100755 --- a/compile.sh +++ b/compile.sh @@ -2,4 +2,5 @@ #cargo build --target thumbv7em-none-eabihf --release #cargo build --target thumbv7em-none-eabihf --example bare0 -cargo build --target thumbv7em-none-eabihf --example bare1 +#cargo build --target thumbv7em-none-eabihf --example bare1 +cargo build --target thumbv7em-none-eabihf --example bare2 diff --git a/examples/bare2.rs b/examples/bare2.rs index be78e88cccffbe7f84d3d4823b9093d6675adc08..a20bbafec2874e378543678b1e2b2ecb8b67791b 100644 --- a/examples/bare2.rs +++ b/examples/bare2.rs @@ -41,9 +41,13 @@ fn main() { // > openocd -f interface/stlink.cfg -f target/stm32f4x.cfg // // what is the output in the ITM console +// +// >> s = 0 + i (for 0 < i < integer_max) // ** your answer here ** // // estimate the frequency of the output, give freq in hz +// +// >> 0.9 Hz // ** your answer here ** // // commit your answers (bare2_1) diff --git a/gdb.sh b/gdb.sh index 8c401f8998582beec6bfb0f2b7e7680981cb50e8..55d3958a5bd48c597a725d62e8cd35d5ad016caf 100755 --- a/gdb.sh +++ b/gdb.sh @@ -3,4 +3,5 @@ TARGET=thumbv7em-none-eabihf #arm-none-eabi-gdb target/$TARGET/release/examples/bare0 #arm-none-eabi-gdb target/$TARGET/debug/examples/bare0 -arm-none-eabi-gdb target/$TARGET/debug/examples/bare1 +#arm-none-eabi-gdb target/$TARGET/debug/examples/bare1 +arm-none-eabi-gdb target/$TARGET/debug/examples/bare2 diff --git a/itm.sh b/itm.sh new file mode 100755 index 0000000000000000000000000000000000000000..6371bd3f596306592a5034806c57bf2ded510307 --- /dev/null +++ b/itm.sh @@ -0,0 +1,3 @@ +#!/bin/bash +itmdump -Ff /tmp/itm.log +