Flash and debug fail in Visual Studio Code.

Hi,

I tried building and debugging the sample "https_client" using the method described here.
But debugging fails. Debugging stops prematurely because the source file cannot be found.

Module: nRF9160-DK
SDK: Connect SDK v2.0.0
firmware: mfw_nrf9160_1.3.2.zip

The settings and extended functions when creating the application, and the contents of the output are as follows.

Settings

extension

output

We will also send you the logs output during build, flash, and debug, so please check them.

3113.log_build.txt

build settings

I would be very happy if you could tell me how to solve it.

(In this state, nothing was displayed even when connected to LTE Link Monitor.)

Parents
  • Hi Norio,

    Did you recently update the Cortex Debug? Could you try downgrading to the previous version of this?

    Best Regards,

    Priyanka

  • Hi Priyanka,

    The version of Cortex Debug was the latest v1.6.0.

    I changed to the previous v1.4.4, but unfortunately it didn't improve.

    Even if I debug it, it stops in the middle and I get an error "cannot open source file".

    Is my setting wrong?

  • Hi,

    thank you for your answer.
    Attach support information.

  • Hi Norio,

    I have asked internally and will get back to you soon.

    -Priyanka

  • Hi Norio,

    From your debug log,

    It looks like your debugging is working.

    -Priyanka

  • Hi,

    Thank you for your answer.
    When you say debugging works, do you mean I can debug in Visual Studio Code?

    When debugging https_client with Visual Studio Code, the main thread of "C:\ncs\v2.0.0\modules\tee\tf-m\trusted-firmware-m\secure_fw\spm\cmsis_psa\main.c" in the SDK will stop.
    Why am I getting the problem "cannot open source file" in "main.c"?

  • Hi Norio,

    Could you attach a screenshot or log of this? i.e. the problem "cannot open source file" in "main.c"

    -Priyanka

Reply Children