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

example code in softdevice packet 5.0.0-3.alpha

Hi,

There seems to be some pieces of new code (updated example and some components) for ble_app_mtu_throughput example embedded in the softdevice packet 5.0.0-3.alpha. Looks like it is meant for long range advertising that I am very interested in. Good!

But, should this new code work together with the nRF5_SDK_13.0.0_04a0bfd packet or what? I copied (replaced) the new files from 5.0.0-3.alpha into corresponding locations in the SDK folders, but I get plenty of errors when trying to build the example. As if the new code was missing something.

I get errors like: compiling amts.c... ..............\components\softdevice\s140\headers\ble_gap.h(1569): error: #20: identifier "ble_data_t" is undefined

Any idea?

  • FormerMember
    0 FormerMember

    The steps for testing the example that comes with S140 v. 5.0.0-3.alpha are described in readme.md:

    1. Download the SDK 13 from: www.nordicsemi.com/.../59012
    1. Extract the SDK to a location of your wish.
    2. Extract the content of this zip-file to the <sdk_location>.
    3. Extract the header files from the s140_nrf52840_5.0.0-3.alpha_API\include folder to <sdk_location>\components\softdevice\s140\headers folder.
    4. Navigate to: examples\ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput\pca10056\s140
    5. Compile using your favorite compiler.

    The compile error you get is because you are using the S140 header files for version 2.alpha. Replacing those header files with the header files for 3.alpha should solve that compile error (see step '4' above).

    I have also attached a version ble_app_multilink_central and ble_app_blinky running on coded phy: Advertising, scanning, connecting on coded phy. Note: After a connection has been initiated, there is a phy request update, that update is not necessary since the link is already using coded phy.

    nRF5_SDK_13.0.0_coded_phy.zip

  • Thank you a lot!

    I first got errors:

    ..............\components\softdevice\common\softdevice_handler\softdevice_handler.h(41): error: #5: cannot open source input file "ant_stack_handler_types.h": No such file or directory #include "ant_stack_handler_types.h"

    (although the file is there)

    But I "commented" the line #include "ant_stack_handler_types.h" in softdevice_handler.h with // as I though there is no use for Ant stack here. Now it compiles well.

Related