mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-05 01:24:41 -07:00
Merge ecfeb45485 into 7a44726492
This commit is contained in:
commit
fdcdc433bc
2 changed files with 16 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ class Handle_arm_irq:
|
|||
# The ResetHandler was not defined - don't build VectorTable
|
||||
return ""
|
||||
max_irq = max(self.irqs.keys())
|
||||
table = [" DefaultHandler,\n"] * (max_irq + armcm_offset + 1)
|
||||
table = [" DefaultHandler,\n"] * (max_irq + armcm_offset + 2)
|
||||
defs = []
|
||||
for num, func in self.irqs.items():
|
||||
if num < 1 - armcm_offset:
|
||||
|
|
@ -230,6 +230,7 @@ class Handle_arm_irq:
|
|||
defs.append("extern void %s(void);\n" % (func,))
|
||||
table[num + armcm_offset] = " %s,\n" % (func,)
|
||||
table[0] = " &_stack_end,\n"
|
||||
table[-1] = " (void*)0x55AA11EE,\n"
|
||||
fmt = """
|
||||
extern void DefaultHandler(void);
|
||||
extern uint32_t _stack_end;
|
||||
|
|
|
|||
|
|
@ -92,11 +92,25 @@ src-$(CONFIG_HAVE_GPIO_SDIO) += stm32/sdio.c
|
|||
|
||||
# Binary output file rules
|
||||
target-y += $(OUT)klipper.bin
|
||||
target-y += $(OUT)klipper.srec
|
||||
|
||||
$(OUT)klipper.bin: $(OUT)klipper.elf
|
||||
@echo " Creating bin file $@"
|
||||
$(Q)$(OBJCOPY) -O binary $< $@
|
||||
|
||||
$(OUT)klipper.srec: $(OUT)klipper.bin
|
||||
@echo " Creating srec file $@"
|
||||
$(Q)$(OBJCOPY) -I binary -O srec --change-addresses "$(CONFIG_FLASH_APPLICATION_ADDRESS)" $< $@
|
||||
|
||||
# Print OpenBLT BOOT_FLASH_VECTOR_TABLE_CS_OFFSET
|
||||
print-openblt-vector-table-cs-offset:
|
||||
@addr=`$(OBJDUMP) -s -j .text $(OUT)klipper.elf | grep ee11aa55 | awk '{print $$1}'`; \
|
||||
if [ -z "$$addr" ]; then \
|
||||
echo "Pattern not found"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
printf "BOOT_FLASH_VECTOR_TABLE_CS_OFFSET: 0x%X\n" $$((0x$$addr - $(CONFIG_FLASH_APPLICATION_ADDRESS)))
|
||||
|
||||
# Flash rules
|
||||
lib/hidflash/hid-flash:
|
||||
@echo " Building hid-flash"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue