From 6461bbc333479a069c91a39ad3974d51dbcf1887 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Tue, 26 Sep 2023 12:20:32 +1000 Subject: [PATCH] Fix entry into bootloader for STM32G431. (#22138) --- .../chibios/boards/GENERIC_STM32_F446XE/configs/config.h | 4 ---- .../chibios/boards/GENERIC_STM32_G431XB/configs/config.h | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 platforms/chibios/boards/GENERIC_STM32_G431XB/configs/config.h diff --git a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h index 90a41326a16e..cbb98f90980e 100644 --- a/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h +++ b/platforms/chibios/boards/GENERIC_STM32_F446XE/configs/config.h @@ -14,10 +14,6 @@ * along with this program. If not, see . */ -/* Address for jumping to bootloader on STM32 chips. */ -/* It is chip dependent, the correct number can be looked up by checking against ST's application note AN2606. - */ - #ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP # define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE #endif diff --git a/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/config.h b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/config.h new file mode 100644 index 000000000000..2f23d400bb03 --- /dev/null +++ b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/config.h @@ -0,0 +1,7 @@ +// Copyright 2023 Nick Brassel (@tzarc) +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + +#ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP +# define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE +#endif