more firmware size tweaks

This commit is contained in:
Gordon Williams 2024-09-20 10:13:36 +01:00
parent 3b20382afc
commit c2e013368c
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ info = {
'FLASH_4MB=1',
'ESP_FLASH_MAX=831488',
'FLASH_BAUD=460800',
'BLACKLIST=boards/ESP8266.blocklist', # force some stuff to be removed to save space
'USE_DEBUGGER=0', # We can't use debugger as RTOS needs jsiIdle to keep exiting
]
}

View File

@ -46,8 +46,9 @@ info = {
'DEFINES+=-DUSE_USB_OTG_FS=1 -DPICO -DPICO_1V3',
'DEFINES+=-DPIN_NAMES_DIRECT=1', # Package skips out some pins, so we can't assume each port starts from 0
'DEFINES += -DESPR_USE_STEPPER_TIMER=1', # Build in the code for stepping using the timer
'DEFINES += -DSAVE_ON_FLASH_MATH',
'DEFINES += -DESPR_LIMIT_DATE_RANGE', # not enough code memory left for the full range of Date()
'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
'DEFINES += -DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
'STLIB=STM32F401xE',
'PRECOMPILED_OBJS+=$(ROOT)/targetlibs/stm32f4/lib/startup_stm32f401xx.o'
]