Skip to content

Commit c7d20e9

Browse files
committed
Remove tensorflow from iflash build to give a bit more available flash
1 parent 840271c commit c7d20e9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

boards/BANGLEJS2_IFLASH.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
# on-chip flash is now used for storage of any .js files (drive can be manually forced
1818
# by writing to a file named "C:filename" for example.
1919
#
20-
# It appears to have an issue with compaction: https://github.com/espruino/Espruino/issues/2509
20+
# In order to make a bit of room, Tensorflow is removed from this build
21+
#
22+
# TODO: We could remove/compress libs/banglejs/banglejs2_storage_default.c (factory firmware) to save another 120k
2123

2224
import pinutils;
2325

@@ -45,7 +47,6 @@
4547
'CRYPTO','SHA256','SHA512',
4648
'AES_CCM',
4749
'LCD_MEMLCD',
48-
'TENSORFLOW',
4950
'SWDCON', # RTT console over SWD
5051
'JIT' # JIT compiler enabled
5152
],
@@ -127,9 +128,9 @@
127128
'dac' : 0,
128129
'saved_code' : {
129130
'page_size' : 4096,
130-
'address' : ((246 - 60) * 4096), # Bootloader takes pages 248-255, FS takes 246-247
131-
'pages' : 60,
132-
'flash_available' : 1024 - ((38 + 8 + 2 + 60)*4), # Softdevice uses 0x26=38 pages of flash, bootloader 8, FS 2, code 60. Each page is 4 kb.
131+
'address' : ((246 - 68) * 4096), # Bootloader takes pages 248-255, FS takes 246-247
132+
'pages' : 68,
133+
'flash_available' : 1024 - ((38 + 8 + 2 + 68)*4), # Softdevice uses 0x26=38 pages of flash, bootloader 8, FS 2, code 68. Each page is 4 kb.
133134
'address2' : 0x60000000, # put this in external spiflash (see below)
134135
'pages2' : 2048, # Entire 8MB of external flash
135136

0 commit comments

Comments
 (0)