Skip to content

Commit

Permalink
NXP: Fix board configuration for K32L3A6, K32W042 and KV58F
Browse files Browse the repository at this point in the history
Add missing DAPLink and CMSIS-DAP 2.1 metadata
  • Loading branch information
mbrossard committed Aug 5, 2023
1 parent da51810 commit 52a4a7a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
4 changes: 3 additions & 1 deletion source/board/frdmk32l3a6.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
#include "target_family.h"

const board_info_t g_board_info = {
.info_version = 0x0,
.info_version = kBoardInfoVersion,
.board_id = "0237",
.family_id = kNXP_KinetisK32_FamilyID,
.flags = kEnablePageErase,
.daplink_url_name = "PRODINFOHTM",
.daplink_drive_name = "K32L3A6",
.daplink_target_url = "http://www.nxp.com/frdm-k32l3a6",
.target_cfg = &target_device,
.board_vendor = "NXP",
.board_name = "FRDM-K32L3A6",
};
2 changes: 2 additions & 0 deletions source/board/frdmk32w042.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ const board_info_t g_board_info = {
.daplink_drive_name = "K32W042",
.daplink_target_url = "http://www.nxp.com/frdm-k32w042",
.target_cfg = &target_device,
.board_vendor = "NXP",
.board_name = "FRDM-K32W042",
};
7 changes: 6 additions & 1 deletion source/board/twrkv58f.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
#include "target_family.h"

const board_info_t g_board_info = {
.info_version = 0x0,
.info_version = kBoardInfoVersion,
.board_id = "0330",
.family_id = kNXP_KinetisV_FamilyID,
.flags = kEnablePageErase,
.daplink_url_name = "PRODINFOHTM",
.daplink_drive_name = "KV58F220M",
.daplink_target_url = "http://www.nxp.com/twr-kv58f220m",
.target_cfg = &target_device,
.board_vendor = "NXP",
.board_name = "TWR-KV58F220M",
};
5 changes: 4 additions & 1 deletion source/family/freescale/k32l3a6/target.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file target.c
* @brief Target information for the k32w042
* @brief Target information for the k32l3a6
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
Expand All @@ -26,6 +26,7 @@

// target information
target_cfg_t target_device = {
.version = kTargetConfigVersion,
.sectors_info = sectors_info,
.sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)),
.flash_regions[0].start = 0,
Expand All @@ -38,4 +39,6 @@ target_cfg_t target_device = {
.flash_regions[1].flash_algo = (program_target_t *) &secondary_flash,
.ram_regions[0].start = 0x20000000, // M4 DTCM
.ram_regions[0].end = 0x20030000,
.target_vendor = "NXP",
.target_part_number = "K32L3A60VPJ1A",
};
9 changes: 6 additions & 3 deletions source/family/freescale/kv58f/target.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file target.c
* @brief Target information for the k64f
* @brief Target information for the KV58F
*
* DAPLink Interface Firmware
* Copyright (c) 2017-2019, ARM Limited, All Rights Reserved
Expand All @@ -26,12 +26,15 @@

// target information
target_cfg_t target_device = {
.version = kTargetConfigVersion,
.sectors_info = sectors_info,
.sector_info_length = (sizeof(sectors_info))/(sizeof(sector_info_t)),
.flash_regions[0].start = 0x10000000,
.flash_regions[0].end = 0x10100000,
.flash_regions[0].flags = kRegionIsDefault,
.flash_regions[0].flash_algo = (program_target_t *) &flash,
.flash_regions[0].flash_algo = (program_target_t *) &flash,
.ram_regions[0].start = 0x20000000,
.ram_regions[0].end = 0x2000,
.ram_regions[0].end = 0x20002000,
.target_vendor = "NXP",
.target_part_number = "MKV58F1M0VLL24",
};

0 comments on commit 52a4a7a

Please sign in to comment.