From 57c64d327efb02b674b2b805af69e84b64be169c Mon Sep 17 00:00:00 2001 From: Sergey Nikitenko Date: Sun, 7 Mar 2021 22:17:00 +0300 Subject: [PATCH] stm32l4 FLASH_CR_FSTPG register fix --- arch/arm/src/stm32l4/hardware/stm32l4_flash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32l4/hardware/stm32l4_flash.h b/arch/arm/src/stm32l4/hardware/stm32l4_flash.h index 22973a5003e..5baceb5117a 100644 --- a/arch/arm/src/stm32l4/hardware/stm32l4_flash.h +++ b/arch/arm/src/stm32l4/hardware/stm32l4_flash.h @@ -243,7 +243,7 @@ #endif #define FLASH_CR_START (1 << 16) /* Bit 16: Start Erase */ #define FLASH_CR_OPTSTRT (1 << 17) /* Bit 17: Options modification Start */ -#define FLASH_CR_FSTPG (1 << 23) /* Bit 23: Fast programming */ +#define FLASH_CR_FSTPG (1 << 18) /* Bit 18: Fast programming */ #define FLASH_CR_EOPIE (1 << 24) /* Bit 24: End of operation interrupt enable */ #define FLASH_CR_ERRIE (1 << 25) /* Bit 25: Error interrupt enable */ #define FLASH_CR_RDERRIE (1 << 26) /* Bit 26: PCROP read error interrupt enable */