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

Combining BLE and NFC in nRF52832

Hello all,

I got the nRF52832 dev kit and have been playing around with it. I am using Segger Embedded Studio V4.12. I tried out the ble_app_uart and the writable_ndef_msg examples separately and both work fine. I have been trying to combine them into one project now and am not able to compile. I checked out the difference in the sd_config.h files of the two projects and added the differences. I also added files in the nRF drivers folder in the solution.

The error I am getting is:

nrf_error.h: No such file or directory

It points to sdk_error.h file when showing this error.

But in "Options" in the solution, I checked out the included directories and "../../../../../../components/softdevice/s132/headers " is present and this directory has the header nrf_error.h. The entire list of includes is

Will be happy to provide any other information.

Thanks in advance.

Parents
  • Hi.

    It could be complaining about not finding this file in the path components/drivers_nrf/nrf_soc_nosd.

    Can you also add this to your included directories:

    ../../../../../../components/drivers_nrf/nrf_soc_nosd

    Best regards,

    Andreas

Reply
  • Hi.

    It could be complaining about not finding this file in the path components/drivers_nrf/nrf_soc_nosd.

    Can you also add this to your included directories:

    ../../../../../../components/drivers_nrf/nrf_soc_nosd

    Best regards,

    Andreas

Children
  • Thanks for the answer. On adding that to the include directories, I get the error:

    nrf_sd_def.h: No such file or directory

    This error is in sdk_resources.h

    Again, the file nrf_sd_def.h is there in "../../../../../../components/softdevice/s132/headers". Is it being included twice by any chance from another directory also?

    Thanks again.

  • Hi.

    This is a bit strange, could you share your project, so I can look at it?

    I can make this case private so that only you, me, and other Nordic employees can see it.

    Best regards,

    Andreas

  • Hi,

    I am just trying to combine two projects in the examples directory, so you could leave it public in case it is of help to someone else. The folder is attached as a zip file. I had to delete the Output directory as it was 80MB.

    Thanks again.

    my_blenfc_app_uart - Copy.zip

  • Hi again.

    I was unable to find a solution to this problem, so I tried to merge the two examples myself, and i succeded.

    I started from the ble_peripheral\ble_app_uart example, and merged in the \nfc\writable_ndef_msg example into that.

    Here it is: ble_app_uart_nfc.zip

    Just place it in the examples\ble_peripheral\ folder.

    Best regards,

    Andreas

  • Hello,

    Actually, the zipped file is just 22 bytes. I don't think it was uploaded. I had to delete the Output directory for the upload to succeed as otherwise it was 80MB.

    Thanks.