diff --git a/Makefile b/Makefile index 94468af..3c01faf 100644 --- a/Makefile +++ b/Makefile @@ -339,10 +339,11 @@ $(info LDFLAGS $(LDFLAGS)) $(info ) endif -.phony: all clean size flash sd +.phony: all clean size flash sd erase all: $(BUILD)/$(OUTPUT_FILENAME).out size +#********* Flash target ******************* flash: $(BUILD)/$(OUTPUT_FILENAME).hex @echo Flashing: $< $(NRFJPROG) --program $< --sectoranduicrerase -f nrf52 --reset @@ -351,6 +352,9 @@ sd: @echo Flashing: $(SD_HEX) $(NRFJPROG) --program $(SD_HEX) -f nrf52 --chiperase --reset +erase: + @echo Erasing chip + $(NRFJPROG) --eraseall -f nrf52 ## Create build directories $(BUILD): diff --git a/README.md b/README.md index 1da2f2f..7d88ea5 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,10 @@ To flash SoftDevice (with full chip erase) $ make BOARD=feather52840 sd +To full erase chip + + $ make BOARD=feather52840 erase + For the list of supported boards, try to type make without `BOARD=` $ make diff --git a/src/segger/nRF52840_xxAA_MemoryMap.xml b/src/segger/nRF52840_xxAA_MemoryMap.xml index 6606005..032ff15 100644 --- a/src/segger/nRF52840_xxAA_MemoryMap.xml +++ b/src/segger/nRF52840_xxAA_MemoryMap.xml @@ -1,7 +1,7 @@ - - + + diff --git a/src/segger/nrf52840_bootloader.emProject b/src/segger/nrf52840_bootloader.emProject index e00aba8..41053d4 100644 --- a/src/segger/nrf52840_bootloader.emProject +++ b/src/segger/nrf52840_bootloader.emProject @@ -94,11 +94,6 @@ - + + @@ -384,18 +385,9 @@ - - - + Name="Feather52840" + build_treat_warnings_as_errors="Yes" + c_preprocessor_definitions="DEBUG_SIZE_EXPAND" />