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

Error compiling ble_connectivity example with Segger Embedded Studio

Hello,

I'm trying to program a nFR52840 USB Dongle so it can connect to other devices through BLE (another dongle, for example). I'm new to this platform so I've been looking at the available application examples included in the SDK . I'm using Segger Embedded Studio and nRF Connect v2.6.0. I've been able to get the blinky example work (nRF5_SDK_15.2.0_9412b96\examples\peripheral\blinky\pca10059\mbr\ses) so far, but when I try to compile the ble_connectivity example (nRF5_SDK_15.2.0_9412b96\examples\connectivity\ble_connectivity\pca10059\ser_s140_usb_hci\ses),  I'm getting the following errors:


  Compiling ‘nrf_dfu_trigger_usb.c’
    nrf_dfu_trigger_usb.c
    app_usbd_nrf_dfu_trigger_types.h: No such file or directory
  Compiling ‘ble_conn.c’
    ble_gap_struct_serialization.h: No such file or directory

Do I need something else than I'm missing? How should I proceed if I wanted to connect two dongles, if not with this ble example as starting point?

Thank you in advance!

Parents
  • Hi.


      Compiling ‘nrf_dfu_trigger_usb.c’
        nrf_dfu_trigger_usb.c
        app_usbd_nrf_dfu_trigger_types.h: No such file or directory
      Compiling ‘ble_conn.c’
        ble_gap_struct_serialization.h: No such file or directory

     Have you deleted or moved these files:

    nRF5_SDK_15.2.0_9412b96/components/libraries/bootloader/dfu/nrf_dfu_trigger_usb.c
    nRF5_SDK_15.2.0_9412b96/components/serialization/common/struct_ser/ble/ble_gap_struct_serialization.h

    Because as you see by the error message, Segger Embedded Studio can't find them.

    The ble_connectivity example is an example you can use to run a serialized application.

    By serialized application you have two boards connected by wire, where one board serves as application board and hosts the actual Bluetooth or ANT application. The other board serves as connectivity board and supplies the radio connection. You can read more about the serialized application example here.

    I'm not quite sure that this is what you are looking for?

    What you need to do is use a peripheral and a central.

    You already have found the peripheral blinky example, so you could take the central blinky example (examples\ble_central\ble_app_blinky_c) and do the following modification:

    Step 1: Update the Preprocessor Definitions by removing BOARD_PCA10056 and inserting BOARD_PCA10059:

    Step 2: Adjust the linker configuration. Set FLASH_START=0x1000 to place the application right above the MBR. You should also set and FLASH_SIZE=0xDF000 to make sure that there is room for the bootloader at the end of the flash. Set RAM_START=0x20000008, as the first 8 bytes are used by the MBR for interrupt forwarding and adjust the size accordingly by setting RAM_SIZE=0x3FFF8.

    Then just program with the nRF Connect v2.6.0 Programmer Application, as you have already done.

    Hope this helps.

    Best regards.

    Andreas

Reply
  • Hi.


      Compiling ‘nrf_dfu_trigger_usb.c’
        nrf_dfu_trigger_usb.c
        app_usbd_nrf_dfu_trigger_types.h: No such file or directory
      Compiling ‘ble_conn.c’
        ble_gap_struct_serialization.h: No such file or directory

     Have you deleted or moved these files:

    nRF5_SDK_15.2.0_9412b96/components/libraries/bootloader/dfu/nrf_dfu_trigger_usb.c
    nRF5_SDK_15.2.0_9412b96/components/serialization/common/struct_ser/ble/ble_gap_struct_serialization.h

    Because as you see by the error message, Segger Embedded Studio can't find them.

    The ble_connectivity example is an example you can use to run a serialized application.

    By serialized application you have two boards connected by wire, where one board serves as application board and hosts the actual Bluetooth or ANT application. The other board serves as connectivity board and supplies the radio connection. You can read more about the serialized application example here.

    I'm not quite sure that this is what you are looking for?

    What you need to do is use a peripheral and a central.

    You already have found the peripheral blinky example, so you could take the central blinky example (examples\ble_central\ble_app_blinky_c) and do the following modification:

    Step 1: Update the Preprocessor Definitions by removing BOARD_PCA10056 and inserting BOARD_PCA10059:

    Step 2: Adjust the linker configuration. Set FLASH_START=0x1000 to place the application right above the MBR. You should also set and FLASH_SIZE=0xDF000 to make sure that there is room for the bootloader at the end of the flash. Set RAM_START=0x20000008, as the first 8 bytes are used by the MBR for interrupt forwarding and adjust the size accordingly by setting RAM_SIZE=0x3FFF8.

    Then just program with the nRF Connect v2.6.0 Programmer Application, as you have already done.

    Hope this helps.

    Best regards.

    Andreas

Children
No Data
Related