I am trying to build SampleGW app with added BLE security.
I added the following in user_ble_init(void){}
blc_smp_setSecurityLevel(LE_Security_Mode_1_Level_4);
blc_smp_setSecurityParameters(Bondable_Mode, 1, LE_Secure_Connection, 0, 0, IO_CAPABILITY_DISPLAY_ONLY);
blc_smp_setDefaultPinCode(123456);
After trying to build I get the following error:
<artificial> .text.blt_smp_sc_handler+0xaec): undefined reference to `eccp_pointVerify'
/cygdrive/c/TelinkIoTStudio/RDS/V5.3.x/toolchains/nds32le-elf-mculib-v5f/bin/../lib/gcc/riscv32-elf/12.2.0/../../../../riscv32-elf/bin/ld.bfd: //cygdrive/c/Users/Wieslaw/AppData/Local/Temp/cc8tFlku.ltrans5.ltrans.o: in function `.L1438':
<artificial> .text.blt_smp_sc_handler+0xb0c): undefined reference to `eccp_pointMul'
/cygdrive/c/TelinkIoTStudio/RDS/V5.3.x/toolchains/nds32le-elf-mculib-v5f/bin/../lib/gcc/riscv32-elf/12.2.0/../../../../riscv32-elf/bin/ld.bfd: /cygdrive/c/Users/Wieslaw/AppData/Local/Temp/cc8tFlku.ltrans6.ltrans.o: in function `.L569':
<artificial> .text.blt_ecc_gen_key_pair.constprop.0+0xd8): undefined reference to `eccp_pointMul'
collect2: error: ld returned 1 exit status Compilation fails on this function: blc_smp_setSecurityParameters(Bondable_Mode, 1, LE_Secure_Connection, 0, 0, IO_CAPABILITY_DISPLAY_ONLY);
What is wrong? When I try to compile BLE part in just BLE SDK there is no problem.
|