File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include "swd_host.h"
23
23
#include "info.h"
24
- #include "target_config.h"
25
24
#include "target_family.h"
26
25
#include "cmsis_os2.h"
27
26
@@ -49,14 +48,10 @@ static void prerun_target_config(void)
49
48
#ifdef DAPLINK_MIMXRT_TARGET
50
49
static uint8_t validate_bin_nvic (const uint8_t * buf )
51
50
{
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
60
55
return 1 ;
61
56
}
62
57
You can’t perform that action at this time.
0 commit comments