Skip to content

Commit

Permalink
Fix factory script when no safeboot image is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Oct 16, 2024
1 parent 5554cbd commit 6922a9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def critical(msg):
def generateFactooryImage(source, target, env):
status("Generating factory image for serial flashing")

app_offset = 0xB0000
app_offset = 0x10000
app_image = env.subst("$BUILD_DIR/${PROGNAME}.bin")

# Set fs_offset = 0 to disable LittleFS image generation
Expand Down Expand Up @@ -122,6 +122,7 @@ def generateFactooryImage(source, target, env):
cmd += [sect_adr, sect_file]

if safeboot_image != "" and os.path.isfile(safeboot_image):
app_offset = 0xB0000
status(f" - {hex(safeboot_offset)} | {safeboot_image}")
cmd += [hex(safeboot_offset), safeboot_image]

Expand Down

0 comments on commit 6922a9f

Please sign in to comment.