Skip to content

Commit 777c505

Browse files
KonstantinKondrashovKainarx
authored andcommitted
feat(espefuse): Updates esp32h4 efuse table and fixes tests
- Added esp32h4 efuse table - Fixed h4 test - Enabled some tests for p4 chip.
1 parent edb99bd commit 777c505

File tree

5 files changed

+102
-137
lines changed

5 files changed

+102
-137
lines changed

espefuse/efuse/esp32h4/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
for efuse in self.Fields.BLOCK2_CALIBRATION_EFUSES
102102
]
103103
else:
104-
if self["BLK_VERSION_MINOR"].get() == 1:
104+
if False: # self["BLK_VERSION_MINOR"].get() == 1:
105105
self.efuses += [
106106
EfuseField.convert(self, efuse)
107107
for efuse in self.Fields.BLOCK2_CALIBRATION_EFUSES

espefuse/efuse/esp32p4/operations.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,15 @@ def add_commands(subparsers, efuses):
177177

178178

179179
def burn_custom_mac(esp, efuses, args):
180-
print("Not supported yet")
180+
efuses["CUSTOM_MAC"].save(args.mac)
181+
if not efuses.burn_all(check_batch_mode=True):
182+
return
183+
get_custom_mac(esp, efuses, args)
184+
print("Successful")
181185

182186

183187
def get_custom_mac(esp, efuses, args):
184-
print("Not supported yet")
188+
print("Custom MAC Address: {}".format(efuses["CUSTOM_MAC"].get()))
185189

186190

187191
def set_flash_voltage(esp, efuses, args):

0 commit comments

Comments
 (0)