Errors during build -lble_stack_da14681_01 not found

Learn MoreFAQsTutorials

3 posts / 0 new
Last post
ghschwab
Offline
Last seen:4 months 3 days ago
Joined:2016-07-25 10:54
Errors during build -lble_stack_da14681_01 not found

Hi,

I am trying to get an example project to run (ble_peripheral) in SmartSnippets Studio v1.6.3.918, from SDK 1.0.10.1072.
I keep getting this error:

Building target: ble_peripheral.elf
Invoking: Cross ARM C Linker
c:/diasemi/smartsnippetsstudio/gcc/4_9-2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lble_stack_da14681_01
collect2.exe: error: ld returned 1 exit status
make: *** [ble_peripheral.elf] Error 1

What can I do to fix this?
When I run the debug build, I get the following errors:

Building target: ble_peripheral.elf
Invoking: Cross ARM C Linker
./sdk/cpm/sys_power_mgr.o: In function `apply_wfi':
C:/Users/GHSchwab.GFT/Documents/Bluetooth/DA1468x_DA15xxx_SDK_1.0.10.1072/DA1468x_DA15xxx_SDK_1.0.10.1072/sdk/bsp/system/sys_man/sys_power_mgr.c:1731: undefined reference to `patch_rom_functions'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.o: In function `ble_stack_init':
C:/Users/GHSchwab.GFT/Documents/Bluetooth/DA1468x_DA15xxx_SDK_1.0.10.1072/DA1468x_DA15xxx_SDK_1.0.10.1072/sdk/interfaces/ble/src/stack/plf/black_orca/src/arch/main/ble/arch_main.c:632: undefined reference to `patch_rom_functions'
./sdk/ble/src/stack/ip/ble/ll/src/rwble/rwble.o: In function `event_isr':
C:/Users/GHSchwab.GFT/Documents/Bluetooth/DA1468x_DA15xxx_SDK_1.0.10.1072/DA1468x_DA15xxx_SDK_1.0.10.1072/sdk/interfaces/ble/src/stack/ip/ble/ll/src/rwble/rwble.c:427: undefined reference to `lld_evt_end_isr_sdk'
./sdk/ble/src/stack/ip/ble/ll/src/rwble/rwble.o: In function `eventapfa_isr':
C:/Users/GHSchwab.GFT/Documents/Bluetooth/DA1468x_DA15xxx_SDK_1.0.10.1072/DA1468x_DA15xxx_SDK_1.0.10.1072/sdk/interfaces/ble/src/stack/ip/ble/ll/src/rwble/rwble.c:447: undefined reference to `lld_evt_end_isr_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0x9c): undefined reference to `lld_test_mode_rx_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0xc4): undefined reference to `dbg_init_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0xc8): undefined reference to `dbg_platform_reset_complete_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0xd0): undefined reference to `l2cc_pdu_pack_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0xe0): undefined reference to `l2cc_pdu_recv_ind_handler_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0xe8): undefined reference to `atts_l2cc_pdu_recv_handler_sdk'
./sdk/ble/src/stack/plf/black_orca/src/arch/main/ble/jump_table.o:(.rodata.rom_func_addr_table_var+0x10c): undefined reference to `llc_le_length_conn_init_sdk'
collect2.exe: error: ld returned 1 exit status
make: *** [ble_peripheral.elf] Error 1

The project was only imported from the SDK, and all paths in the Project explorer seem ok.

Thanks for your help!

Device:
MT_dialog
Offline
Last seen:5 days 7 hours ago
Staff
Joined:2015-06-08 11:34
Hi ghscwab,

Hi ghscwab,

请遵循以下指导方针以甲型肝炎e a proper setup:

1.Move the SDK out the C:/Users location – I’ve seen this cause issues with administrative rights and also, since these tools are historically Linux based, they don’t like spaces in the root. I have my SDK located here at the following: C:\Dialog_SDKS\SDK1.0.10\DA1468x_DA15xxx_SDK_1.0.10.1072
2.Delete any .metadata that was created within the project directory to start a new workspace.
3.Open up Smart Snippets Studio again and you can select a generic workspace (we will change this once we get in the IDE). It normally defaults to your prior workspace in the users folder.
4.这可能提示您安装工具,X out of this and select IDE from the home page.
5.Now, inside of eclipse -> go to File->Switch Workspace-> Other. Browse to your C drive location, and make sure that you are picking the workspace to be the level that is one above your pojects, binaries, doc directory
6.You should have a blank Project Explorer on the left hand side. Go to Import->General->Existing Projects into Workspace. And import pxp_reporter and scripts.
7.With pxp_reporter selected, just click the hammer and it should build through here.
Thanks MT_dialog
ghschwab
Offline
Last seen:4 months 3 days ago
Joined:2016-07-25 10:54
Thank you for your help!

Thank you for your help!
I was able to get everything running now.