Hi,
i am using ble_app_template and i added the file "ble_lbs.h" in the main file. Also added this code in the services_init method
uint32_t err_code;
ble_lbs_init_t init;
init.led_write_handler = led_write_handler;
err_code = ble_lbs_init(&m_lbs, &init);
printf("error code = %d \n", err_code);
APP_ERROR_CHECK(err_code);
it builds and i can load it in the board.
But when i do 'batch build' i get this error
Rebuild target 'nrf51422_xxac_s110'
compiling main.c...
compiling ble_lbs.c...
compiling bsp.c...
assembling arm_startup_nrf51.s...
compiling system_nrf51.c...
compiling ble_srv_common.c...
compiling ble_advdata.c...
compiling ble_conn_params.c...
compiling nrf_delay.c...
compiling app_button.c...
compiling app_error.c...
compiling app_gpiote.c...
compiling app_scheduler.c...
compiling app_timer.c...
compiling app_timer_appsh.c...
compiling nrf_assert.c...
compiling softdevice_handler.c...
linking...
Program Size: Code=8376 RO-data=292 RW-data=208 ZI-data=3056
FromELF: creating hex file...
"._build\nrf51422_xxac_s110.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:10 Rebuild target 'flash_softdevice' compiling ble_lbs.c... ......\ble_lbs.h(40): error: #5: cannot open source input file "ble.h": No such file or directory #include "ble.h" ......\ble_lbs.c: 0 warnings, 1 error "RTE\nRF_SoftDevice\nRF51422_xxAC\s110_softdevice.hex" - 1 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00
Batch-Build summary: 1 succeeded, 1 failed, 0 skipped - Time Elapsed: 00:00:10
I can see that ble.h is in the main folder.
All i am trying is to create my own service.
Any help is appreciated.