Skip to content

Commit e8348cf

Browse files
committed
[MTS_DRAGONFLY_F411RE][MTS_MDOT_F411RE] add explicit seek() call when combining bootloader and application binaries so Windows builds succeed
1 parent e1b89d4 commit e8348cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

workspace_tools/targets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ def combine_bins(t_self, resources, elf, binf):
734734
part.close()
735735
outbin.seek(0, 0)
736736
data = outbin.read()
737+
outbin.seek(0, 1)
737738
crc = struct.pack('<I', binascii.crc32(data) & 0xFFFFFFFF)
738739
outbin.write(crc)
739740
outbin.close()
@@ -774,6 +775,7 @@ def combine_bins(t_self, resources, elf, binf):
774775
part.close()
775776
outbin.seek(0, 0)
776777
data = outbin.read()
778+
outbin.seek(0, 1)
777779
crc = struct.pack('<I', binascii.crc32(data) & 0xFFFFFFFF)
778780
outbin.write(crc)
779781
outbin.close()

0 commit comments

Comments
 (0)