1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Changed Unified Target custom defaults to use sector 0 memory.

This commit is contained in:
mikeller 2019-09-02 20:54:52 +12:00
parent 227f6f76a2
commit 460c16d57d
6 changed files with 14 additions and 10 deletions

View file

@ -56,8 +56,6 @@
#define USBD_PRODUCT_STRING "OmnibusF4"
#endif
#define USE_CUSTOM_DEFAULTS
#define LED0_PIN PB5
#define USE_BEEPER
#define BEEPER_PIN PB4

View file

@ -2,6 +2,8 @@ F405_TARGETS += $(TARGET)
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
TARGET_SRC = \

View file

@ -2,8 +2,6 @@ F411_TARGETS += $(TARGET)
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
CUSTOM_DEFAULTS_EXTENDED = yes
TARGET_SRC = \
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \

View file

@ -2,8 +2,6 @@ F7X5XG_TARGETS += $(TARGET)
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
CUSTOM_DEFAULTS_EXTENDED = yes
TARGET_SRC = \
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \

View file

@ -2,8 +2,6 @@ F7X2RE_TARGETS += $(TARGET)
FEATURES += SDCARD_SPI VCP ONBOARDFLASH
CUSTOM_DEFAULTS_EXTENDED = yes
TARGET_SRC = \
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \

View file

@ -1,9 +1,19 @@
#!/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
DESTINATION_DIR=$2
TARGET_ADDRESS=0x080FC000
TARGET_ADDRESS=$3
srec_cat ${INPUT_FILE} -binary -offset ${TARGET_ADDRESS} \
-generate '(' -maximum-address ${INPUT_FILE} -binary -maximum-address ${INPUT_FILE} -binary -offset 1 ')' \