Compare commits

...

4 commits

Author SHA1 Message Date
S.J.R. van Schaik
94de01c874 stm32f1: enable telnet 2019-02-15 16:35:30 +01:00
S.J.R. van Schaik
71fce4254d opencm3: update to 2019-02-15 2019-02-15 16:34:39 +01:00
S.J.R. van Schaik
51ac7402d6 make: stm32f1: update linker script path 2019-02-15 16:34:14 +01:00
S.J.R. van Schaik
bb31462909 main: use date/time/timezone as build string 2019-02-15 16:33:55 +01:00
5 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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);

View file

@ -27,5 +27,5 @@ MEMORY
}
/* Include the common ld script. */
INCLUDE libopencm3_stm32f1.ld
INCLUDE support/libopencm3_stm32f1.ld