Dear all,
I tried the example program ble_app_uart given in the examples section of the Nordic folder in Keil installation. I created the hex code and programmed my chip. But the device is not discovered by the Nordic apps (nRF master control, nRF toolbox etc).
I don't have a beacon or development board. I am programming the board purchased from here using a segger board.
Given below is the main() of the main.c function in the ble_app_uart project
int main(void) {
int j;
uint8_t start_string[] = START_STRING;
uint32_t err_code;
// Initialize.
APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, false);
APP_GPIOTE_INIT(APP_GPIOTE_MAX_USERS);
ble_stack_init();
uart_init();
err_code = bsp_init(BSP_INIT_LED | BSP_INIT_BUTTONS,
APP_TIMER_TICKS(100, APP_TIMER_PRESCALER),
NULL);
APP_ERROR_CHECK(err_code);
err_code = bsp_buttons_enable(1 << WAKEUP_BUTTON_ID);
APP_ERROR_CHECK(err_code);
gap_params_init();
services_init();
advertising_init();
conn_params_init();
sec_params_init();
printf("%s",start_string);
advertising_start();
// Enter main loop.
for (;;)
{
power_manage();
}}
Shall I post the full program (Not doing now, since its too big)
Thanks