Skip to content

Commit b08662d

Browse files
committed
MIMXRT1050: Undo changes to make drag-n-drop work
Undo commits 3384e8c & 1755522. These changes were added to the original MXRT1050 code and cause failures during drag-n-drop operation Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 30d84e1 commit b08662d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/board/mimxrt1050_evk.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const board_info_t g_board_info = {
2626
.infoVersion = 0x0,
2727
.board_id = "0227",
2828
.family_id = kNXP_Mimxrt_FamilyID,
29-
.flags = kEnablePageErase,
3029
.daplink_url_name = "PRODINFOHTM",
3130
.daplink_drive_name = "RT1050-EVK",
3231
.daplink_target_url = "http://www.nxp.com/imxrt1050evk",

source/family/freescale/target_reset_mimxrt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ static void target_before_init_debug(void)
3131
// RESET pin to high state ensure a successfully access. If external debugger not
3232
// connected. It's not necessary for doing that.
3333
swd_set_target_reset(0);
34+
}
3435

36+
static void prerun_target_config(void)
37+
{
3538
// In some case the CPU will enter "cannot debug" state (low power, SWD pin mux changed, etc.).
3639
// Doing a hardware reset will clear those states (probably, depends on app). Also, if the
3740
// external flash's data is not a valid bootable image, DAPLink cannot attached to target. A
@@ -56,5 +59,6 @@ const target_family_descriptor_t g_nxp_mimxrt = {
5659
.default_reset_type = kSoftwareReset,
5760
.soft_reset_type = VECTRESET,
5861
.target_before_init_debug = target_before_init_debug,
62+
.prerun_target_config = prerun_target_config,
5963
.validate_bin_nvic = validate_bin_nvic,
6064
};

0 commit comments

Comments
 (0)