Hi,
I'm trying to run some examples using my nRF52840. I noticed that the BLE header files used in the SDK 14.2.0 are different than what's in the standalone S140 (6.0.0-6.alpha). For instance, these two ble_gap.h files have a lot differences including the advertising parameters struct ble_gap_adv_params_t:
1. s140_nrf52840_6.0.0-6.alpha_API/include/ble_gap.h (S140-SD-V6)
2. nRF5_SDK_14.2.0_17b948a/components/softdevice/s140/headers/ble_gap.h (SDK 14.2.0 )
For the ble_app_uart_c example from the SDK, I compiled and flashed the SD and App to the nRF52840 board and verified the results from a JLinkRTTClient. But since this project is using related header files in the components/softdevice folder, I made some changes to the Makefile so that it could compile with the new API inS140-SD-V6, I made some changes to the ble_app_uart_c example. First, I replaced the hex file used in the flash_softdevice target to the hex file in the S140-SD-V6. Compiled and flashed, it got me a fatal error. Then I tried to replace the $(SDK_ROOT)/components/ble/ble_services/ble_hrs \ and $(SDK_ROOT)/components/softdevice/s140/headers/nrf52 \ to the corresponding headers in the S140-SD-V6. Didn't work either. It seems the standalone softdevice is different in length than the one in the SDK14.2. I'm not sure if that is the problem.
What should I change instead to make this work?
I'm using a linux environment with Eclipse Oxygen and arm-none-eabi-gcc 7.2.1.
Thanks!!