This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

softdevice - How to print UART message / what is SOFTDEVICE_PRESENT and where it is defined in Segger

Hello,

I am using nRF52840 DK board and nRF5SDK17.0.2.

I am trying to code to print data on UART so I have added below folder path into user include directories:

../../../config
../../../../../../components
../../../../../../components/boards
../../../../../../components/drivers_nrf/nrf_soc_nosd
../../../../../../components/libraries/atomic
../../../../../../components/libraries/balloc
../../../../../../components/libraries/bsp
../../../../../../components/libraries/delay
../../../../../../components/libraries/experimental_section_vars
../../../../../../components/libraries/fifo
../../../../../../components/libraries/log
../../../../../../components/libraries/log/src
../../../../../../components/libraries/memobj
../../../../../../components/libraries/ringbuf
../../../../../../components/libraries/strerror
../../../../../../components/libraries/uart
../../../../../../components/libraries/util
../../../../../../components/toolchain/cmsis/include
../../..
../../../../../../external/fprintf
../../../../../../integration/nrfx
../../../../../../integration/nrfx/legacy
../../../../../../modules/nrfx
../../../../../../modules/nrfx/drivers/include
../../../../../../modules/nrfx/hal
../../../../../../modules/nrfx/mdk
../config

uploaded sdk_config.h file for your reference.

Also, I have added the required file to the project but still, I am getting the error below.

Compiling 'nrf_log_frontend.c'

sdk_common.h

nrf_log_frontend.c

nrf_mbr.h: No such file or directory

What is SOFTDEVICE_PRESENT and where it is defined in SEGGER?

I am attaching my screenshot for your reference.

What I am doing wrong? Please help.

Please find the attached code file.

Thanks and regards,

Neeraj Dhekale

Parents Reply Children
  • Hi,

    Did you upload the correct project? The project that you shared is basically the UART peripheral example, but it lacks the necessary drivers and libraries which result in build errors. Can you double check it? Also, are you using the MBR or blank project?

    regards

    Jared

  • Hello Jared,

    There is no build error at my end. I just made a zip to my working folder. Is it the correct way to export?

    Please correct me if I am wrong.

    Thanks and regards,

    Neeraj Dhekale

  • Hi,

    I wanted to reproduce "the error" at my side by using your project. Your project didn't build successfully because there was a lot of source files and drivers that weren't included. I therefore asked if you uploaded the correct project since it built successfully on your side. Are you using the MBR or the blank project? It's PCA10056 folder right? And you are using SES?

    regards

    Jared 

  • Hi Jared,

    Sorry for the late reply.

    Here is the screenshot of the building successful at my end.

    For you, I have collapsed all folders at left project explorer.

    Attaching a Screenshot of the User include directories.

    Also attaching a screenshot of Preprocessor definition

    Also, I am attaching again same project by making a working project folder as ZIP

    Are you using the MBR or the blank project?

    I am using S132

    It's PCA10056 folder right?

    No. Its PCA10040 folder

    And you are using SES?

    Yes. Correct.

    Now you might cross-check at your end. Is this information sufficient to make this project build successful at your end? Or do you need anything extra information? let me know.

    Thanks and regards,

    Neeraj Dhekale

  • Hi,

    I am using nRF52840 DK board and nRF5SDK17.0.2.
    Neeraj Dhekale said:
    No. Its PCA10040 folder

    The PCA10040 is not the correct folder for the nRF52840 DK, it doesn't map the pins correctly nor does it adjust the memory settings correctly for the nRF52840. You should use PCA10056. Still not sure why this would result in serial data being printed out on the Debug terminal. Either way, could you see if you're able to reproduce it using the correct folder. 

    regards

    Jared 

Related