-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maybe this can replace several others
- Loading branch information
1 parent
bb8a75e
commit 51c8081
Showing
5 changed files
with
27 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* custom.ld - Linker script using custom environment defines | ||
* | ||
* LD_MAX_SIZE seems to be defined by the base platform build. | ||
* | ||
* Provided by offset_and_rename.py : | ||
* LD_MAX_DATA_SIZE <= board_upload.maximum_ram_size | ||
* LD_FLASH_OFFSET <= board_build.offset -- also used for marlin.relocate_vtab() | ||
*/ | ||
|
||
MEMORY | ||
{ | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE | ||
rom (rx) : ORIGIN = 0x08000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET | ||
} | ||
|
||
/* Provide memory region aliases for common.inc */ | ||
REGION_ALIAS("REGION_TEXT", rom); | ||
REGION_ALIAS("REGION_DATA", ram); | ||
REGION_ALIAS("REGION_BSS", ram); | ||
REGION_ALIAS("REGION_RODATA", rom); | ||
|
||
/* Let common.inc handle the real work. */ | ||
INCLUDE common.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -368,10 +368,13 @@ build_flags = ${common_stm32f1.build_flags} | |
platform = ${common_stm32f1.platform} | ||
extends = common_stm32f1 | ||
platform_packages = tool-stm32duino | ||
board_build.ldscript = custom.ld | ||
board_build.address = 0x08005000 | ||
board_build.offset = 0x5000 | ||
board_upload.maximum_size = 237568 | ||
extra_scripts = ${common.extra_scripts} | ||
buildroot/share/PlatformIO/scripts/custom_board.py | ||
buildroot/share/PlatformIO/scripts/offset_and_rename.py | ||
build_flags = ${common_stm32f1.build_flags} | ||
-D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB | ||
lib_deps = USBComposite for [email protected] | ||
|
@@ -381,17 +384,14 @@ lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED | |
platform = ${ZONESTAR_ZM3E.platform} | ||
extends = ZONESTAR_ZM3E | ||
board = genericSTM32F103RC | ||
board_build.ldscript = ZONESTAR_ZM3E4V2.ld | ||
|
||
[env:STM32F103VC_ZM3E4_USB] | ||
platform = ${ZONESTAR_ZM3E.platform} | ||
extends = ZONESTAR_ZM3E | ||
board = genericSTM32F103VC | ||
board_build.ldscript = ZONESTAR_ZM3E4.ld | ||
|
||
[env:STM32F103VE_ZM3E4V2_USB] | ||
platform = ${ZONESTAR_ZM3E.platform} | ||
extends = ZONESTAR_ZM3E | ||
board = genericSTM32F103VE | ||
board_build.ldscript = ZONESTAR_ZM3E4V2.ld | ||
board_upload.maximum_size = 499712 |