openblt binary version #6756

only:docs
This commit is contained in:
Andrey 2024-07-30 10:28:31 -04:00
parent 6056799470
commit 4c98161c0f
2 changed files with 4 additions and 3 deletions

View File

@ -380,8 +380,7 @@ OD = $(TRGT)objdump
SZ = $(TRGT)size SZ = $(TRGT)size
HEX = $(CP) -O ihex HEX = $(CP) -O ihex
BIN = $(CP) -O binary BIN = $(CP) -O binary
# OpenBLT flasher expects srec files, but we create them in our bundle.mk, not in rules.mk # for srec files see bundle.mk
#SREC = $(CP) -O srec
# ARM-specific options here # ARM-specific options here
AOPT = AOPT =

View File

@ -167,6 +167,8 @@ ifeq ($(USE_OPENBLT),yes)
# note how bootloader_size from .ld file is hard-coded here! # note how bootloader_size from .ld file is hard-coded here!
CHECKSUM_ADDRESS = 0x0800801C CHECKSUM_ADDRESS = 0x0800801C
else else
# by the way '1C' is the magic address of first reserved DWORD in vector table
# by the way hex2dfu lower-case '-c' would also write binary length in second DWORD
CHECKSUM_ADDRESS = 0x0800001C CHECKSUM_ADDRESS = 0x0800001C
endif endif
@ -175,7 +177,7 @@ $(BUILDDIR)/rusefi.srec: $(BUILDDIR)/$(PROJECT).hex
$(H2D) -i $< -c $(CHECKSUM_ADDRESS) -b $(DBIN_CRC) $(H2D) -i $< -c $(CHECKSUM_ADDRESS) -b $(DBIN_CRC)
$(CP) -I binary -O srec --change-addresses=$(HEX_BASE_ADDRESS) $(DBIN_CRC) $@ $(CP) -I binary -O srec --change-addresses=$(HEX_BASE_ADDRESS) $(DBIN_CRC) $@
# The DFU is currenly not included in the bundle, so these prerequisites are listed as order-only to avoid building it. # The DFU is currently not included in the bundle, so these prerequisites are listed as order-only to avoid building it.
# If you want it, you can build it with `make rusefi.snapshot.$BUNDLE_NAME/rusefi.dfu` # If you want it, you can build it with `make rusefi.snapshot.$BUNDLE_NAME/rusefi.dfu`
$(DFU) $(DBIN): .h2d-sentinel ; $(DFU) $(DBIN): .h2d-sentinel ;