Skip to content

Commit a35b1e3

Browse files
committed
lpc55xx_hic: Add test project MCU-LINK + nRF52840-DK
1 parent be2b4f7 commit a35b1e3

File tree

5 files changed

+57
-0
lines changed

5 files changed

+57
-0
lines changed

projects.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,3 +590,11 @@ projects:
590590
- *module_if
591591
- *module_hic_stm32f103xb
592592
- records/board/ublox_evk_odin_w2.yaml
593+
594+
595+
# Test projects
596+
lpc55s69_nrf52840dk_test_if:
597+
- *module_if
598+
- *module_hic_lpc55s69
599+
- records/board/lpc55s69_nrf52840dk.yaml
600+
- records/board/mcu_link.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
common:
2+
macros:
3+
- SWO_UART=1
4+
sources:
5+
board:
6+
- source/board/lpc55s69_nrf52840dk.c
7+
family:
8+
- source/family/nordic/nrf52/target.c
9+
- source/family/nordic/target_reset_nrf52.c

source/board/lpc55s69_nrf52840dk.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* @file lpc55S69_nrf52840dk.c
3+
* @brief board file for test project MCU-LINK + nRF52840-DK
4+
*
5+
* DAPLink Interface Firmware
6+
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
7+
* SPDX-License-Identifier: Apache-2.0
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10+
* not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
*/
21+
22+
#include "target_family.h"
23+
#include "target_board.h"
24+
25+
extern target_cfg_t target_device_nrf52840;
26+
27+
const board_info_t g_board_info = {
28+
.info_version = kBoardInfoVersion,
29+
.board_id = "1102",
30+
.family_id = kNordic_Nrf52_FamilyID,
31+
.flags = kEnablePageErase,
32+
.target_cfg = &target_device_nrf52840,
33+
.board_vendor = "Nordic Semiconductor",
34+
.board_name = "nRF52840-DK",
35+
};

test/info.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y
235235
( 0x0000, VENDOR_TO_FAMILY('Stub', 1), 'nrf52820_if', None, None ),
236236
( 0x0000, VENDOR_TO_FAMILY('Stub', 1), 'sam3u2c_if', None, None ),
237237
( 0x0000, VENDOR_TO_FAMILY('Stub', 1), 'stm32f103xb_if', None, None ),
238+
239+
# Test projects
240+
( 0x1102, VENDOR_TO_FAMILY('Nordic', 2), 'lpc55s69_nrf52840dk_test_if', 'lpc55s69_bl', 'Nordic-nRF52840-DK' ),
238241
]
239242

240243
# Add new HICs here

tools/progen_compile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def get_core_count():
9494
# musca projects are too large to fit when compiled with gcc. LTO should fix that but it does not work (yet)
9595
if 'gcc' in toolchain and args.release:
9696
project_list = list(filter(lambda p: "musca" not in p, project_list))
97+
# remove all test projects from list
98+
project_list = list(filter(lambda p: not p.endswith("test_if"), project_list))
9799

98100
logging_level = logging.DEBUG if args.verbosity >= 2 else (logging.INFO if args.verbosity >= 1 else logging.WARNING)
99101
logging.basicConfig(format="%(asctime)s %(name)020s %(levelname)s\t%(message)s", level=logging_level)

0 commit comments

Comments
 (0)