From 5652f1f661479f23468c90c531927f5f0a727979 Mon Sep 17 00:00:00 2001 From: Jan Hrudka Date: Fri, 31 Mar 2023 21:12:40 +0200 Subject: [PATCH] stm32/flash: Fix get_bank function for STM32H750. STM32H750 has only 1 flash bank so function get_bank should always return FLASH_BANK_1. --- ports/stm32/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/flash.c b/ports/stm32/flash.c index 2cc6c390ba01..12fa523cd56e 100644 --- a/ports/stm32/flash.c +++ b/ports/stm32/flash.c @@ -133,7 +133,7 @@ static const flash_layout_t flash_layout[] = { #error Unsupported processor #endif -#if defined(STM32H723xx) +#if defined(STM32H723xx) || defined(STM32H750xx) // get the bank of a given flash address static uint32_t get_bank(uint32_t addr) {