From 8a190733a2fb6e70b7956c64f04ab258967d0798 Mon Sep 17 00:00:00 2001 From: texane Date: Thu, 17 Mar 2016 19:27:14 +0100 Subject: [PATCH] fix: FLASH_F4_CR_LOCK --- src/stlink-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stlink-common.c b/src/stlink-common.c index 4714861..4ad86f8 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -251,7 +251,7 @@ static void lock_flash(stlink_t *sl) { if (sl->flash_type == FLASH_TYPE_F4) { cr_reg = FLASH_F4_CR; - cr_lock_shift = STM32L4_FLASH_CR_LOCK; + cr_lock_shift = FLASH_F4_CR_LOCK; } else if (sl->flash_type == FLASH_TYPE_L4) { cr_reg = STM32L4_FLASH_CR; cr_lock_shift = STM32L4_FLASH_CR_LOCK;