This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I want to send adc data to Bluetooth.

I want to send adc data to Bluetooth.

I downloaded the source code below and compiled it.
https://github.com/NordicPlayground/nRF52-ADC-examples/tree/master/ble_app_uart__saadc_timer_driven__scan_mode

However, it prints the error of the following picture.

Checking project status
Building ‘ble_app_uart_pca10040_s132’ from solution ‘ble_app_uart_pca10040_s132’ in configuration ‘Release’
Linking ble_app_uart_pca10040_s132.elf
Output/Release/Exe/ble_app_uart_pca10040_s132.elf section `.init' will not fit in region `UNPLACED_SECTIONS'
region `UNPLACED_SECTIONS' overflowed by 28092 bytes
Output/Release/Obj/ble_app_uart_pca10040_s132/thumb_crt0.o: in function `memory_set':
(.init+0xe8): undefined reference to `__data_load_start__'
(.init+0xec): undefined reference to `__data_start__'
(.init+0xf0): undefined reference to `__data_end__'
(.init+0xf4): undefined reference to `__text_load_start__'
(.init+0xf8): undefined reference to `__text_start__'
(.init+0xfc): undefined reference to `__text_end__'
(.init+0x100): undefined reference to `__fast_load_start__'
(.init+0x104): undefined reference to `__fast_start__'
(.init+0x108): undefined reference to `__fast_end__'
(.init+0x10c): undefined reference to `__ctors_load_start__'
(.init+0x110): undefined reference to `__ctors_start__'
(.init+0x114): undefined reference to `__ctors_end__'
(.init+0x118): undefined reference to `__dtors_load_start__'
(.init+0x11c): undefined reference to `__dtors_start__'
(.init+0x120): undefined reference to `__dtors_end__'
(.init+0x124): undefined reference to `__rodata_load_start__'
(.init+0x128): undefined reference to `__rodata_start__'
(.init+0x12c): undefined reference to `__rodata_end__'
(.init+0x130): undefined reference to `__tdata_load_start__'
(.init+0x134): undefined reference to `__tdata_start__'
(.init+0x138): undefined reference to `__tdata_end__'
Output/Release/Obj/ble_app_uart_pca10040_s132/ses_startup_nrf_common.o: in function `InitializeUserMemorySections':
(.init+0x44): undefined reference to `__RAM1_segment_end__'
(.init+0x50): undefined reference to `__start_nrf_sections'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o: in function `nrf_log_module_name_get':
nrf_log_frontend.c:(.text.nrf_log_module_name_get+0x2c): undefined reference to `__start_log_const_data'
nrf_log_frontend.c:(.text.nrf_log_module_name_get+0x30): undefined reference to `__stop_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o: in function `nrf_log_color_id_get':
nrf_log_frontend.c:(.text.nrf_log_color_id_get+0x28): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o: in function `nrf_log_frontend_dequeue':
nrf_log_frontend.c:(.text.nrf_log_frontend_dequeue+0x1fc): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/app_error_weak.o: in function `app_error_fault_handler':
app_error_weak.c:(.text.app_error_fault_handler+0x54): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_pwr_mgmt.o:(.rodata.pwr_mgmt_data+0x0): undefined reference to `__start_pwr_mgmt_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_pwr_mgmt.o:(.rodata.pwr_mgmt_data+0x4): undefined reference to `__stop_pwr_mgmt_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/main.o: in function `nus_data_handler':
main.c:(.text.nus_data_handler+0x64): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/main.o: in function `gatt_evt_handler':
main.c:(.text.gatt_evt_handler+0x48): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/main.o: in function `main':
main.c:(.text.startup.main+0x228): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_req_observers+0x0): undefined reference to `__start_sdh_req_observers'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_req_observers+0x4): undefined reference to `__stop_sdh_req_observers'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_stack_observers+0x0): undefined reference to `__start_sdh_stack_observers'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_stack_observers+0x4): undefined reference to `__stop_sdh_stack_observers'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_state_observers+0x0): undefined reference to `__start_sdh_state_observers'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_state_observers+0x4): undefined reference to `__stop_sdh_state_observers'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh_ble.o: in function `nrf_sdh_ble_default_cfg_set':
nrf_sdh_ble.c:(.text.nrf_sdh_ble_default_cfg_set+0x188): undefined reference to `__start_log_const_data'
Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh_ble.o: in function `nrf_sdh_ble_enable':
nrf_sdh_ble.c:(.text.nrf_sdh_ble_enable+0x7c): undefined reference to `__start_log_const_data'
Build failed

I am not sure what is the problem.

Parents Reply Children
Related