From fda0af2658fb6a87cecb5cadc201cd9c66a91e6d Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Fri, 1 Sep 2023 11:12:09 +0000 Subject: [PATCH] Refs #1838. Added STM32L4P5xx support to the flash driver. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1082 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Target/Source/ARMCM4_STM32L4/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Target/Source/ARMCM4_STM32L4/flash.c b/Target/Source/ARMCM4_STM32L4/flash.c index 4f01d687..5a510335 100644 --- a/Target/Source/ARMCM4_STM32L4/flash.c +++ b/Target/Source/ARMCM4_STM32L4/flash.c @@ -810,12 +810,12 @@ static blt_int32u FlashGetBank(blt_addr address) { blt_int32u bank = FLASH_BANK_1; - /* multiple banks is only supported on certain STM32L4xx derivatives. */ + /* multiple banks is only supported on certain STM32L4xx derivatives. */ #if defined (STM32L471xx) || defined (STM32L475xx) || defined (STM32L476xx) || \ defined (STM32L485xx) || defined (STM32L486xx) || defined (STM32L496xx) || \ defined (STM32L4A6xx) || defined (STM32L4R5xx) || defined (STM32L4R7xx) || \ defined (STM32L4R9xx) || defined (STM32L4S5xx) || defined (STM32L4S7xx) || \ - defined (STM32L4S9xx) + defined (STM32L4S9xx) || defined (STM32L4P5xx) /* check flash bank mode selection bit to determine if banks 1 and 2 are swapped */ if (READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_FB_MODE) == 0) {