From 6ff8473c0e1966511c680825b5bbbf1d108308f3 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 4 Mar 2020 16:21:34 +0100 Subject: [PATCH] Option NVM_WRITEONCE not needed on LPC. (tested multi-write OK) --- config/examples/lpc54606j512.config | 2 +- hal/lpc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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