2 Replies Latest reply on Nov 5, 2019 5:11 AM by JoBu_4538421

    Problem with Debugging

    JoBu_4538421

      Hello,

       

      I am using a LAIRD Sterling EWB development board with WICED SDK.

       

      board part number: 455-00030

      SDK Version: WICED-SDK Version: Wiced_006.004.000.0061

       

      I am trying to do an on-chip debug by using this build string:

       

      build string: snip.gpio-LAIRD_EWB-ThreadX-NetX_Duo-debug download run

       

      I would like to be able to step through the program using the OCD. However, the "43xxx_Wi-Fi_Debug_Windows" command fails to start the debugging process. This is the command I am talking about:

       

       

      I am using default installer settings.

       

      The console shows this output:

       

      GNU gdb (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 8.0.50.20171128-git

      Copyright (C) 2017 Free Software Foundation, Inc.

      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

      This is free software: you are free to change and redistribute it.

      There is NO WARRANTY, to the extent permitted by law. Type "show copying"

      and "show warranty" for details.

      This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".

      Type "show configuration" for configuration details.

      For bug reporting instructions, please see:

      <http://www.gnu.org/software/gdb/bugs/>.

      Find the GDB manual and other documentation resources online at:

      <http://www.gnu.org/software/gdb/documentation/>.

      For help, type "help".

      Type "apropos word" to search for commands related to "word".

       

      [Switching to thread 1 (Thread -1)]

       

      [New Thread -1]

      [New Thread 1702061670]

       

      Thread 3 "" received signal SIGTRAP, Trace/breakpoint trap.

      [Switching to Thread 1702061670]

       

       

      The OpenOCD Log shows this output:

       

      trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_assert_srst

      adapter speed: 1000 kHz

      adapter_nsrst_delay: 100

      Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

      jtag_ntrst_delay: 100

      Warn : target name is deprecated use: 'cortex_m'

      jtag_init

      Info : clock speed 1000 kHz

      Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)

      Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Warn : JTAG tap: stm32f4xx.bs       UNEXPECTED: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Error: JTAG tap: stm32f4xx.bs  expected 1 of 1: 0x06413041 (mfg: 0x020 (STMicroelectronics), part: 0x6413, ver: 0x0)

      Error: Trying to use configured scan chain anyway...

      Warn : Bypassing JTAG setup events due to errors

      Info : stm32f4xx.cpu: hardware has 6 breakpoints, 4 watchpoints

      Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)

      Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Warn : JTAG tap: stm32f4xx.bs       UNEXPECTED: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Error: JTAG tap: stm32f4xx.bs  expected 1 of 1: 0x06413041 (mfg: 0x020 (STMicroelectronics), part: 0x6413, ver: 0x0)

      Error: Trying to use configured scan chain anyway...

      Warn : Bypassing JTAG setup events due to errors

      Info : accepting 'gdb' connection on tcp/3333

      Info : device id = 0x30006441

      Info : flash size = 1024kbytes

      Info : Auto-detected RTOS: ThreadX

      Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)

      Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Warn : JTAG tap: stm32f4xx.bs       UNEXPECTED: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Error: JTAG tap: stm32f4xx.bs  expected 1 of 1: 0x06413041 (mfg: 0x020 (STMicroelectronics), part: 0x6413, ver: 0x0)

      Error: Trying to use configured scan chain anyway...

      Warn : Bypassing JTAG setup events due to errors

      target halted due to debug-request, current mode: Thread

      xPSR: 0x01000000 pc: 0x08000618 msp: 0x2001dcf4

      Info : Padding image section 0 with 52 bytes

      Info : JTAG tap: stm32f4xx.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)

      Info : JTAG tap: stm32f4xx.bs tap/device found: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Warn : JTAG tap: stm32f4xx.bs       UNEXPECTED: 0x06441041 (mfg: 0x020 (STMicroelectronics), part: 0x6441, ver: 0x0)

      Error: JTAG tap: stm32f4xx.bs  expected 1 of 1: 0x06413041 (mfg: 0x020 (STMicroelectronics), part: 0x6413, ver: 0x0)

      Error: Trying to use configured scan chain anyway...

      Warn : Bypassing JTAG setup events due to errors

      target halted due to debug-request, current mode: Thread

      xPSR: 0x01000000 pc: 0x08000618 msp: 0x2001dcf4

      Error: JTAG-DP STICKY ERROR

      Error: Failed to read memory at 0x78616d2c

      Error: Could not read ThreadX thread name pointer from target

       

      Please let me know if you need any more information, and thank you in advance!

      John