Compare commits
4 commits
3484a7b3f6
...
94de01c874
Author | SHA1 | Date | |
---|---|---|---|
|
94de01c874 | ||
|
71fce4254d | ||
|
51ac7402d6 | ||
|
bb31462909 |
5 changed files with 6 additions and 5 deletions
1
Makefile
1
Makefile
|
@ -13,6 +13,7 @@ all: $(BUILD)/tbm
|
|||
-include scripts/Makefile.${TARGET}
|
||||
|
||||
CFLAGS += -DTBM_VERSION=\"2017-10-31\"
|
||||
CFLAGS += -DBUILD_VERSION=\""$(shell date -u)"\"
|
||||
CFLAGS += -Iinclude
|
||||
CFLAGS += -Wall -Wextra -Wshadow -Wimplicit-function-declaration
|
||||
CFLAGS += -Wredundant-decls -pedantic
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 8a62618a63caf2aa76f6aa13775ddd52f9e37094
|
||||
Subproject commit 0fd4f74ee301af5de4e9b036f391bf17c5a52f02
|
|
@ -49,6 +49,6 @@ flash: $(BUILD)/tbm.bin
|
|||
stm32flash -g 0x8000000 -w $< $(STM32_PORT)
|
||||
|
||||
openocd:
|
||||
openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c 'transport select swd' -f /usr/share/openocd/scripts/target/stm32f1x.cfg -c 'gdb_port 4242'
|
||||
openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c 'transport select swd' -f /usr/share/openocd/scripts/target/stm32f1x.cfg -c 'gdb_port 4242' -c 'telnet_port 4444'
|
||||
|
||||
.PHONY: run
|
||||
|
|
|
@ -101,8 +101,8 @@ int main(void)
|
|||
fprintf(admin_con->fp, "error: unable to probe flash chip.\n");
|
||||
}
|
||||
|
||||
fprintf(user_con->fp, "TBM-dev (built on " __DATE__ ")\n");
|
||||
fprintf(admin_con->fp, "TBM-dev (built on " __DATE__ ")\n");
|
||||
fprintf(user_con->fp, "TBM-dev (built on " BUILD_VERSION ")\n");
|
||||
fprintf(admin_con->fp, "TBM-dev (built on " BUILD_VERSION ")\n");
|
||||
|
||||
shell_init(&user_shell, user_cmds, user_con, "tbm $",
|
||||
SHELL_SHOW_EXIT_CODE);
|
||||
|
|
|
@ -27,5 +27,5 @@ MEMORY
|
|||
}
|
||||
|
||||
/* Include the common ld script. */
|
||||
INCLUDE libopencm3_stm32f1.ld
|
||||
INCLUDE support/libopencm3_stm32f1.ld
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue