Skip to content

Commit

Permalink
v2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Feb 1, 2019
1 parent 46b7eda commit 1ca886f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Bootloader.sublime-workspace
.vscode
build
tmp
Makefile.user
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ FLAGS += -mthumb $(CPUFLAGS) \
$(EXTRAFLAGS)


OPENOCDALL = $(OPENOCD) -f $(JTAGCONFIG) -f target/stm32$(FN)x.cfg

#
# Bootloaders to build
#
Expand All @@ -92,14 +94,18 @@ build-bl: $(MAKEFILE_LIST) $(OCM3FILE) do-build
#
include rules.mk

flash: upload
burn: upload
b: burn
f: flash

upload: build flash-bootloader

flash-bootloader:
$(OPENOCD) -f $(JTAGCONFIG) -f ocd/stm32$(FN)x.cfg \
-c "program build/$(BOARD)/bootloader.elf verify reset exit "
$(OPENOCDALL) -c "program build/$(BOARD)/bootloader.elf verify reset exit "

gdb:
arm-none-eabi-gdb --eval "target remote | $(OPENOCD) -f $(JTAGCONFIG) -f ocd/stm32$(FN)x.cfg -f ocd/debug.cfg" build/$(BOARD)/bootloader.elf
arm-none-eabi-gdb --eval "target remote | $(OPENOCDALL) -f ocd/debug.cfg" build/$(BOARD)/bootloader.elf

#
# Show sizes
Expand All @@ -108,6 +114,9 @@ gdb:
sizes:
@-find build/*/ -name '*.elf' -type f | xargs size 2> /dev/null || :

drop:
for f in `cd boards; ls` ; do $(MAKE) BOARD=$$f ; done
cd build; 7z a uf2-stm32f.zip */bootloader.bin */flasher*uf2
#
# Binary management
#
Expand Down
2 changes: 1 addition & 1 deletion uf2cfg.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define UF2_VERSION "2.3.1"
#define UF2_VERSION "2.3.2"
#define BOARD_ID "STM32F401-BrainPad-Arcade-RevA"
#define INDEX_URL "https://arcade.makecode.com"
#define UF2_NUM_BLOCKS 8000
Expand Down

0 comments on commit 1ca886f

Please sign in to comment.