mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
Merge pull request #11776 from fjmolinas/pr_fix_stm32_flashpage
stm32_common/flashpage: fix stm32l4 erase error
This commit is contained in:
commit
3f984a1128
@ -112,6 +112,7 @@ static void _erase_page(void *page_addr)
|
||||
}
|
||||
pn = (uint8_t)page;
|
||||
#endif
|
||||
CNTRL_REG &= ~FLASH_CR_PNB;
|
||||
CNTRL_REG |= (uint32_t)(pn << FLASH_CR_PNB_Pos);
|
||||
CNTRL_REG |= FLASH_CR_STRT;
|
||||
#else /* CPU_FAM_STM32F0 || CPU_FAM_STM32F1 || CPU_FAM_STM32F3 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user