Skip to content

Commit

Permalink
espefuse: Disable burning keys when 3/4 Coding Scheme is set
Browse files Browse the repository at this point in the history
  • Loading branch information
projectgus committed Sep 27, 2018
1 parent 309ab3d commit f2daa44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions espefuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,11 @@ def burn_key(esp, efuses, args):
else:
raise RuntimeError("args.block argument not in list!")

# check coding scheme
coding_scheme = _get_efuse(efuses, "CODING_SCHEME").get()
if coding_scheme != 0:
raise esptool.FatalError("Burning key efuses is not yet supported for 3/4 Coding Scheme")

# check keyfile
keyfile = args.keyfile
keyfile.seek(0,2) # seek t oend
Expand Down

0 comments on commit f2daa44

Please sign in to comment.