Skip to content

Commit

Permalink
lpc55xx_hic: Add test project MCU-LINK + nRF52840-DK
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Jan 13, 2022
1 parent be2b4f7 commit a35b1e3
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -590,3 +590,11 @@ projects:
- *module_if
- *module_hic_stm32f103xb
- records/board/ublox_evk_odin_w2.yaml


# Test projects
lpc55s69_nrf52840dk_test_if:
- *module_if
- *module_hic_lpc55s69
- records/board/lpc55s69_nrf52840dk.yaml
- records/board/mcu_link.yaml
9 changes: 9 additions & 0 deletions records/board/lpc55s69_nrf52840dk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
common:
macros:
- SWO_UART=1
sources:
board:
- source/board/lpc55s69_nrf52840dk.c
family:
- source/family/nordic/nrf52/target.c
- source/family/nordic/target_reset_nrf52.c
35 changes: 35 additions & 0 deletions source/board/lpc55s69_nrf52840dk.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* @file lpc55S69_nrf52840dk.c
* @brief board file for test project MCU-LINK + nRF52840-DK
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "target_family.h"
#include "target_board.h"

extern target_cfg_t target_device_nrf52840;

const board_info_t g_board_info = {
.info_version = kBoardInfoVersion,
.board_id = "1102",
.family_id = kNordic_Nrf52_FamilyID,
.flags = kEnablePageErase,
.target_cfg = &target_device_nrf52840,
.board_vendor = "Nordic Semiconductor",
.board_name = "nRF52840-DK",
};
3 changes: 3 additions & 0 deletions test/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y
( 0x0000, VENDOR_TO_FAMILY('Stub', 1), 'nrf52820_if', None, None ),
( 0x0000, VENDOR_TO_FAMILY('Stub', 1), 'sam3u2c_if', None, None ),
( 0x0000, VENDOR_TO_FAMILY('Stub', 1), 'stm32f103xb_if', None, None ),

# Test projects
( 0x1102, VENDOR_TO_FAMILY('Nordic', 2), 'lpc55s69_nrf52840dk_test_if', 'lpc55s69_bl', 'Nordic-nRF52840-DK' ),
]

# Add new HICs here
Expand Down
2 changes: 2 additions & 0 deletions tools/progen_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def get_core_count():
# musca projects are too large to fit when compiled with gcc. LTO should fix that but it does not work (yet)
if 'gcc' in toolchain and args.release:
project_list = list(filter(lambda p: "musca" not in p, project_list))
# remove all test projects from list
project_list = list(filter(lambda p: not p.endswith("test_if"), project_list))

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

0 comments on commit a35b1e3

Please sign in to comment.