Skip to content

Commit

Permalink
Fix lock fuse verification step in the ISP target
Browse files Browse the repository at this point in the history
The fuse bits value has to be prefixed with `0x`, otherwise,
avrdude treats it as a filename and the lock fuse write fails.
  • Loading branch information
ondrej-stanek-ozobot committed Apr 4, 2022
1 parent c8b6930 commit d541683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optiboot/bootloaders/optiboot/Makefile.isp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ISPFUSES = -e -u -U lock:w:0x$(LOCKFUSE):m $(EFUSE_CMD) \
# space from accidental SPM writes. Note: "2f" allows boot section to be read
# by the application, which is different than the arduino default.
#
ISPFLASH = -U flash:w:$(FILENAME) -U lock:w:$(LOCKFUSE):m
ISPFLASH = -U flash:w:$(FILENAME) -U lock:w:0x$(LOCKFUSE):m

# There are certain complicated caused by the fact that the default state
# of a fuse is a "1" rather than a "0", especially with respect to fuse bits
Expand Down

0 comments on commit d541683

Please sign in to comment.