From 47b4b45abea718d30e4a91e95a22d585c4840901 Mon Sep 17 00:00:00 2001 From: josesimoes Date: Mon, 16 Nov 2020 17:28:16 +0000 Subject: [PATCH] Fix bootloader config for F769 - Can't use USB DFU because of USB PHY on board. --- .../ST_STM32F769I_DISCOVERY/target_common.c | 35 ++----------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/target_common.c b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/target_common.c index 76af6c9ba5..588fa70562 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/target_common.c +++ b/targets/CMSIS-OS/ChibiOS/ST_STM32F769I_DISCOVERY/target_common.c @@ -22,35 +22,6 @@ HAL_SYSTEM_CONFIG HalSystemConfig = { HAL_TARGET_CONFIGURATION g_TargetConfiguration; -// this target can use both JTAG and DFU for updates -inline GET_TARGET_CAPABILITIES(TargetCapabilities_JtagUpdate | TargetCapabilities_DfuUpdate); -inline TARGET_HAS_PROPRITARY_BOOTER(true); - -bool LaunchProprietaryBootloader() -{ - //volatile uint32_t DFU_BOOTLOADER_ADDRESS = 0x1FFF0000; - - // disable all interrupts in ChibiOS - chSysDisable(); - - // // Disable RCC, set it to default (after reset) settings - // // Internal clock, no PLL, etc - // RCC_DeInit(); - - // // enable SYSCFG clock - // RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); - - // // disable systick timer and reset it to default values - // SysTick->CTRL = 0; - // SysTick->LOAD = 0; - // SysTick->VAL = 0; - - // SYSCFG->MEMRMP = SYSCFG_MemoryRemap_SystemFlash; - - // // clear any pending interrupts to make sure we are jumping straight to nanoCLR ResetHandler - // SCB->ICSR &= SCB_ICSR_PENDSVCLR_Msk; - - // StartApplication(SYSMEM_ADDR); - - return true; -} +// this target can use JTAG for updates +inline GET_TARGET_CAPABILITIES(TargetCapabilities_JtagUpdate); +inline TARGET_HAS_PROPRITARY_BOOTER(false);