You can use the following API call to start advertising:
Note that the BLE Component must be initialized.
Thanks for your reply sir.
can i stop the advertisement when the ble conneceted to the device,.
Thanks in advance.
That should happen automatically when you connect to it.
Keep in mind that there is both active and passive scanning, and active scanning will be faster/more responsive.
Also, you can adjust the interval between advertisement packets in the BLE component (topdesign.cysch), and programmatically when you start advertisement (using the parameters passed to the API)