Skip to content

Commit f3ae765

Browse files
committed
Merge branch 'release/v3.5.0'
2 parents ecae218 + de9803d commit f3ae765

File tree

6 files changed

+47
-10
lines changed

6 files changed

+47
-10
lines changed

boards/sdt52832b.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"build": {
3+
"cpu": "cortex-m4",
4+
"extra_flags": "-DARDUINO_NRF52_DK",
5+
"f_cpu": "64000000L",
6+
"ldscript": "nrf52_xxaa.ld",
7+
"mcu": "nrf52832"
8+
},
9+
"connectivity": [
10+
"bluetooth"
11+
],
12+
"debug": {
13+
"jlink_device": "nRF52832_xxAA",
14+
"svd_path": "nrf52.svd"
15+
},
16+
"frameworks": [
17+
"mbed"
18+
],
19+
"name": "SDT52832B",
20+
"upload": {
21+
"maximum_ram_size": 65536,
22+
"maximum_size": 524288,
23+
"protocol": "mbed",
24+
"protocols": [
25+
"jlink",
26+
"nrfjprog",
27+
"stlink",
28+
"blackmagic",
29+
"cmsis-dap",
30+
"mbed"
31+
]
32+
},
33+
"url": "https://os.mbed.com/platforms/SDT52832B/",
34+
"vendor": "Sigma Delta Technologies"
35+
}

builder/frameworks/arduino

Submodule arduino updated 1 file

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
env = DefaultEnvironment()
2424
platform = env.PioPlatform()
2525
board = env.BoardConfig()
26-
variant = board.get("build.variant")
26+
variant = board.get("build.variant", "")
2727

2828
use_adafruit = board.get("build.bsp.name", "nrf5") == "adafruit"
2929
if use_adafruit:

examples/arduino-blink/platformio.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,3 @@ platform = nordicnrf52
3333
framework = arduino
3434
board = stct_nrf52_minidev
3535
build_flags = -DNRF52_S132
36-
37-
[env:adafruit_feather_nrf52832]
38-
platform = nordicnrf52
39-
framework = arduino
40-
board = adafruit_feather_nrf52832

platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/platformio/platform-nordicnrf52.git"
1414
},
15-
"version": "3.4.0",
15+
"version": "3.5.0",
1616
"packageRepositories": [
1717
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1818
"http://dl.platformio.org/packages/manifest.json"
@@ -45,7 +45,7 @@
4545
"framework-arduinonordicnrf5": {
4646
"type": "framework",
4747
"optional": true,
48-
"version": "~1.501.0"
48+
"version": "~1.600.0"
4949
},
5050
"tool-sreccat": {
5151
"version": "~1.164.0"

platform.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,23 @@ def is_embedded(self):
2323
return True
2424

2525
def configure_default_packages(self, variables, targets):
26+
upload_protocol = ""
2627
board = variables.get("board")
27-
2828
if board:
29+
upload_protocol = variables.get(
30+
"upload_protocol",
31+
self.board_config(board).get("upload.protocol", ""))
32+
2933
if self.board_config(board).get("build.bsp.name",
3034
"nrf5") == "adafruit":
3135
self.frameworks['arduino'][
3236
'package'] = "framework-arduinoadafruitnrf52"
3337

3438
if set(["bootloader", "erase"]) & set(targets):
3539
self.packages["tool-nrfjprog"]["optional"] = False
40+
elif (upload_protocol and upload_protocol != "nrfjprog"
41+
and "tool-nrfjprog" in self.packages):
42+
del self.packages["tool-nrfjprog"]
3643

3744
# configure J-LINK tool
3845
jlink_conds = [

0 commit comments

Comments
 (0)