1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +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

@ -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 ')' \