diff --git a/config/examples/lpc54606j512.config b/config/examples/lpc54606j512.config index 168851be..ed3dc809 100644 --- a/config/examples/lpc54606j512.config +++ b/config/examples/lpc54606j512.config @@ -13,7 +13,7 @@ NO_ASM?=0 EXT_FLASH?=0 SPI_FLASH?=0 ALLOW_DOWNGRADE?=0 -NVM_FLASH_WRITEONCE?=1 +NVM_FLASH_WRITEONCE?=0 WOLFBOOT_VERSION?=0 V?=0 SPMATH?=1 diff --git a/hal/lpc.c b/hal/lpc.c index f998097b..805aaf49 100644 --- a/hal/lpc.c +++ b/hal/lpc.c @@ -29,8 +29,8 @@ static int flash_init = 0; uint32_t SystemCoreClock; -#ifndef NVM_FLASH_WRITEONCE -# error "wolfBoot LPC HAL: no WRITEONCE support detected. Please define NVM_FLASH_WRITEONCE" +#ifdef NVM_FLASH_WRITEONCE +# error "wolfBoot LPC HAL: WRITEONCE support detected. Please do not define NVM_FLASH_WRITEONCE on this platform." #endif #define BOARD_BOOTCLOCKPLL180M_CORE_CLOCK 180000000U