build: refactor fw, bl and bu rules
- New macros for fw, bl and bu rules in top-level make
- Per-board info factored into make/board/*/board-info.mk
- Per-board info now shared btw. fw, bl and blupd for each board
- BOARD_TYPE, BOARD_REVISION, BOOTLOADER_VERSION, HW_TYPE
- MCU, CHIP, BOARD, MODEL, MODEL_SUFFIX
- START_OF_BL_CODE, START_OF_FW_CODE
- blupd_* goals renamed to bu_*
- all_blupd goal renamed to all_bu
- firmware goals renamed to fw_*, board name goals are preserved
- bu_*_program now writes updater to correct address for all boards
- BL updater firmware builds now produce .opf format including
version info blob.
- BL updater firmware name now includes board name.
- INS makefile brought up to date w.r.t. linker scripts
2011-05-23 21:11:53 +02:00
|
|
|
BOARD_TYPE := 0x03
|
|
|
|
BOARD_REVISION := 0x01
|
2013-04-08 01:09:31 +02:00
|
|
|
BOOTLOADER_VERSION := 0x04
|
2011-05-24 06:08:03 +02:00
|
|
|
HW_TYPE := 0x01
|
build: refactor fw, bl and bu rules
- New macros for fw, bl and bu rules in top-level make
- Per-board info factored into make/board/*/board-info.mk
- Per-board info now shared btw. fw, bl and blupd for each board
- BOARD_TYPE, BOARD_REVISION, BOOTLOADER_VERSION, HW_TYPE
- MCU, CHIP, BOARD, MODEL, MODEL_SUFFIX
- START_OF_BL_CODE, START_OF_FW_CODE
- blupd_* goals renamed to bu_*
- all_blupd goal renamed to all_bu
- firmware goals renamed to fw_*, board name goals are preserved
- bu_*_program now writes updater to correct address for all boards
- BL updater firmware builds now produce .opf format including
version info blob.
- BL updater firmware name now includes board name.
- INS makefile brought up to date w.r.t. linker scripts
2011-05-23 21:11:53 +02:00
|
|
|
|
|
|
|
MCU := cortex-m3
|
|
|
|
CHIP := STM32F103CBT
|
2013-04-12 23:24:30 +02:00
|
|
|
BOARD := STM32103CB_OPLINKMINI
|
build: refactor fw, bl and bu rules
- New macros for fw, bl and bu rules in top-level make
- Per-board info factored into make/board/*/board-info.mk
- Per-board info now shared btw. fw, bl and blupd for each board
- BOARD_TYPE, BOARD_REVISION, BOOTLOADER_VERSION, HW_TYPE
- MCU, CHIP, BOARD, MODEL, MODEL_SUFFIX
- START_OF_BL_CODE, START_OF_FW_CODE
- blupd_* goals renamed to bu_*
- all_blupd goal renamed to all_bu
- firmware goals renamed to fw_*, board name goals are preserved
- bu_*_program now writes updater to correct address for all boards
- BL updater firmware builds now produce .opf format including
version info blob.
- BL updater firmware name now includes board name.
- INS makefile brought up to date w.r.t. linker scripts
2011-05-23 21:11:53 +02:00
|
|
|
MODEL := MD
|
2012-02-22 04:29:06 +01:00
|
|
|
MODEL_SUFFIX := _PX
|
|
|
|
|
2013-05-02 05:23:26 +02:00
|
|
|
OPENOCD_JTAG_CONFIG := stlink-v2.cfg
|
|
|
|
OPENOCD_CONFIG := stm32f1x.stlink.cfg
|
2012-02-25 18:35:29 +01:00
|
|
|
|
2013-05-05 21:23:35 +02:00
|
|
|
# Flash memory map for OPLM:
|
|
|
|
# Sector start size use
|
2013-05-15 23:18:50 +02:00
|
|
|
# 0 0x0800 0000 1k BL
|
|
|
|
# 1 0x0800 0400 1k BL
|
|
|
|
# .. ..
|
2013-05-05 21:23:35 +02:00
|
|
|
# 10 0x0800 2C00 1k BL
|
|
|
|
# 11 0x0800 3000 1k FW
|
|
|
|
# 12 0x0800 1000 1k FW
|
2013-05-15 23:18:50 +02:00
|
|
|
# .. ..
|
2013-05-05 21:23:35 +02:00
|
|
|
# 125 0x0801 F400 1k FW
|
|
|
|
# 126 0x0801 F800 1k EE
|
|
|
|
# 127 0x0801 FC00 1k EE
|
|
|
|
|
|
|
|
|
2011-05-24 06:08:03 +02:00
|
|
|
# Note: These must match the values in link_$(BOARD)_memory.ld
|
|
|
|
BL_BANK_BASE := 0x08000000 # Start of bootloader flash
|
|
|
|
BL_BANK_SIZE := 0x00003000 # Should include BD_INFO region
|
|
|
|
FW_BANK_BASE := 0x08003000 # Start of firmware flash
|
|
|
|
FW_BANK_SIZE := 0x0001CC00 # Should include FW_DESC_SIZE
|
2013-05-05 21:23:35 +02:00
|
|
|
FW_BANK_SIZE := 0x00019000 # Should include FW_DESC_SIZE
|
|
|
|
EE_BANK_BASE := 0x0801C000 # EEPROM storage area
|
|
|
|
EE_BANK_SIZE := 0x00004000 # Size of EEPROM storage area
|
2011-05-24 06:08:03 +02:00
|
|
|
|
|
|
|
FW_DESC_SIZE := 0x00000064
|
2013-05-15 05:58:37 +02:00
|
|
|
|
|
|
|
OSCILLATOR_FREQ := 8000000
|