I think you can use simpleBLEperipheral project.
But before flashing it, make a small change in the simpleBLEperipheral.c file.
In simpleBLEperipheral_init (....) function, use code provided below.
#if defined( CC2540_MINIDK )
// For the CC2540DK-MINI keyfob, device doesn't start advertising until button is pressed
//uint8 initial_advertising_enable = FALSE;
// No need to press any key to start advertising........................................
uint8 initial_advertising_enable = TRUE;
#else
// For other hardware platforms, device starts advertising upon initialization
uint8 initial_advertising_enable = TRUE;
#endif
Your module should start advertising once it is powered up.
Regards,
maharjanbk