LinkServer problems when debugging

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LinkServer problems when debugging

441件の閲覧回数
tbonkers
Contributor III

I can upload and erase flash using a custom LinkServer algorithm, however I cannot debug. Starting gdbserver works, however when trying to connect I get a myriad of errors:

INFO: [stub (3333)] Pb: (100) Finished writing Flash successfully.
INFO: [stub (3333)] Wc: ============= SCRIPT: RT1160_reset_M7.scp =============
Wc: This probe = 1
Wc: This TAP = 0
Wc: This core = 0
Wc: SYSTEM Reset
Wc: Wirespeed = 10000000 Hz
Wc: Error: Wire Ack Fault - target connected?
Wc: DpID = 6BA02477
INFO: [stub (3333)] Wc: TAP 0: 6BA02477 Core 0: M7  APID: 84770001 ROM Table: E00FD003*
Wc: TAP 0: 6BA02477 AP   1:     APID: 24770011 ROM Table: E00FF003
Wc: TAP 0: 6BA02477 AP   2:     APID: 54770002 ROM Table: 00000002
Wc: APID = 0x84770001
Wc: View cores on the DAP AP
Wc: TAP 0: 6BA02477 Core 0: M7  APID: 84770001 ROM Table: E00FD003*
Wc: R15 = 0x00223104
Wc: Vector table SP/PC is the reset context.
Wc: PC = 0x3000EF1D
Wc: SP = 0x8021C450
Wc: XPSR = 0x01000000
Wc: VTOR = 0x30002000
Wc: Set DEMCR = 0x010007F1
Wc: ============= END SCRIPT ==============================
INFO: [stub (3333)] Nc: Using memory from core 0 after searching for a good core
INFO: [stub (3333)] Pc: ( 30) Emulator Connected
INFO: [stub (3333)] Pc: ( 40) Debug Halt
INFO: [stub (3333)] Pc: ( 50) CPU ID
INFO: [stub (3333)] Nc: debug interface type      = CoreSight DP (DAP DP ID 6BA02477) over SWD TAP 0
Nc: processor type            = Cortex-M7 (CPU ID 00000C27) on DAP AP 0
Nc: number of h/w breakpoints = 8
Nc: number of flash patches   = 0
Nc: number of h/w watchpoints = 4
INFO: [stub (3333)] Wc: ============= SCRIPT: RT1160_reset_M7.scp =============
Wc: This probe = 1
Wc: This TAP = 0
Wc: This core = 0
Wc: SYSTEM Reset
Wc: Wirespeed = 10000000 Hz
Wc: DpID = 6BA02477
Wc: TAP 0: 6BA02477 Core 0: M7  APID: 84770001 ROM Table: E00FD003*
Wc: TAP 0: 6BA02477 AP   1:     APID: 24770011 ROM Table: E00FF003
Wc: TAP 0: 6BA02477 AP   2:     APID: 54770002 ROM Table: 00000002
Wc: APID = 0x84770001
INFO: [stub (3333)] Wc: View cores on the DAP AP
Wc: TAP 0: 6BA02477 Core 0: M7  APID: 84770001 ROM Table: E00FD003*
Wc: R15 = 0x00223104
Wc: Vector table SP/PC is the reset context.
Wc: PC = 0xFFFFFFFF
Wc: SP = 0xFFFFFFFF
Wc: XPSR = 0x01000000
Wc: VTOR = 0x30002000
Wc: Set DEMCR = 0x010007F1
Wc: ============= END SCRIPT ==============================
INFO: [stub (3333)] Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
INFO: [stub (3333)] Xw:
INFO: [stub (3333)] Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
INFO: [stub (3333)] Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
INFO: [stub (3333)] Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
INFO: [stub (3333)] Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access

The second reset script invocation seems to be where the problem occurs. Strangely enough, when I start LinkServer gdbserver with --attach option, I can connect with the debugger.

The issue might have something to do with the FlexSPI control block - when I'm using Octal DDR mode, I can connect and debug; when I'm using XSPI I can't.

0 件の賞賛
返信
4 返答(返信)

405件の閲覧回数
tbonkers
Contributor III
I believe the problem might stem from the .cfx driver applying the wrong configuration option to the FlexSPI. I'm using IS25WX256 in Extended SPI mode. The LinkServer flash driver applies CONFIG_OPTION1 0xC0603001.

I tried using different CONFIG_OPTION1 in the flash driver (0xC0000001), but the problem with debug not working persists. When using MCUXpresso Secure Provisioning Tool, I can read/write flash using config option 0xC0000001.

Is there a way to get the currently applied config option from the FlexSPI ROM API?
0 件の賞賛
返信

341件の閲覧回数
carlos_o
NXP TechSupport
NXP TechSupport

Hi @tbonkers 

Thanks for your post.

Could you please provide the chip you are using?

Is it a custom board? if not please provide which one you are using.

Could you please provide the reason why you need to use a custom script to use LinkServer?

 

0 件の賞賛
返信

322件の閲覧回数
tbonkers
Contributor III
Hi,
I am using a custom board with MIMXRT1166CVM5A and octal flash IS25WX256.
I've had to use a custom algorithm for LinkServer as the reset pin of the flash does not match the reset pin used by MIMXRT1160-EVK.
0 件の賞賛
返信

304件の閲覧回数
carlos_o
NXP TechSupport
NXP TechSupport

Hi @tbonkers 

This are some guide or information related to scripting with LinkServer

Solved: LinkServer automation with python - NXP Community

LinkServer Scripting, and how to Recover MCUs with a Script | MCU on Eclipse

I also recommend you review the script provided with the LinkServer at yourlinkserverlocation/binaries/scripts/

BR

0 件の賞賛
返信