mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Flash availalbe reflected in BOARD.py for nRF5x. No flash to save to for now until we get some more..
This commit is contained in:
parent
94dce99ede
commit
00f18e83b1
12
Makefile
12
Makefile
@ -396,13 +396,13 @@ else ifdef MICROBIT
|
||||
EMBEDDED=1
|
||||
SAVE_ON_FLASH=1
|
||||
# Save on flash, but we still want the debugger and tab complete
|
||||
DEFINES+=-DUSE_DEBUGGER -DUSE_TAB_COMPLETE
|
||||
#DEFINES+=-DUSE_DEBUGGER -DUSE_TAB_COMPLETE
|
||||
BOARD=MICROBIT
|
||||
OPTIMIZEFLAGS+=-Os
|
||||
USE_BLUETOOTH=1
|
||||
USE_GRAPHICS=1
|
||||
#USE_GRAPHICS=1
|
||||
|
||||
DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
# DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
|
||||
else ifdef DO003
|
||||
EMBEDDED=1
|
||||
@ -423,7 +423,7 @@ BOARD=NRF51TAG
|
||||
OPTIMIZEFLAGS+=-Os
|
||||
USE_BLUETOOTH=1
|
||||
|
||||
DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
# DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
|
||||
else ifdef NRF51822DK
|
||||
EMBEDDED=1
|
||||
@ -435,7 +435,7 @@ OPTIMIZEFLAGS+=-Os
|
||||
USE_BLUETOOTH=1
|
||||
DEFINES += -DBOARD_PCA10028
|
||||
|
||||
DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
# DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
|
||||
else ifdef NRF52832DK
|
||||
EMBEDDED=1
|
||||
@ -444,7 +444,7 @@ OPTIMIZEFLAGS+=-O3
|
||||
USE_BLUETOOTH=1
|
||||
DEFINES += -DBOARD_PCA10040
|
||||
|
||||
DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
# DFU_UPDATE_BUILD=1 # Uncomment this to build Espruino for a device firmware update over the air.
|
||||
|
||||
else ifdef LPC1768
|
||||
EMBEDDED=1
|
||||
|
||||
@ -23,7 +23,7 @@ info = {
|
||||
'default_console_tx' : "H0", # pin 24
|
||||
'default_console_rx' : "H1", # pin 25
|
||||
'default_console_baudrate' : "9600",
|
||||
'variables' : 350,
|
||||
'variables' : 310,
|
||||
'binary_name' : 'espruino_%v_microbit.bin',
|
||||
'build' : {
|
||||
'defines' : [
|
||||
@ -49,8 +49,8 @@ chip = {
|
||||
'saved_code' : {
|
||||
'address' : ((256 - 3) * 1024),
|
||||
'page_size' : 1024,
|
||||
'pages' : 3,
|
||||
'flash_available' : (256 - (96 + 3)) # softdevice + saved code
|
||||
'pages' : 0,
|
||||
'flash_available' : (256 - 108 - 10) # total flash pages - softdevice - bootloader
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -49,8 +49,8 @@ chip = {
|
||||
'saved_code' : {
|
||||
'address' : ((256 - 3) * 1024),
|
||||
'page_size' : 1024,
|
||||
'pages' : 3,
|
||||
'flash_available' : (256 - (96 + 3)) # softdevice + saved code
|
||||
'pages' : 0,
|
||||
'flash_available' : (256 - 108 - 10) # total flash pages - softdevice - bootloader
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -48,8 +48,8 @@ chip = {
|
||||
'saved_code' : {
|
||||
'address' : ((256 - 3) * 1024),
|
||||
'page_size' : 1024,
|
||||
'pages' : 3,
|
||||
'flash_available' : (256 - (96 + 3)) # softdevice + saved code
|
||||
'pages' : 0,
|
||||
'flash_available' : (256 - 108 - 10) # total flash pages - softdevice - bootloader
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -48,8 +48,8 @@ chip = {
|
||||
'saved_code' : {
|
||||
'address' : ((128 - 3) * 4096),
|
||||
'page_size' : 4096,
|
||||
'pages' : 3,
|
||||
'flash_available' : (512 - 124 - 12) # Softdevice uses 31 plages of flash. Each page is 4 kb.
|
||||
'pages' : 0,
|
||||
'flash_available' : (512 - 108 - 24) # Total flash - softdevice - bootloader (this one is code signed unlike nrF51).
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user