kopia lustrzana https://github.com/stlink-org/stlink
fix: FLASH_F4_CR_LOCK
rodzic
03024048eb
commit
8a190733a2
|
@ -251,7 +251,7 @@ static void lock_flash(stlink_t *sl) {
|
||||||
|
|
||||||
if (sl->flash_type == FLASH_TYPE_F4) {
|
if (sl->flash_type == FLASH_TYPE_F4) {
|
||||||
cr_reg = FLASH_F4_CR;
|
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) {
|
} else if (sl->flash_type == FLASH_TYPE_L4) {
|
||||||
cr_reg = STM32L4_FLASH_CR;
|
cr_reg = STM32L4_FLASH_CR;
|
||||||
cr_lock_shift = STM32L4_FLASH_CR_LOCK;
|
cr_lock_shift = STM32L4_FLASH_CR_LOCK;
|
||||||
|
|
Ładowanie…
Reference in New Issue