Skip to content

Commit 6ceb627

Browse files
committed
mimxrt: revert changes to custom validate_bin_nvic()
1 parent 0f57f81 commit 6ceb627

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

source/family/freescale/target_reset_mimxrt.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "swd_host.h"
2323
#include "info.h"
24-
#include "target_config.h"
2524
#include "target_family.h"
2625
#include "cmsis_os2.h"
2726

@@ -49,14 +48,10 @@ static void prerun_target_config(void)
4948
#ifdef DAPLINK_MIMXRT_TARGET
5049
static uint8_t validate_bin_nvic(const uint8_t *buf)
5150
{
52-
if(buf[0] == 'F' && buf[1] == 'C' && buf[2] == 'F' && buf[3] == 'B')
53-
{
54-
target_device.flash_regions[0].start = 0x30000400;
55-
return 1;
56-
}
57-
else if(buf[0] == 0xFF && buf[1] == 0xFF && buf[2] == 0xFF && buf[3] == 0xFF)
58-
{
59-
target_device.flash_regions[0].start = 0x30000000;
51+
// Flash Configuration Block
52+
// https://www.nxp.com/docs/en/nxp/application-notes/AN12238.pdf
53+
if ((buf[0] == 'F' && buf[1] == 'C' && buf[2] == 'F' && buf[3] == 'B')) {
54+
// FlexSPI Configuration Block
6055
return 1;
6156
}
6257

0 commit comments

Comments
 (0)