Hi,
I'm trying to debug FreeRTOS with the tickless feature enabled (i.e. uses WFI) on a iMX RT1050 CPU.
If the CPU is executing the WFI instruction J-Link fails to connect with the following error:
"ERROR: Could not find core in Coresight setup"
"Could not connect to target"
There is no problem outside of WFI. The full log follows below.
My question is: how can I flash and debug a software that uses the WFI instruction?
Thanks
Petr
Display All
I'm trying to debug FreeRTOS with the tickless feature enabled (i.e. uses WFI) on a iMX RT1050 CPU.
If the CPU is executing the WFI instruction J-Link fails to connect with the following error:
"ERROR: Could not find core in Coresight setup"
"Could not connect to target"
There is no problem outside of WFI. The full log follows below.
My question is: how can I flash and debug a software that uses the WFI instruction?
Thanks
Petr
Source Code
- Could not connect to target.
- SEGGER J-Link GDB Server V6.34b Command Line Version
- JLinkARM.dll V6.34b (DLL compiled Aug 13 2018 16:38:47)
- Command line: -nosilent -swoport 2332 -select USB=50121431 -telnetport
- 2333 -singlerun -endian little -ir -speed auto -port 2331 -vd -device
- MIMXRT1051xxxxB -if SWD -halt -reportuseraction
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 2331
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: yes
- Generate logfile: off
- Verify download: on
- Init regs on start: on
- Silent mode: off
- Single run mode: on
- Target connection timeout: 0 ms
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: MIMXRT1051xxxxB
- Target interface: SWD
- Target interface speed: auto
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Device "MIMXRT1051XXXXB" selected.
- Firmware: J-Link V10 compiled Jul 23 2018 09:53:14
- Hardware: V10.10
- S/N: 50121431
- Feature(s): GDB
- Checking target voltage...
- Target voltage: 3.24 V
- Listening on TCP/IP port 2331
- Connecting to target...Found SW-DP with ID 0x0BD11477
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x04770041)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Skipped. Invalid implementer code read from CPUIDVal[31:24] = 0x00
- Found SW-DP with ID 0x0BD11477
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x04770041)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xE00FD000
- CPUID register: 0x411FC271. Implementer code: 0x41 (ARM)
- Found Cortex-M7 r1p1, Little endian.
- FPUnit: 8 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ E00FD000
- ROMTbl[0][0]: E00FE000, CID: B105100D, PID: 000BB4C8 ROM Table
- ROMTbl[1] @ E00FE000
- ROMTbl[1][0]: E00FF000, CID: B105100D, PID: 000BB4C7 ROM Table
- ROMTbl[2] @ E00FF000
- ROMTbl[2][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
- ROMTbl[2][1]: E0001000, CID: B105E00D, PID: 000BB002 DWT
- ROMTbl[2][2]: E0002000, CID: B105E00D, PID: 000BB00E FPB-M7
- ROMTbl[2][3]: E0000000, CID: B105E00D, PID: 000BB001 ITM
- ROMTbl[1][1]: E0041000, CID: B105900D, PID: 001BB975 ETM-M7
- ROMTbl[1][2]: E0042000, CID: B105900D, PID: 004BB906 CTI
- ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BB9A9 TPIU-M7
- ROMTbl[0][2]: E0043000, CID: B105F00D, PID: 001BB101 TSG
- Cache: Separate I- and D-cache.
- I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
- D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
- ERROR: Could not find core in Coresight setup
- ERROR: Could not connect to target.
- Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
- Shutting down...
- Could not connect to target.
- Please check power, connection and settings.