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
DIR = target/thumbv7em-none-eabihf/debug/examples/
ELFS = $(addprefix $(DIR), $(TARGETS))
TARGETS = bare0 bare1 bare2 bare3 bare4 bare5 bare6
DEV = target/thumbv7em-none-eabihf/debug/examples/
REL = target/thumbv7em-none-eabihf/release/examples/
ELFS = $(addprefix $(DEV), $(TARGETS))
EELFS = $(addsuffix .elf, $(ELFS))
ELFSR = $(addprefix $(REL), $(TARGETS))
EELFSR = $(addsuffix .elf, $(ELFSR))
.PHONY: all
all: xargo $(EELFS)
all: xargo $(EELFS) $(EELFSR)
xargo:
xargo build --examples
xargo build --release --examples
%.elf : %
cp $< $@
......
......@@ -23,10 +23,12 @@ fn main() {
ipln!("ITM: Hello World");
// semihosting trace (slow)
sprintln!("SEMIHOSTING: Hello World");
// sprintln!("SEMIHOSTING: Hello World");
// to prevent returning
loop {
ipln!("here");
// cortex_m::asm::nop();
// 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