Skip to content
Snippets Groups Projects
Commit 27a9173e authored by Per Lindgren's avatar Per Lindgren
Browse files

itm_trace

parent 7037ac0d
No related branches found
No related tags found
No related merge requests found
TARGETS = bare0 bare1 bare2 bare3 bare4 bare5 bare6 clk_out_itm TARGETS = bare0 bare1 bare2 bare3 bare4 bare5 bare6
DIR = target/thumbv7em-none-eabihf/debug/examples/ DEV = target/thumbv7em-none-eabihf/debug/examples/
ELFS = $(addprefix $(DIR), $(TARGETS)) REL = target/thumbv7em-none-eabihf/release/examples/
ELFS = $(addprefix $(DEV), $(TARGETS))
EELFS = $(addsuffix .elf, $(ELFS)) EELFS = $(addsuffix .elf, $(ELFS))
ELFSR = $(addprefix $(REL), $(TARGETS))
EELFSR = $(addsuffix .elf, $(ELFSR))
.PHONY: all .PHONY: all
all: xargo $(EELFS) all: xargo $(EELFS) $(EELFSR)
xargo: xargo:
xargo build --examples xargo build --examples
xargo build --release --examples
%.elf : % %.elf : %
cp $< $@ cp $< $@
......
...@@ -23,10 +23,12 @@ fn main() { ...@@ -23,10 +23,12 @@ fn main() {
ipln!("ITM: Hello World"); ipln!("ITM: Hello World");
// semihosting trace (slow) // semihosting trace (slow)
sprintln!("SEMIHOSTING: Hello World"); // sprintln!("SEMIHOSTING: Hello World");
// to prevent returning // to prevent returning
loop { loop {
ipln!("here");
// cortex_m::asm::nop(); // cortex_m::asm::nop();
// cortex_m::asm::bkpt(); // cortex_m::asm::bkpt();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment