Remove debugger from emulator

also remove hard-coded ifdef for ESP8266 - it can just be put in board files now
This commit is contained in:
Gordon Williams 2024-05-09 12:36:42 +01:00
parent 3b71c3742b
commit b86ab416cc
6 changed files with 6 additions and 5 deletions

View File

@ -344,13 +344,10 @@ libs/compression/compress_rle.c
else
ifneq ($(FAMILY),ESP8266)
# If we have enough flash, include the debugger
# ESP8266 can't do it because it expects tasks to finish within set time
ifneq ($(USE_DEBUGGER),0)
DEFINES+=-DUSE_DEBUGGER
endif
endif
# Use use tab complete
ifneq ($(USE_TAB_COMPLETE),0)
DEFINES+=-DUSE_TAB_COMPLETE

View File

@ -33,6 +33,7 @@ info = {
],
'makefile' : [
'EMSCRIPTEN=1',
'USE_DEBUGGER=0', # We can't use debugger in emulator as we're single-threaded and it uses IRQs on embedded to work
'DEFINES += -DESPR_HWVERSION=1',
'DEFINES += -DUSE_CALLFUNCTION_HACK', # required to handle calls properly
'DEFINES += -DBANGLEJS -DBANGLEJS_F18 -DEMULATED -DEMSCRIPTEN',

View File

@ -33,6 +33,7 @@ info = {
],
'makefile' : [
'EMSCRIPTEN=1',
'USE_DEBUGGER=0', # We can't use debugger in emulator as we're single-threaded and it uses IRQs on embedded to work
'DEFINES += -DESPR_HWVERSION=2',
'DEFINES += -DUSE_CALLFUNCTION_HACK', # required to handle calls properly
'DEFINES += -DBANGLEJS -DBANGLEJS_Q3 -DEMULATED -DEMSCRIPTEN',

View File

@ -34,7 +34,8 @@ info = {
'makefile' : [
'FLASH_4MB=1',
'ESP_FLASH_MAX=831488',
'FLASH_BAUD=460800'
'FLASH_BAUD=460800',
'USE_DEBUGGER=0', # We can't use debugger as RTOS needs jsiIdle to keep exiting
]
}
};

View File

@ -31,6 +31,7 @@ info = {
],
'makefile' : [
'DEFINES+=-DSAVE_ON_FLASH_MATH',
'USE_DEBUGGER=0', # We can't use debugger as RTOS needs jsiIdle to keep exiting
]
}
};

View File

@ -45,7 +45,7 @@ info = {
'DEFINES += -DMICROBIT', # enable microbit-specific stuff
'DEFINES+=-DNO_DUMP_HARDWARE_INITIALISATION', # don't dump hardware init - not used and saves a bunch of flash
'DEFINES+=-DUSE_TAB_COMPLETE',
# 'DEFINES+=-DUSE_DEBUGGER', # Removed due to firmware size issues
'USE_DEBUGGER=0', # Removed due to firmware size issues
'INCLUDE += -I$(ROOT)/libs/microbit',
'WRAPPERSOURCES += libs/microbit/jswrap_microbit.c',