Update multi booter

final flash offset of bootloader set to 200k
right now bootloader code occupied 156k of flash
so there is a small space left for future modifications
This commit is contained in:
cuu
2025-06-02 14:55:46 +08:00
parent 6a15612907
commit 26cde76df8
8 changed files with 17 additions and 9 deletions

View File

@@ -463,12 +463,20 @@ def Built(dir, app):
if adr + length - 1 > last : last = adr + length - 1
block = Uf2Block(f)
##enlarge sd_boot flash size
if app == "sd_boot":
print("original last: ", last," ",'{:02X}'.format(last))
print("orignal size: ","{:>3}k".format(Size(last-strt, 1024)))
print("orignal used: ","{:>3}k".format(Size(last, 4*1024)))
if last < 0x10032000:
last = 0x10032000
size = "{:>3}k".format(Size(last-strt, 1024))
used = "{:>3}k".format(Size(last, 4*1024))
print(last,strt)
print(size,used)
mapfile = os.path.join(dir, "applink.map")
if (strt & 0x0FFFFFFF) == 0:
with open(mapfile, "w") as f: