Skip to content

Commit 6ff8473

Browse files
committed
Option NVM_WRITEONCE not needed on LPC. (tested multi-write OK)
1 parent a1a13c2 commit 6ff8473

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

config/examples/lpc54606j512.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NO_ASM?=0
1313
EXT_FLASH?=0
1414
SPI_FLASH?=0
1515
ALLOW_DOWNGRADE?=0
16-
NVM_FLASH_WRITEONCE?=1
16+
NVM_FLASH_WRITEONCE?=0
1717
WOLFBOOT_VERSION?=0
1818
V?=0
1919
SPMATH?=1

hal/lpc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
static int flash_init = 0;
3030
uint32_t SystemCoreClock;
3131

32-
#ifndef NVM_FLASH_WRITEONCE
33-
# error "wolfBoot LPC HAL: no WRITEONCE support detected. Please define NVM_FLASH_WRITEONCE"
32+
#ifdef NVM_FLASH_WRITEONCE
33+
# error "wolfBoot LPC HAL: WRITEONCE support detected. Please do not define NVM_FLASH_WRITEONCE on this platform."
3434
#endif
3535

3636
#define BOARD_BOOTCLOCKPLL180M_CORE_CLOCK 180000000U

0 commit comments

Comments
 (0)