From: texane Date: Thu, 17 Mar 2016 18:27:14 +0000 (+0100) Subject: fix: FLASH_F4_CR_LOCK X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8a190733a2fb6e70b7956c64f04ab258967d0798;p=fw%2Fstlink fix: FLASH_F4_CR_LOCK --- 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;