Skip to content

update micro:bit v2 #2639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions boards/MICROBIT2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

# TODO:
# Move to SDK17 with proper nRF52833 support
# - expand RAM to 128k
# Proper event handling for accelerometer/etc
# Functions for sound

Expand All @@ -39,11 +38,17 @@
# 'NET',
'GRAPHICS',
'NEOPIXEL',
'TENSORFLOW'
'TENSORFLOW',
'JIT'
],
'makefile' : [
'DEFINES += -DCONFIG_GPIO_AS_PINRESET', # Allow the reset pin to work
'DEFINES += -DNRF_BLE_GATT_MAX_MTU_SIZE=53 -DNRF_BLE_MAX_MTU_SIZE=53', # increase MTU from default of 23
'DEFINES += -DCENTRAL_LINK_COUNT=2 -DNRF_SDH_BLE_CENTRAL_LINK_COUNT=2', # allow two outgoing connections at once
'LDFLAGS += -Xlinker --defsym=LD_APP_RAM_BASE=0x3290', # set RAM base to match MTU=53 + CENTRAL_LINK_COUNT=2
'LDFLAGS += -nostartfiles', 'ASFLAGS += -D__STARTUP_CLEAR_BSS -D__START=main', # Save ~300b by not including CRT startup code
'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)
'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
'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
'DEFINES += -DMICROBIT', # enable microbit-specific stuff
'INCLUDE += -I$(ROOT)/libs/microbit',
Expand All @@ -59,9 +64,9 @@
'part' : "NRF52832", # actually 52833 but we're using SDK12 for this at the moment, and it doesn't support it
'family' : "NRF52",
'package' : "QFN48",
'ram' : 64,
'ram' : 128,
'flash' : 512,
'speed' : 64, # TODO: actually 128k
'speed' : 64,
'usart' : 1,
'spi' : 1,
'i2c' : 1,
Expand Down
Loading