You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boards/MICROBIT2.py
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,6 @@
17
17
18
18
# TODO:
19
19
# Move to SDK17 with proper nRF52833 support
20
-
# - expand RAM to 128k
21
20
# Proper event handling for accelerometer/etc
22
21
# Functions for sound
23
22
@@ -39,11 +38,17 @@
39
38
# 'NET',
40
39
'GRAPHICS',
41
40
'NEOPIXEL',
42
-
'TENSORFLOW'
41
+
'TENSORFLOW',
42
+
'JIT'
43
43
],
44
44
'makefile' : [
45
45
'DEFINES += -DCONFIG_GPIO_AS_PINRESET', # Allow the reset pin to work
46
+
'DEFINES += -DNRF_BLE_GATT_MAX_MTU_SIZE=53 -DNRF_BLE_MAX_MTU_SIZE=53', # increase MTU from default of 23
47
+
'DEFINES += -DCENTRAL_LINK_COUNT=2 -DNRF_SDH_BLE_CENTRAL_LINK_COUNT=2', # allow two outgoing connections at once
48
+
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3290', # set RAM base to match MTU=53 + CENTRAL_LINK_COUNT=2
49
+
'LDFLAGS += -nostartfiles', 'ASFLAGS += -D__STARTUP_CLEAR_BSS -D__START=main', # Save ~300b by not including CRT startup code
46
50
'DEFINES += -DNEOPIXEL_SCK_PIN=27 -DNEOPIXEL_LRCK_PIN=18', # SCK pin needs defining as something unused for neopixel (HW errata means they can't be disabled)
51
+
'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
47
52
'DEFINES += -DGPIO_COUNT=2 -DP1_PIN_NUM=16 -DNRF_P1_BASE=0x50000300UL "-DNRF_P1=((NRF_GPIO_Type*)NRF_P1_BASE)"', # Hack for 52833 on SDK12
0 commit comments