I followed the guide of this and when I opened the project " BLE_Gateway" ,it showed that the "spi_slave.c","softdevice_handle.c"and "ble_advdata.c" file couldn't be found .So I searched file in the"nRF51-ble-bcast-mesh-sdk-8-support" folder and I found these files had several version in different folder .I added the path of one of the version of these files but after I flashed the hex file to the nrf51822 ,I couldn't find the "rbc_meshXXXX" with ble APPs.I flashed the firmware and bootloader from here and I could find the mesh device.