nrf51: Fixed mass erase after run then user interrupt (Ctrl + C) not working

This commit is contained in:
dragonmux 2022-07-14 13:25:19 -04:00 committed by Piotr Esden-Tempski
parent 5607eac812
commit bdf4dc8731
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,8 @@ static int nrf51_flash_write(struct target_flash *f,
static bool nrf51_mass_erase(target *t)
{
target_reset(t);
/* Enable erase */
target_mem_write32(t, NRF51_NVMC_CONFIG, NRF51_NVMC_CONFIG_EEN);