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

Integrating Mesh 4.0.0 into nRF5 SDK 16.0.0

Hello,

I'm trying to integrate Mesh 4.0.0 into a program built with SDK 16.0.0 but I'm running into some issues including the correct files from the Mesh SDK.

I followed the steps outline in the documentation, but immediately ran into some issues.
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.0.0%2Fmd_doc_getting_started_how_to_nordicSDK.html

The first issue was duplicate definitions between mesh/core/src/core_tx_instaburst.c and mesh/core/src/core_tx_adv.c. Since I'm not using instaburst at this time, I excluded it from the source includes.

Next, I had to add c source files and includes from the mesh/friend and mesh/gatt directories because of some undefined references.

Finally, I had duplicate definitions between mesh_mem_packet_mgr.c and mesh_mem_manager.c. I excluded them just to see if I could get the compile to proceed and it didn't seem to cause any issues.

Now the only error I'm getting is a bunch of undefined references to various 'mesh_adv_' methods.

/usr/local/nrf/nrf5_SDK_for_Mesh/mesh/gatt/src/proxy.c:772: undefined reference to `mesh_adv_params_set'
/usr/local/nrf/nrf5_SDK_for_Mesh/mesh/gatt/src/proxy.c:778: undefined reference to `mesh_adv_start'
/usr/local/nrf/nrf5_SDK_for_Mesh/mesh/gatt/src/proxy.c:766: undefined reference to `mesh_adv_params_set'

The first method appears to be defined in mesh/gatt/api/mesh_adv.h which should be included since I am including the mesh/gatt/api directory so I'm a bit stumped.

Any help/advice would be greatly appreciated!

Best

Related