Skip to content

Commit ea74da9

Browse files
License fixes, few other tweaks
1 parent 7e796e9 commit ea74da9

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/PeripheralPins.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
3535
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*
37+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3738
*/
3839

3940
#include "PeripheralPins.h"

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_NRF52840_DK/PinNames.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3434
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
3535
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36-
*
36+
*
37+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3738
*/
3839

3940
/* MBED TARGET LIST: NRF52840_DK */

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/device/cmsis_nvic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*******************************************************************************
44
* Copyright (c) 2016 ARM Limited. All rights reserved.
55
* All rights reserved.
6+
* SPDX-License-Identifier: BSD-3-Clause
67
*
78
* Redistribution and use in source and binary forms, with or without
89
* modification, are permitted provided that the following conditions are met:

targets/upload_method_cfg/NRF52840_DK.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
# 3. To use this device with PyOCD you need to install the J-Link software package on your system.
1212
# 4. As of Sep 2025, PyOCD can flash but cannot reliably debug. Getting 'cannot read register
1313
# ipsr because core #0 is not halted'.
14+
# 5. This upload method configuration reflects version 3 of the DK board, which uses an nRF5340 MCU and does
15+
# not have DAPLink firmware available, only J-Link OB. The older version would have had better support for OpenOCD,
16+
# Mbed, and PyOCD upload methods but does not seem to be available any more.
1417

1518

1619
# General config parameters
1720
# -------------------------------------------------------------
18-
set(UPLOAD_METHOD_DEFAULT MBED)
21+
set(UPLOAD_METHOD_DEFAULT JLINK)
1922

2023
# Config options for MBED
2124
# -------------------------------------------------------------

tools/python/install_bin_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def error(lines, code=-1):
7474
# Name matches, UID either matches or was not specified
7575
all_connected.append(_target)
7676

77-
if len(all_connected) == 0 and len(targets) == 1 and targets[0]['name'] is None:
78-
# Special case: if we only have one board connected to the system, then assume it's the one
79-
# we want even if we could not detect its name.
77+
if len(all_connected) == 0 and len(targets) == 1 and targets[0]['name'] is None and target_uid is None:
78+
# Special case: if we only have one board connected to the system and we aren't filtering by UID, then
79+
# assume it's the one we want even if we could not detect its name.
8080
all_connected.append(targets[0])
8181

8282
if len(all_connected) == 0:

0 commit comments

Comments
 (0)