Debuging on a custom board

Hi,

I've made a custom board for a nrf9160 chip. I've added all the necessary peripherals and hardware in a device tree and made a hello world sample to test the board. The sample builds successfully and can flash and run on the target. I can even use RTT to print to a terminal. The problems is when I try to debug I get the following error:

If I build my project for another board for example the nrf9160dk_nrf9160 everything works fine. 

When designing my custom board I follow this tutorial: https://www.youtube.com/watch?v=V_dVKgWKILM&ab_channel=NordicSemiconductor

Am i missing something that enables debugging? I'm using the v2.4.0 version of the SDK and toolchain

Parents
  • Hello,

    1) Do you add the Debug Optimizations in the build process?

    2) Are you migrating a project from another SDK? Please make sure the sample is from the same SDK for which you are building and the toolchain is same.

    3) Does this error only occur for your custom board? 

    /BR, Naeem

  • Hello Naeem,

    Thank you for your quick response.

    1) Yes I've made a build configuration that uses debug optimizations.

    2) No this project is being developed for the first time and is created on the 2.4.0 SDK and 2.4.0 toolchain

    3) Yes this is only a problem with my custom board. If I build and debug the exact same project for another non-custom board it works just fine. My custom board is made "out of tree" from the zephyr repo and resides in a folder called boards in the root of the project folder. Maybe it is not linked correctly in some way?

Reply
  • Hello Naeem,

    Thank you for your quick response.

    1) Yes I've made a build configuration that uses debug optimizations.

    2) No this project is being developed for the first time and is created on the 2.4.0 SDK and 2.4.0 toolchain

    3) Yes this is only a problem with my custom board. If I build and debug the exact same project for another non-custom board it works just fine. My custom board is made "out of tree" from the zephyr repo and resides in a folder called boards in the root of the project folder. Maybe it is not linked correctly in some way?

Children
No Data
Related