Skip to content

Commit

Permalink
Don't flash UID for normal flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Nov 8, 2023
1 parent 11cdbec commit 9f7bed9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions software/firmware/Jtag.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ endif
.PHONY: UID flash
UID: $(CONFIG)
printf "r\n" > $(CONFIG)/flash.jlink
ifdef ID
printf "w4 $(ID_FLASH_LOCATION), 0x$(ID_SECON) 0x$(ID_FIRST)\n" >> $(CONFIG)/flash.jlink
printf "exit\n" >> $(CONFIG)/flash.jlink
$(JLINK) $(JLINK_FLAGS) $(CONFIG)/flash.jlink
endif

# Code Flash Rule
flash: all
printf "r\n" > $(CONFIG)/flash.jlink
ifdef ID
printf "w4 $(ID_FLASH_LOCATION), 0x$(ID_SECON) 0x$(ID_FIRST)\n" >> $(CONFIG)/flash.jlink
endif
printf "loadfile $(CONFIG)/$(TARGET).bin $(FLASH_START)\nr\ng\nexit\n" >> $(CONFIG)/flash.jlink
$(JLINK) $(JLINK_FLAGS) $(CONFIG)/flash.jlink

Expand Down

0 comments on commit 9f7bed9

Please sign in to comment.