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

Importing Keil projects error

i am following this tutorial to change a Keil 5 project (sdk 12.1.0 S132 )into ses project. 

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fimport_ses.html

And i got following result:

Building ‘bluetoothds_template_pca10040_s132’ from solution ‘bluetoothds_template_pca10040_s132’ in configuration ‘nrf52832_xxaa Internal’
Assembling ‘SEGGER_THUMB_Startup.s’
Compiling ‘system_nrf52.c’
Assembling ‘ses_nrf52_startup.s’
Compiling ‘main.c’
Compiling ‘service_if.c’
Compiling ‘bsp.c’
Compiling ‘bsp_btn_ble.c’
Compiling ‘ble_advdata.c’
Compiling ‘ble_advertising.c’
Compiling ‘ble_conn_params.c’
Compiling ‘ble_conn_state.c’
Compiling ‘ble_srv_common.c’
Compiling ‘gatt_cache_manager.c’
Compiling ‘gatts_cache_manager.c’
address of 'peer_data.p_service_changed_pending' will always evaluate to 'true' [-Wpointer-bool-conversion]
Compiling ‘id_manager.c’
Compiling ‘nrf_ble_qwr.c’
Compiling ‘peer_data.c’
Compiling ‘peer_data_storage.c’
Compiling ‘peer_database.c’
equality comparison with extraneous parentheses [-Wparentheses-equality]
remove extraneous parentheses around the comparison to silence this warning
use '=' to turn this equality comparison into an assignment
Compiling ‘peer_id.c’
Compiling ‘peer_manager.c’
Compiling ‘pm_buffer.c’
Compiling ‘pm_mutex.c’
Compiling ‘security_dispatcher.c’
Compiling ‘security_manager.c’
equality comparison with extraneous parentheses [-Wparentheses-equality]
remove extraneous parentheses around the comparison to silence this warning
use '=' to turn this equality comparison into an assignment
Compiling ‘nrf_drv_clock.c’
Compiling ‘nrf_drv_common.c’
Compiling ‘nrf_drv_gpiote.c’
Compiling ‘nrf_drv_uart.c’
Compiling ‘app_button.c’
Compiling ‘app_error.c’
Compiling ‘app_error_weak.c’
Compiling ‘app_fifo.c’
Compiling ‘app_timer.c’
Compiling ‘app_util_platform.c’
Compiling ‘crc16.c’
Compiling ‘fds.c’
Compiling ‘fstorage.c’
Compiling ‘hardfault_implementation.c’
Compiling ‘nrf_assert.c’
Compiling ‘sdk_mapped_flags.c’
Compiling ‘nrf_log_backend_serial.c’
Compiling ‘nrf_log_frontend.c’
Compiling ‘RTT_Syscalls_KEIL.c’
Compiling ‘SEGGER_RTT.c’
Compiling ‘SEGGER_RTT_printf.c’
Compiling ‘softdevice_handler.c’
Generating linker script ‘bluetoothds_template_pca10040_s132.ld’
Linking bluetoothds_template_pca10040_s132.elf  ( where error start )
Output/nrf52832_xxaa Internal/Exe/bluetoothds_template_pca10040_s132.elf section `.init' will not fit in region `UNPLACED_SECTIONS'
region `UNPLACED_SECTIONS' overflowed by 58796 bytes
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/SEGGER_THUMB_Startup.o: in function `exit':
(.init+0x14): undefined reference to `__SEGGER_init_table__'
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/ses_nrf52_startup.o: in function `_vectors':
(.vectors+0x0): undefined reference to `__stack_end__'
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/ses_nrf52_startup.o: in function `SystemInit':
(.init+0x68): undefined reference to `__SRAM_segment_end__'
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/softdevice_handler.o: in function `softdevice_enable':
softdevice_handler.c:(.text.softdevice_enable+0x6): undefined reference to `__data_start__'
softdevice_handler.c:(.text.softdevice_enable+0xa): undefined reference to `__data_start__'
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/fstorage.o: in function `fs_init':
fstorage.c:(.text.fs_init+0x4): undefined reference to `__start_fs_data'
fstorage.c:(.text.fs_init+0x8): undefined reference to `__start_fs_data'
fstorage.c:(.text.fs_init+0xc): undefined reference to `__stop_fs_data'
fstorage.c:(.text.fs_init+0x10): undefined reference to `__stop_fs_data'
fstorage.c:(.text.fs_init+0x48): undefined reference to `__start_fs_data'
fstorage.c:(.text.fs_init+0x4c): undefined reference to `__start_fs_data'
fstorage.c:(.text.fs_init+0x82): undefined reference to `__start_fs_data'
fstorage.c:(.text.fs_init+0x86): undefined reference to `__start_fs_data'
fstorage.c:(.text.fs_init+0xa8): undefined reference to `__start_fs_data'
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/fstorage.o:fstorage.c:(.text.fs_init+0xac): more undefined references to `__start_fs_data' follow
Output/nrf52832_xxaa Internal/Obj/bluetoothds_template_pca10040_s132/fstorage.o: in function `check_config':
fstorage.c:(.text.check_config+0x1a): undefined reference to `__stop_fs_data'
fstorage.c:(.text.check_config+0x1e): undefined reference to `__stop_fs_data'
Build failed

Do you know what can i do?

Thanks for your help.

Parents
  • It seems like a section placement setting error.

    In the tutorial it says "Right-click on your project in the Project Explorer and select Import Section Placement". I can not find that selection. Then i just change section placement file address in option linker menu. and it seems like that .xml does not work well.

    How can i find the parameter to set section placement marcos for SDK 12 s132?

     

Reply
  • It seems like a section placement setting error.

    In the tutorial it says "Right-click on your project in the Project Explorer and select Import Section Placement". I can not find that selection. Then i just change section placement file address in option linker menu. and it seems like that .xml does not work well.

    How can i find the parameter to set section placement marcos for SDK 12 s132?

     

Children
Related