File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 37
37
],
38
38
'makefile' : [
39
39
'DEFINES+=-DESP_PLATFORM -DESP32=1' ,
40
- 'DEFINES+=-DJSVAR_MALLOC' # Allocate space for variables at jsvInit time
40
+ 'DEFINES+=-DJSVAR_MALLOC' , # Allocate space for variables at jsvInit time
41
+ 'ESP32_FLASH_MAX=1572864'
41
42
]
42
43
}
43
44
};
55
56
'adc' : 2 ,
56
57
'dac' : 0 ,
57
58
'saved_code' : {
58
- 'address' : 0x2C0000 ,
59
+ 'address' : 0x320000 ,
59
60
'page_size' : 4096 ,
60
61
'pages' : 64 ,
61
62
'flash_available' : 1344 , # firmware can be up to this size - see partitions_espruino.csv
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ $(ESP_ZIP): $(PROJ_NAME).bin
14
14
$(Q ) rm -rf build/$(basename $(ESP_ZIP ) )
15
15
$(Q ) mkdir -p build/$(basename $(ESP_ZIP ) )
16
16
$(Q ) cp $(PROJ_NAME ) .bin espruino_esp32.bin
17
+ @echo " ** $( PROJ_NAME) .bin uses $$ ( stat $( STAT_FLAGS) $( PROJ_NAME) .bin) bytes of" $(ESP32_FLASH_MAX ) " available"
18
+ @if [ $$ ( stat $( STAT_FLAGS) $( PROJ_NAME) .bin) -gt $$ (( $(ESP32 _FLASH_MAX) )) ]; then echo " $( PROJ_NAME) .bin is too big!" ; false ; fi
17
19
$(Q ) cp $(ESP_APP_TEMPLATE_PATH ) /build/bootloader/bootloader.bin \
18
20
espruino_esp32.bin \
19
21
$(ESP_APP_TEMPLATE_PATH ) /build/partitions_espruino.bin \
You can’t perform that action at this time.
0 commit comments