@@ -1118,12 +1118,12 @@ def flash_map (flashsize_kb, spiffs_kb = 0):
11181118 ( menu + '.upload.maximum_size' , "%i" % max_upload_size ),
11191119 ( menub + 'rfcal_addr' , "0x%X" % rfcal_addr )
11201120 ])
1121- if spiffs_kb > 0 :
1122- d .update (collections .OrderedDict ([
1123- ( menub + 'spiffs_start' , "0x%05X" % spiffs_start ),
1124- ( menub + 'spiffs_end' , "0x%05X" % spiffs_end ),
1125- ( menub + 'spiffs_blocksize' , "%i" % spiffs_blocksize ),
1126- ]))
1121+ # if spiffs_kb > 0:
1122+ # d.update(collections.OrderedDict([
1123+ # ( menub + 'spiffs_start', "0x%05X" % spiffs_start ),
1124+ # ( menub + 'spiffs_end', "0x%05X" % spiffs_end ),
1125+ # ( menub + 'spiffs_blocksize', "%i" % spiffs_blocksize ),
1126+ # ]))
11271127
11281128 if ldshow :
11291129 if ldgen :
@@ -1150,14 +1150,13 @@ def flash_map (flashsize_kb, spiffs_kb = 0):
11501150
11511151 print ("/* Flash Split for %s chips */" % strsize )
11521152 print ("/* sketch @0x%X (~%dKB) (%dB) */" % (spi , (max_upload_size / 1024 ), max_upload_size ))
1153- if spiffs_kb > 0 :
1154- empty_size = spiffs_start - max_upload_size
1155- if empty_size > 1024 :
1156- print ("/* empty @0x%X (~%dKB) (%dB) */" % (spi + max_upload_size , empty_size / 1024 , empty_size ))
1157- print ("/* spiffs @0x%X (~%dKB) (%dB) */" % (spi + spiffs_start , ((spiffs_end - spiffs_start ) / 1024 ), spiffs_end - spiffs_start ))
1158- print ("/* eeprom @0x%X (=%dKB) */" % (spi + rfcal_addr - eeprom_size_kb * 1024 , eeprom_size_kb ))
1159- print ("/* rfcal @0x%X (=%dKB) */" % (spi + rfcal_addr , rfcal_size_kb ))
1160- print ("/* wifi @0x%X (=%dKB) */" % (spi + rfcal_addr + rfcal_size_kb * 1024 , sdkwifi_size_kb ))
1153+ empty_size = spiffs_start - max_upload_size
1154+ if empty_size > 0 :
1155+ print ("/* empty @0x%X (~%dKB) (%dB) */" % (spi + max_upload_size , empty_size / 1024 , empty_size ))
1156+ print ("/* spiffs @0x%X (~%dKB) (%dB) */" % (spi + spiffs_start , ((spiffs_end - spiffs_start ) / 1024 ), spiffs_end - spiffs_start ))
1157+ print ("/* eeprom @0x%X (%dKB) */" % (spi + rfcal_addr - eeprom_size_kb * 1024 , eeprom_size_kb ))
1158+ print ("/* rfcal @0x%X (%dKB) */" % (spi + rfcal_addr , rfcal_size_kb ))
1159+ print ("/* wifi @0x%X (%dKB) */" % (spi + rfcal_addr + rfcal_size_kb * 1024 , sdkwifi_size_kb ))
11611160 print ("" )
11621161 print ("MEMORY" )
11631162 print ("{" )
@@ -1167,11 +1166,10 @@ def flash_map (flashsize_kb, spiffs_kb = 0):
11671166 print (" irom0_0_seg : org = 0x40201010, len = 0x%x" % max_upload_size )
11681167 print ("}" )
11691168 print ("" )
1170- if spiffs_kb > 0 :
1171- print ("PROVIDE ( _SPIFFS_start = 0x%08X );" % (0x40200000 + spiffs_start ))
1172- print ("PROVIDE ( _SPIFFS_end = 0x%08X );" % (0x40200000 + spiffs_end ))
1173- print ("PROVIDE ( _SPIFFS_page = 0x%X );" % page )
1174- print ("PROVIDE ( _SPIFFS_block = 0x%X );" % block )
1169+ print ("PROVIDE ( _SPIFFS_start = 0x%08X );" % (0x40200000 + spiffs_start ))
1170+ print ("PROVIDE ( _SPIFFS_end = 0x%08X );" % (0x40200000 + spiffs_end ))
1171+ print ("PROVIDE ( _SPIFFS_page = 0x%X );" % page )
1172+ print ("PROVIDE ( _SPIFFS_block = 0x%X );" % block )
11751173 print ("" )
11761174 print ('INCLUDE "eagle.app.v6.common.ld"' )
11771175
0 commit comments