Compare commits

...

4 Commits

Author SHA1 Message Date
S.J.R. van Schaik 94de01c874 stm32f1: enable telnet 6 years ago
S.J.R. van Schaik 71fce4254d opencm3: update to 2019-02-15 6 years ago
S.J.R. van Schaik 51ac7402d6 make: stm32f1: update linker script path 6 years ago
S.J.R. van Schaik bb31462909 main: use date/time/timezone as build string 6 years ago
  1. 1
      Makefile
  2. 2
      libopencm3
  3. 2
      scripts/Makefile.stm32f1
  4. 4
      source/main.c
  5. 2
      support/stm32vl-discovery.ld

@ -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…
Cancel
Save