File tree Expand file tree Collapse file tree 6 files changed +47
-10
lines changed Expand file tree Collapse file tree 6 files changed +47
-10
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 23
23
env = DefaultEnvironment ()
24
24
platform = env .PioPlatform ()
25
25
board = env .BoardConfig ()
26
- variant = board .get ("build.variant" )
26
+ variant = board .get ("build.variant" , "" )
27
27
28
28
use_adafruit = board .get ("build.bsp.name" , "nrf5" ) == "adafruit"
29
29
if use_adafruit :
Original file line number Diff line number Diff line change @@ -33,8 +33,3 @@ platform = nordicnrf52
33
33
framework = arduino
34
34
board = stct_nrf52_minidev
35
35
build_flags = -DNRF52_S132
36
-
37
- [env:adafruit_feather_nrf52832]
38
- platform = nordicnrf52
39
- framework = arduino
40
- board = adafruit_feather_nrf52832
Original file line number Diff line number Diff line change 12
12
"type" : " git" ,
13
13
"url" : " https://github.com/platformio/platform-nordicnrf52.git"
14
14
},
15
- "version" : " 3.4 .0" ,
15
+ "version" : " 3.5 .0" ,
16
16
"packageRepositories" : [
17
17
" https://dl.bintray.com/platformio/dl-packages/manifest.json" ,
18
18
" http://dl.platformio.org/packages/manifest.json"
45
45
"framework-arduinonordicnrf5" : {
46
46
"type" : " framework" ,
47
47
"optional" : true ,
48
- "version" : " ~1.501 .0"
48
+ "version" : " ~1.600 .0"
49
49
},
50
50
"tool-sreccat" : {
51
51
"version" : " ~1.164.0"
Original file line number Diff line number Diff line change @@ -23,16 +23,23 @@ def is_embedded(self):
23
23
return True
24
24
25
25
def configure_default_packages (self , variables , targets ):
26
+ upload_protocol = ""
26
27
board = variables .get ("board" )
27
-
28
28
if board :
29
+ upload_protocol = variables .get (
30
+ "upload_protocol" ,
31
+ self .board_config (board ).get ("upload.protocol" , "" ))
32
+
29
33
if self .board_config (board ).get ("build.bsp.name" ,
30
34
"nrf5" ) == "adafruit" :
31
35
self .frameworks ['arduino' ][
32
36
'package' ] = "framework-arduinoadafruitnrf52"
33
37
34
38
if set (["bootloader" , "erase" ]) & set (targets ):
35
39
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" ]
36
43
37
44
# configure J-LINK tool
38
45
jlink_conds = [
You can’t perform that action at this time.
0 commit comments