mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Added dependencies for eboot.ld and Makefile to Makefile.
Updated eboot.ld to not fill with zeros through the CS field on its way to the CRC. Added size test to elf2bin.py
This commit is contained in:
@ -93,6 +93,8 @@ def write_bin(out, elf, segments, to_addr, flash_mode, flash_size, flash_freq, p
|
||||
out.write(bytearray([0]))
|
||||
out.write(bytearray([checksum]))
|
||||
if to_addr != 0:
|
||||
if total_size + 8 > to_addr:
|
||||
raise Exception('Bin image of ' + elf + ' is too big, actual size ' + str(total_size + 8) + ', target size ' + str(to_addr) + '.')
|
||||
while total_size < to_addr:
|
||||
out.write(bytearray([0xaa]))
|
||||
total_size += 1
|
||||
|
Reference in New Issue
Block a user