mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ttfw_idf: Extend bootloader_flash API
This commit is contained in:
parent
a2ffc9374c
commit
20740ce0da
@ -391,13 +391,14 @@ class IDFDUT(DUT.SerialDUT):
|
|||||||
for (_, f) in encrypt_offs_files:
|
for (_, f) in encrypt_offs_files:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def bootloader_flash(self):
|
def bootloader_flash(self, binary_path=None):
|
||||||
"""
|
"""
|
||||||
download bootloader.
|
download bootloader.
|
||||||
|
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
bootloader_path = os.path.join(self.app.binary_path, 'bootloader', 'bootloader.bin')
|
binary_path = self.app.binary_path if binary_path is None else binary_path
|
||||||
|
bootloader_path = os.path.join(binary_path, 'bootloader', 'bootloader.bin')
|
||||||
offs = int(self.app.get_sdkconfig()['CONFIG_BOOTLOADER_OFFSET_IN_FLASH'], 0)
|
offs = int(self.app.get_sdkconfig()['CONFIG_BOOTLOADER_OFFSET_IN_FLASH'], 0)
|
||||||
flash_files = [(offs, bootloader_path)]
|
flash_files = [(offs, bootloader_path)]
|
||||||
self.write_flash(flash_files)
|
self.write_flash(flash_files)
|
||||||
|
Loading…
Reference in New Issue
Block a user