Skip to content

Commit ab0f004

Browse files
committed
Update to support bootloader offset
1 parent ceb83e6 commit ab0f004

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

boards.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,6 +1722,8 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
17221722
3dprinter.menu.pnum.FYSETC_S6.build.product_line=STM32F446xx
17231723
3dprinter.menu.pnum.FYSETC_S6.build.variant=FYSETC_S6
17241724
3dprinter.menu.pnum.FYSETC_S6.build.cmsis_lib_gcc=arm_cortexM4lf_math
1725+
3dprinter.menu.pnum.MALYANM300_F070CB.build.flash_offset=0x10000
1726+
3dprinter.menu.pnum.MALYANM200_F070CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset}
17251727

17261728
# Upload menu
17271729
3dprinter.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)

variants/FYSETC_S6/ldscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ _Min_Stack_Size = 0x400;; /* required amount of stack */
6060
/* Specify the memory areas */
6161
MEMORY
6262
{
63-
FLASH (rx) : ORIGIN = 0x8010000, LENGTH = 512K
63+
FLASH (rx) : ORIGIN = 0x8010000, LENGTH = 448K
6464
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
6565
}
6666

0 commit comments

Comments
 (0)