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

Segger Studio, trouble compiling "nrfx_wdt"

Hello,

I'm trying to compile a slightly modified version of the template application for nRF52832 using Segger Studio.  I'm running into a compile issue with this line utilizing the watch dog timer in util.c:

I've done the following things which I think is needed to make sure wdt is part of the build.

1)  I've included "nrfx_wdt.c" in the file tree under <nrf_drivers>, as seen in the screen shot above.  I'm using the SDK version saved under <...\modules\nrfx\drivers\src>

2)  Under the "c_user_include_directories" in the .emProject, I've added "../../../../../../modules/nrfx/drivers/include", the directory that holds the header "nrfx_wdt.h".

I suspect that it's not actually building wdt.  When I view nrfx_wdt.c file under SES, it's gray out and there's no size after compile.

While I was googling for a possible solution, I also came across people including this directory in their user_include directories:

"../../../../../../components/drivers_nrf/wdt"

I can't find any directory named <wdt> in the SDK in that folder:

So that's a bit of a mystery for me.  What am I doing wrong with SES not compiling wdt?

Thanks.

Parents Reply
  • I note that the file is still showing the same sizes.

    Is the content of the file still all greyed-out?

    The NRFX_CHECK is what checks for the sdk_config.h settings - so, if it's still all greyed-out, then you still haven't (quite) got all the settings correct ...

    EDIT

    Note that there is further confusion due to the inter-relation of NRFX_... and NRF_... settings.

    You need to get them both correct - and one can end up messing with the other.

    This is a common source of problems & confusion with the Nordic SDK.

    Disappointed

    I suggest finding an example which has the WDT working, and checking against that ...

Children
Related