This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debugging OpenThread examples with SEGGER

I'm trying to use the SEGGER debugger with one of the OpenThread examples for the nRF52840.  When I click on the "Go" button, it asks for the location of the source files for the OpenThread libraries.  These are not included in the SDK, and there are a lot of them.  I don't want to debug these anyway, only the application code.  Is there a way to tell the debugger not to look for source code for the pre-compiled OpenThread libraries?

I see this:

Then click on Cancel, then see this

Or so I need to get the source files?

There are a lot of these files, and I end up killing the SEGGER IDE with the Task Manager just to make it end.

Thanks,

Mary

Parents
  • Hi,

    Which examples are you testing with, and what version of nRF5 SDK for Thread and Zigbee are you using? I tried two examples from V1.0.0 and I'm not seeing messages like this. Could you try cleaning the build files (Build->Clean 'projectname") and rebuild the project?

    Best regards,
    Jørgen

  • I tried the CLI example and the MQTTSN_client_publisher example.  

    <Install Dir>/examples/thread/cli/uart/pca10056/blank/ses/thread_cli_uart_pca10056.emProject

    <Install Dir>/examples/thread/mqttsn_client_publisher/pa10056/blank/ses/thread_mqtt_sn_client_publisher_pca10056.emProject

    I was able to run the debugger with one of the heart rate monitor examples, though.

    <Install Dir>/examples/ble_peripheral/ble_app_hrs/pca10056/ser_s140_uart/ses/ble_app_hrs_pca10056_s140:uart.emProject

    nRF5_SDK_for_Thread_and_Zigbee_v1.0.0

    Hardware is PCA10056

    SEGGER IDE

    SEGGER Embedded Studio for ARM
    Release 3.40  Build 2018052200.36079
    Windows x86

    © 2014-2018 SEGGER Microcontroller GmbH
    © 1997-2018 Rowley Associates Ltd.

    GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 7-2017-q4-major source distribution

    Clang/LLVM: Built using the version 6.0.0 source distribution

    I tried Clean, Rebuild, Go but got the same results.

    The first file it asks for is

    /build/KNG-OL-JOB1/openthread/examples/platforms/nrf52840/alarm.c

    Mary

Reply
  • I tried the CLI example and the MQTTSN_client_publisher example.  

    <Install Dir>/examples/thread/cli/uart/pca10056/blank/ses/thread_cli_uart_pca10056.emProject

    <Install Dir>/examples/thread/mqttsn_client_publisher/pa10056/blank/ses/thread_mqtt_sn_client_publisher_pca10056.emProject

    I was able to run the debugger with one of the heart rate monitor examples, though.

    <Install Dir>/examples/ble_peripheral/ble_app_hrs/pca10056/ser_s140_uart/ses/ble_app_hrs_pca10056_s140:uart.emProject

    nRF5_SDK_for_Thread_and_Zigbee_v1.0.0

    Hardware is PCA10056

    SEGGER IDE

    SEGGER Embedded Studio for ARM
    Release 3.40  Build 2018052200.36079
    Windows x86

    © 2014-2018 SEGGER Microcontroller GmbH
    © 1997-2018 Rowley Associates Ltd.

    GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 7-2017-q4-major source distribution

    Clang/LLVM: Built using the version 6.0.0 source distribution

    I tried Clean, Rebuild, Go but got the same results.

    The first file it asks for is

    /build/KNG-OL-JOB1/openthread/examples/platforms/nrf52840/alarm.c

    Mary

Children
No Data
Related