Move STM32 bootloader address config to separate .h file.
This commit is contained in:
parent
438559f11d
commit
88c053f78e
6 changed files with 51 additions and 31 deletions
|
|
@ -37,12 +37,16 @@ MCU_STARTUP = stm32f0xx
|
|||
BOARD = ST_STM32F072B_DISCOVERY
|
||||
# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
|
||||
ARMV = 6
|
||||
# If you want to be able to jump to bootloader from firmware (on STM32 MCUs),
|
||||
# set the correct BOOTLOADER_ADDRESS here. Otherwise leave commented out.
|
||||
# If you want to be able to jump to bootloader from firmware on STM32 MCUs,
|
||||
# set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in
|
||||
# ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have
|
||||
# a custom board definition that you plan to reuse).
|
||||
# If you're not setting it here, leave it commented out.
|
||||
# It is chip dependent, the correct number can be looked up here (page 175):
|
||||
# http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
||||
# This also requires a patch to chibios: <tmk_dir>/tmk_core/
|
||||
BOOTLOADER_ADDRESS = 0x1FFFC800
|
||||
# This also requires a patch to chibios:
|
||||
# <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
||||
#STM32_BOOTLOADER_ADDRESS = 0x1FFFC800
|
||||
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
|
|
|
|||
7
keyboard/chibi_onekey/bootloader_defs.h
Normal file
7
keyboard/chibi_onekey/bootloader_defs.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* Address for jumping to bootloader on STM32 chips. */
|
||||
/* It is chip dependent, the correct number can be looked up here (page 175):
|
||||
* http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
|
||||
* This also requires a patch to chibios:
|
||||
* <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
|
||||
*/
|
||||
#define STM32_BOOTLOADER_ADDRESS 0x1FFFC800
|
||||
Loading…
Add table
Add a link
Reference in a new issue