Skip to content

Commit 543ac90

Browse files
mbrossardmathias-arm
authored andcommitted
Add lpc4367xpresso interface project
1 parent 0f1a603 commit 543ac90

File tree

5 files changed

+90
-0
lines changed

5 files changed

+90
-0
lines changed

projects.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ projects:
469469
- *module_if
470470
- *module_hic_lpc4322
471471
- records/board/lpc4337xpresso.yaml
472+
lpc4322_lpc4367xpresso_if:
473+
- *module_if
474+
- *module_hic_lpc4322
475+
- records/board/lpc4367xpresso.yaml
472476
lpc4322_lpc54114xpresso_if:
473477
- *module_if
474478
- *module_hic_lpc4322

records/board/lpc4367xpresso.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
common:
2+
sources:
3+
board:
4+
- source/board/lpc4367xpresso.c
5+
family:
6+
- source/family/nxp/lpc43xx/target_lpc4367.c

source/board/lpc4367xpresso.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* @file lpc4367xpresso.c
3+
* @brief board ID for the NXP LPC4367Xpresso board
4+
*
5+
* DAPLink Interface Firmware
6+
* Copyright (c) 2022, 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+
const board_info_t g_board_info = {
26+
.info_version = kBoardInfoVersion,
27+
.board_id = "4367",
28+
.family_id = kStub_HWReset_FamilyID,
29+
.daplink_url_name = "PRODINFOHTM",
30+
.daplink_drive_name = "LPC4367",
31+
.daplink_target_url = "https://os.mbed.com/platforms/LPCXpresso4337",
32+
.target_cfg = &target_device,
33+
.board_vendor = "NXP",
34+
.board_name = "LPC4367Xpresso",
35+
};
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* @file target.c
3+
* @brief Target information for the lpc4367
4+
*
5+
* DAPLink Interface Firmware
6+
* Copyright (c) 2022, 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_config.h"
23+
#include "daplink_debug.h"
24+
// The file flash_blob.c must only be included in target.c
25+
#include "flash_blob.c"
26+
27+
// target information
28+
target_cfg_t target_device = {
29+
.version = kTargetConfigVersion,
30+
.sectors_info = sectors_info,
31+
.sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)),
32+
.flash_regions[0].start = 0x1a000000,
33+
.flash_regions[0].end = 0x1a000000 + KB(512),
34+
.flash_regions[0].flags = kRegionIsDefault,
35+
.flash_regions[0].flash_algo = (program_target_t *) &flash,
36+
.flash_regions[1].start = 0x1b000000,
37+
.flash_regions[1].end = 0x1b000000 + KB(512),
38+
.flash_regions[1].flags = 0,
39+
.flash_regions[1].flash_algo = (program_target_t *) &flash,
40+
.ram_regions[0].start = 0x10000000,
41+
.ram_regions[0].end = 0x10000000 + KB(32),
42+
.target_vendor = "NXP",
43+
.target_part_number = "LPC4367JET100",
44+
};

test/info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def VENDOR_TO_FAMILY(x, y) : return (VENDOR_ID[x] <<8) | y
221221
( 0x2600, VENDOR_TO_FAMILY('Nordic', 2), 'k20dx_ep_agora_if', None, None ),
222222
( 0x2601, VENDOR_TO_FAMILY('NXP', 0), 'k20dx_ep_kairos_if', None, None ),
223223
( 0x4337, VENDOR_TO_FAMILY('Stub', 1), 'lpc4322_lpc4337xpresso_if', 'lpc4322_bl', 'LPCXpresso4337' ),
224+
( 0x4367, VENDOR_TO_FAMILY('Stub', 1), 'lpc4322_lpc4367xpresso_if', 'lpc4322_bl', 'LPCXpresso4367' ),
224225
( 0x4600, VENDOR_TO_FAMILY('Realtek', 1), 'lpc11u35_rtl8195am_if', None, 'REALTEK-RTL8195AM' ),
225226
( 0x5006, VENDOR_TO_FAMILY('Stub', 1), 'lpc11u35_musca_a_if', None, 'ARM_MUSCA_A1' ),
226227
( 0x5007, VENDOR_TO_FAMILY('Stub', 1), 'lpc11u35_musca_b_if', None, 'ARM_MUSCA_B1' ),

0 commit comments

Comments
 (0)