mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Changed Unified Target custom defaults to use sector 0 memory. (#8797)
Changed Unified Target custom defaults to use sector 0 memory.
This commit is contained in:
commit
dd8d7b0be2
6 changed files with 14 additions and 10 deletions
|
@ -56,8 +56,6 @@
|
||||||
#define USBD_PRODUCT_STRING "OmnibusF4"
|
#define USBD_PRODUCT_STRING "OmnibusF4"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define USE_CUSTOM_DEFAULTS
|
|
||||||
|
|
||||||
#define LED0_PIN PB5
|
#define LED0_PIN PB5
|
||||||
#define USE_BEEPER
|
#define USE_BEEPER
|
||||||
#define BEEPER_PIN PB4
|
#define BEEPER_PIN PB4
|
||||||
|
|
|
@ -2,6 +2,8 @@ F405_TARGETS += $(TARGET)
|
||||||
|
|
||||||
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
||||||
|
|
||||||
|
# Use a full block (16 kB) of flash for custom defaults - with 1 MB flash we have more than we know how to use anyway
|
||||||
|
|
||||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
CUSTOM_DEFAULTS_EXTENDED = yes
|
||||||
|
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
|
|
|
@ -2,8 +2,6 @@ F411_TARGETS += $(TARGET)
|
||||||
|
|
||||||
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
||||||
|
|
||||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
|
||||||
|
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||||
|
|
|
@ -2,8 +2,6 @@ F7X5XG_TARGETS += $(TARGET)
|
||||||
|
|
||||||
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
||||||
|
|
||||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
|
||||||
|
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||||
|
|
|
@ -2,8 +2,6 @@ F7X2RE_TARGETS += $(TARGET)
|
||||||
|
|
||||||
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
|
||||||
|
|
||||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
|
||||||
|
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||||
|
|
|
@ -1,9 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Create hex file from custom defaults in order to flash separately
|
||||||
|
#
|
||||||
|
# This will only work if the target was built with 'CUSTOM_DEFAULTS_EXTENDED'
|
||||||
|
#
|
||||||
|
# Usage: make_config_hex <input file> <output directory> <config area start address>
|
||||||
|
# Choose the config area start address from:
|
||||||
|
#
|
||||||
|
# STM32F405: 0x080FC000
|
||||||
|
# STM32F411 / STM32F7X2: 0x0807C000
|
||||||
|
# STM32F74X: 0x080F8000
|
||||||
|
|
||||||
INPUT_FILE=$1
|
INPUT_FILE=$1
|
||||||
DESTINATION_DIR=$2
|
DESTINATION_DIR=$2
|
||||||
|
TARGET_ADDRESS=$3
|
||||||
TARGET_ADDRESS=0x080FC000
|
|
||||||
|
|
||||||
srec_cat ${INPUT_FILE} -binary -offset ${TARGET_ADDRESS} \
|
srec_cat ${INPUT_FILE} -binary -offset ${TARGET_ADDRESS} \
|
||||||
-generate '(' -maximum-address ${INPUT_FILE} -binary -maximum-address ${INPUT_FILE} -binary -offset 1 ')' \
|
-generate '(' -maximum-address ${INPUT_FILE} -binary -maximum-address ${INPUT_FILE} -binary -offset 1 ')' \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue