Skip to content

Commit 52a4a7a

Browse files
committed
NXP: Fix board configuration for K32L3A6, K32W042 and KV58F
Add missing DAPLink and CMSIS-DAP 2.1 metadata
1 parent da51810 commit 52a4a7a

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

source/board/frdmk32l3a6.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
#include "target_family.h"
2424

2525
const board_info_t g_board_info = {
26-
.info_version = 0x0,
26+
.info_version = kBoardInfoVersion,
2727
.board_id = "0237",
2828
.family_id = kNXP_KinetisK32_FamilyID,
2929
.flags = kEnablePageErase,
3030
.daplink_url_name = "PRODINFOHTM",
3131
.daplink_drive_name = "K32L3A6",
3232
.daplink_target_url = "http://www.nxp.com/frdm-k32l3a6",
3333
.target_cfg = &target_device,
34+
.board_vendor = "NXP",
35+
.board_name = "FRDM-K32L3A6",
3436
};

source/board/frdmk32w042.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ const board_info_t g_board_info = {
3131
.daplink_drive_name = "K32W042",
3232
.daplink_target_url = "http://www.nxp.com/frdm-k32w042",
3333
.target_cfg = &target_device,
34+
.board_vendor = "NXP",
35+
.board_name = "FRDM-K32W042",
3436
};

source/board/twrkv58f.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@
2323
#include "target_family.h"
2424

2525
const board_info_t g_board_info = {
26-
.info_version = 0x0,
26+
.info_version = kBoardInfoVersion,
2727
.board_id = "0330",
2828
.family_id = kNXP_KinetisV_FamilyID,
2929
.flags = kEnablePageErase,
30+
.daplink_url_name = "PRODINFOHTM",
31+
.daplink_drive_name = "KV58F220M",
32+
.daplink_target_url = "http://www.nxp.com/twr-kv58f220m",
3033
.target_cfg = &target_device,
34+
.board_vendor = "NXP",
35+
.board_name = "TWR-KV58F220M",
3136
};

source/family/freescale/k32l3a6/target.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file target.c
3-
* @brief Target information for the k32w042
3+
* @brief Target information for the k32l3a6
44
*
55
* DAPLink Interface Firmware
66
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
@@ -26,6 +26,7 @@
2626

2727
// target information
2828
target_cfg_t target_device = {
29+
.version = kTargetConfigVersion,
2930
.sectors_info = sectors_info,
3031
.sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)),
3132
.flash_regions[0].start = 0,
@@ -38,4 +39,6 @@ target_cfg_t target_device = {
3839
.flash_regions[1].flash_algo = (program_target_t *) &secondary_flash,
3940
.ram_regions[0].start = 0x20000000, // M4 DTCM
4041
.ram_regions[0].end = 0x20030000,
42+
.target_vendor = "NXP",
43+
.target_part_number = "K32L3A60VPJ1A",
4144
};

source/family/freescale/kv58f/target.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file target.c
3-
* @brief Target information for the k64f
3+
* @brief Target information for the KV58F
44
*
55
* DAPLink Interface Firmware
66
* Copyright (c) 2017-2019, ARM Limited, All Rights Reserved
@@ -26,12 +26,15 @@
2626

2727
// target information
2828
target_cfg_t target_device = {
29+
.version = kTargetConfigVersion,
2930
.sectors_info = sectors_info,
3031
.sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)),
3132
.flash_regions[0].start = 0x10000000,
3233
.flash_regions[0].end = 0x10100000,
3334
.flash_regions[0].flags = kRegionIsDefault,
34-
.flash_regions[0].flash_algo = (program_target_t *) &flash,
35+
.flash_regions[0].flash_algo = (program_target_t *) &flash,
3536
.ram_regions[0].start = 0x20000000,
36-
.ram_regions[0].end = 0x2000,
37+
.ram_regions[0].end = 0x20002000,
38+
.target_vendor = "NXP",
39+
.target_part_number = "MKV58F1M0VLL24",
3740
};

0 commit comments

Comments
 (0)