Skip to content

Commit 13d7a4d

Browse files
Write out the .text1 segment to the BIN
The extra segment name needs to be placed into the output binary as well, or else only the init code gets stored and none of the real app is present. This leads to an infinite boot loop. This change adds in the segment to the generated image.
1 parent 1c4f912 commit 13d7a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/elf2bin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def main():
109109

110110
out = open(args.out, "wb")
111111
write_bin(out, args.eboot, ['.text'], 4096, args.flash_mode, args.flash_size, args.flash_freq, args.path)
112-
write_bin(out, args.app, ['.irom0.text', '.text', '.data', '.rodata'], 0, args.flash_mode, args.flash_size, args.flash_freq, args.path)
112+
write_bin(out, args.app, ['.irom0.text', '.text', '.text1', '.data', '.rodata'], 0, args.flash_mode, args.flash_size, args.flash_freq, args.path)
113113
out.close()
114114

115115
return 0

0 commit comments

Comments
 (0)