Skip to content

Commit 5acf953

Browse files
committed
bring noflash build up to date with Bangle.js
1 parent 3ec4483 commit 5acf953

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

boards/BANGLEJS2_NOFLASH.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,23 @@
3838
'TERMINAL',
3939
'GRAPHICS',
4040
'CRYPTO','SHA256','SHA512',
41+
'AES_CCM',
4142
'LCD_MEMLCD',
42-
# 'TENSORFLOW',
43+
'TENSORFLOW',
44+
'SWDCON', # RTT console over SWD
4345
'JIT' # JIT compiler enabled
4446
],
4547
'makefile' : [
48+
'DEFINES+=-DESPR_OFFICIAL_BOARD', # Don't display the donations nag screen
4649
'DEFINES += -DESPR_HWVERSION=2 -DBANGLEJS -DBANGLEJS_Q3',
4750
# 'DEFINES += -DCONFIG_GPIO_AS_PINRESET', # Allow the reset pin to work
4851
'DEFINES += -DCONFIG_NFCT_PINS_AS_GPIOS', # Allow us to use NFC pins as GPIO
4952
#'DEFINES += -DESPR_REGOUT0_1_8V=1', # this increases power draw, so probably not correct!
5053
'DEFINES += -DESPR_LSE_ENABLE', # Ensure low speed external osc enabled
5154
'DEFINES += -DNRF_SDH_BLE_GATT_MAX_MTU_SIZE=131', # 23+x*27 rule as per https://devzone.nordicsemi.com/f/nordic-q-a/44825/ios-mtu-size-why-only-185-bytes
55+
'DEFINES += -DNRF_SDH_BLE_GAP_EVENT_LENGTH=6', # Needed to allow coded phy connections
5256
'DEFINES += -DCENTRAL_LINK_COUNT=2 -DNRF_SDH_BLE_CENTRAL_LINK_COUNT=2', # allow two outgoing connections at once
53-
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3660', # set RAM base to match MTU=131 + CENTRAL_LINK_COUNT=2
57+
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3b70', # set RAM base to match MTU=131 + CENTRAL_LINK_COUNT=2 + GAP_EVENT_LENGTH=6
5458
'DEFINES += -DESPR_DCDC_ENABLE=1', # Use DC/DC converter
5559
'ESPR_BLUETOOTH_ANCS=1', # Enable ANCS (Apple notifications) support
5660
'DEFINES += -DSPIFLASH_SLEEP_CMD', # SPI flash needs to be explicitly slept and woken up
@@ -67,6 +71,10 @@
6771
'DEFINES+=-DNO_DUMP_HARDWARE_INITIALISATION', # don't dump hardware init - not used and saves 1k of flash
6872
'INCLUDE += -I$(ROOT)/libs/banglejs -I$(ROOT)/libs/misc',
6973
'WRAPPERSOURCES += libs/banglejs/jswrap_bangle.c',
74+
'WRAPPERSOURCES += libs/graphics/jswrap_font_14.c',
75+
'WRAPPERSOURCES += libs/graphics/jswrap_font_17.c',
76+
'WRAPPERSOURCES += libs/graphics/jswrap_font_22.c',
77+
'WRAPPERSOURCES += libs/graphics/jswrap_font_28.c',
7078
'WRAPPERSOURCES += libs/graphics/jswrap_font_6x15.c',
7179
'WRAPPERSOURCES += libs/graphics/jswrap_font_12x20.c',
7280
'SOURCES += libs/misc/nmea.c',

0 commit comments

Comments
 (0)