I have a custom board with MIMXRT1042XJM5B. The board has 256 Mbit RAM and 2 x 8 MBit NOR Flash chips, connected to FlexSPI A and FlexSPI B. My intent is to use the two Flash chips in parallel mode.
The problem is that I cannot connect to the boards via JTAG. Here's the output of JLink:
Device "MIMXRT1042XXX5B" selected.
Connecting to target via JTAG
Device "MIMXRT1042XXX5B" selected.
Connecting to target via JTAG
InitTarget() start
Failed to power up DAP.
Executing Connect Under Reset
Failed to power up DAP.
Executing Connect Under Reset
_TargetHalt: CPU did not halt.
_TargetHalt: CPU did not halt.
_TargetHalt: CPU did not halt.
InitTarget() end - Took 807ms
InitTarget() start
Failed to power up DAP.
Executing Connect Under Reset
Failed to power up DAP.
Executing Connect Under Reset
_TargetHalt: CPU did not halt.
_TargetHalt: CPU did not halt.
_TargetHalt: CPU did not halt.
InitTarget() end - Took 805ms
Cannot connect to target.
J-Link>
Connecting via SWD works:
J-Link>SelectInterface SWD
Selecting SWD as current target interface.
J-Link>connect
Device "MIMXRT1042XXX5B" selected.
Connecting to target via SWD
InitTarget() start
InitTarget() end - Took 504us
Found SW-DP with ID 0x0BD11477
DPIDR: 0x0BD11477
CoreSight SoC-400 or earlier
AP map detection skipped. Manually configured AP map found.
AP[0]: AHB-AP (IDR: Not set)
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FD000
CPUID register: 0x411FC271. Implementer code: 0x41 (ARM)
Cache: L1 I/D-cache present
Found Cortex-M7 r1p1, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FD000
[0][0]: E00FE000 CID B105100D PID 000BB4C8 ROM Table
ROMTbl[1] @ E00FE000
[1][0]: E00FF000 CID B105100D PID 000BB4C7 ROM Table
ROMTbl[2] @ E00FF000
[2][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
[2][1]: E0001000 CID B105E00D PID 000BB002 DWT
[2][2]: E0002000 CID B105E00D PID 000BB00E FPB-M7
[2][3]: E0000000 CID B105E00D PID 000BB001 ITM
[1][1]: E0041000 CID B105900D PID 001BB975 ETM-M7
[1][2]: E0042000 CID B105900D PID 004BB906 CTI
[0][1]: E0040000 CID B105900D PID 000BB9A9 TPIU-M7
[0][2]: E0043000 CID B105F00D PID 001BB101 TSG
I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
Memory zones:
Zone: "Default" Description: Default access mode
Cortex-M7 identified.
I can also connect using NXP MCU Boot Utility, the text in the Device Status window is:
--------MCU Device ROM Info--------
OCOTP->UUID[31:00] = 0x615cfaa4
OCOTP->UUID[63:32] = 0x2728c9d7
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------MCU device eFusemap--------
(0x450) SYSBT_CFG0 = 0x0
(0x460) SYSBT_CFG1 = 0x8
(0x470) SYSBT_CFG2 = 0x0
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = 0x200003
FlexRAM configuration is from eFuse
OCOTP->MISC_CONF0[31:00] = 0x40
FlexRAM Partion =0000 - 128KB ITCM, 128KB DTCM, 256KB OCRAM
--------LPSPI NOR/EEPROM memory---
Page Size = 256 Bytes
Sector Size = 4.0 KB
Total Size = 16.0 MB
--------MCU Device ROM Info--------
OCOTP->UUID[31:00] = 0x615cfaa4
OCOTP->UUID[63:32] = 0x2728c9d7
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------MCU device eFusemap--------
(0x450) SYSBT_CFG0 = 0x0
(0x460) SYSBT_CFG1 = 0x8
(0x470) SYSBT_CFG2 = 0x0
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = 0x200003
FlexRAM configuration is from eFuse
OCOTP->MISC_CONF0[31:00] = 0x40
FlexRAM Partion =0000 - 128KB ITCM, 128KB DTCM, 256KB OCRAM
--------MCU Device ROM Info--------
OCOTP->UUID[31:00] = 0x615cfaa4
OCOTP->UUID[63:32] = 0x2728c9d7
SRC->SBMR1 = 0x0
SRC->SBMR2 = 0x1000009
BMOD[1:0] = 2'b01 (Serial Downloader)
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.1.0
Target Version = T1.0.0
--------MCU device eFusemap--------
(0x450) SYSBT_CFG0 = 0x0
(0x460) SYSBT_CFG1 = 0x8
(0x470) SYSBT_CFG2 = 0x0
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = 0x200003
FlexRAM configuration is from eFuse
OCOTP->MISC_CONF0[31:00] = 0x40
FlexRAM Partion =0000 - 128KB ITCM, 128KB DTCM, 256KB OCRAM
--------FlexSPI NOR memory--------
Page Size = --------
Sector Size = --------
Block Size = --------
The last three lines makeme think there's something wrong with my flash chips.
Where should I be looking at?
Thanks
已解决! 转到解答。
Hello
I hope you are well.
To use JTAG it is needed to burn some fuses. This means that if JTAG is accessible you cannot longer use SWD.
Please refer to this figure:
Best regards,
Omar