diff options
| author | mndza <[email protected]> | 2023-06-27 12:05:59 +0200 |
|---|---|---|
| committer | mndza <[email protected]> | 2023-06-30 11:30:33 +0200 |
| commit | 14d69e46be7b875fef534d70e619764df63f023d (patch) | |
| tree | 7c5bebf4394980895c3fdd7923bc8dad23b079ce /hw/bsp/samd21/boards | |
| parent | f5d0510064bd2a0ffd040697de1fac707fa70069 (diff) | |
Update support for Cynthion boards
- Rename LUNA to Cynthion
- Add support for newer revisions (>=0.6)
- Bootloader (saturn-v) default size is now 2K
Diffstat (limited to 'hw/bsp/samd21/boards')
| -rw-r--r-- | hw/bsp/samd21/boards/cynthion_d21/board.h (renamed from hw/bsp/samd21/boards/luna_d21/board.h) | 0 | ||||
| -rw-r--r-- | hw/bsp/samd21/boards/cynthion_d21/board.mk (renamed from hw/bsp/samd21/boards/luna_d21/board.mk) | 6 | ||||
| -rw-r--r-- | hw/bsp/samd21/boards/cynthion_d21/samd21g18a_flash.ld (renamed from hw/bsp/samd21/boards/luna_d21/samd21g18a_flash.ld) | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/hw/bsp/samd21/boards/luna_d21/board.h b/hw/bsp/samd21/boards/cynthion_d21/board.h index 776063636..776063636 100644 --- a/hw/bsp/samd21/boards/luna_d21/board.h +++ b/hw/bsp/samd21/boards/cynthion_d21/board.h diff --git a/hw/bsp/samd21/boards/luna_d21/board.mk b/hw/bsp/samd21/boards/cynthion_d21/board.mk index 508a72b1f..52c9d60cb 100644 --- a/hw/bsp/samd21/boards/luna_d21/board.mk +++ b/hw/bsp/samd21/boards/cynthion_d21/board.mk @@ -2,6 +2,12 @@ CFLAGS += -D__SAMD21G18A__ -DCFG_EXAMPLE_VIDEO_READONLY LD_FILE = $(BOARD_PATH)/samd21g18a_flash.ld +# Default bootloader size is now 2K, allow to specify other +ifeq ($(BOOTLOADER_SIZE), ) + BOOTLOADER_SIZE := 0x800 +endif +LDFLAGS += -Wl,--defsym=BOOTLOADER_SIZE=$(BOOTLOADER_SIZE) + # For flash-jlink target JLINK_DEVICE = ATSAMD21G18 diff --git a/hw/bsp/samd21/boards/luna_d21/samd21g18a_flash.ld b/hw/bsp/samd21/boards/cynthion_d21/samd21g18a_flash.ld index 158593036..ecb6b8523 100644 --- a/hw/bsp/samd21/boards/luna_d21/samd21g18a_flash.ld +++ b/hw/bsp/samd21/boards/cynthion_d21/samd21g18a_flash.ld @@ -35,7 +35,7 @@ SEARCH_DIR(.) /* Memory Spaces Definitions */ MEMORY { - rom (rx) : ORIGIN = 0x00000000 + 4K, LENGTH = 0x00040000 - 4K + rom (rx) : ORIGIN = 0x00000000 + BOOTLOADER_SIZE, LENGTH = 0x00040000 - BOOTLOADER_SIZE ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 } |
