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

Errors while adding the Buttonless Secure DFU Service to a BLE application

Hi, Andreas.

Following the guide you find in the document "Buttonless Secure DFU Service", I get errors while trying to compile. In order to ascertain were is the problem, I am adding the five scripts being mention in this document (SDK configuration header files, DFU event handler, enable auto shutdown retry, implement the power management and Initialize de Buttonless Secure DFU Services) one at a time, and running a Build immediately after each script has been pasted.   

As soon as I reach the "DFU event handler" script, I get the following error:

Would you mind telling me what is wrong?

Thanks

Parents Reply Children
  • Hi Andreas.


    Since I need an nRF52840 chip to transmit a +8dBm signal, and permanently advertising its device_name in order to scan it and measure the max. range the chip is able to generate in within its final product embodiment, I am trying to merge two examples from SDK v15.2.0. The "Central & Peripheral ble_app_interactive" and the "Peripheral Radio Test". With the second one, I can customize the output_power, but I can't advertise a device_name. With the first one, is just the opposite.
    The merging strategy I am following is as follow (I'm using Segger embedded Studio):
    1.- I use ble_app_interactive as the base project, and I copy (folder by folder) the files from Radio Test example which, according to the SES Project Explorer, are not already contained in the ble_app_interactive.
    2.- With the main.c file, I follow the same criteria regarding the code. First appending all the privative #includes, and then and at the end of the ble_app_interactive example, the rest of the statements from the Radio Test.
    3.- With the sdk_config.h file, I did the same, trying not to duplicate statements.
    4.- With the resulting SES merged Project, I detect and correct errors running Build and Run. Most of them being preprocessor "user include directories" not being defined in case of .h files or just .c files whose path is not being recognized.
    5.- In each error correction iteration, I re-run a Build and Run command, to make sure the correction has taken place.

    Unfortunately, I've reached the point in which the error statement says that certain function parameters are not defined (when they should), and I have no Idea what to do.
    Since apparently, only 19 errors remain to be solved, and they all seem very similar, I would appreciate if you give me a clue on what to keep going.

    I could send you the SES project file, but I don't know how to do it. Meanwhile, I send you a snapshot of my SES application in case it would be of any help.

    Waiting on a kind suggestion,

    Thanks for your time and,
    Best regards

    Juan

  • Hi.

    I've been away last week.

    You probably have some included paths that are wrong.

    Make sure that you only include the header file for SoftDevice S140, and if you have components/drivers_nrf/nrf_soc_nosd in your include path, remove that one.

    Best regards,

    Andreas

Related