blufi mbedtl链接错误

Q_OBJECT
Posts: 6
Joined: Fri Oct 25, 2024 3:36 am

blufi mbedtl链接错误

Postby Q_OBJECT » Mon Dec 02, 2024 3:41 am

ibmain.a(blufi_security.c.obj):(.literal.blufi_dh_negotiate_data_handler+0x2c): undefined reference to `mbedtls_dhm_read_params'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj):(.literal.blufi_dh_negotiate_data_handler+0x30): undefined reference to `mbedtls_dhm_get_len'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj):(.literal.blufi_dh_negotiate_data_handler+0x34): undefined reference to `mbedtls_dhm_make_public'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj):(.literal.blufi_dh_negotiate_data_handler+0x38): undefined reference to `mbedtls_dhm_calc_secret'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj):(.literal.blufi_security_init+0x0): undefined reference to `mbedtls_dhm_init'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj):(.literal.blufi_security_deinit+0x0): undefined reference to `mbedtls_dhm_free'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj): in function `blufi_dh_negotiate_data_handler':
/home/sydl/ESP_Project/esp32_cam/build/../main/blufi/blufi_security.c:101:(.text.blufi_dh_negotiate_data_handler+0xd3): undefined reference to `mbedtls_dhm_read_params'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/sydl/ESP_Project/esp32_cam/build/../main/blufi/blufi_security.c:108:(.text.blufi_dh_negotiate_data_handler+0x11c): undefined reference to `mbedtls_dhm_get_len'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/sydl/ESP_Project/esp32_cam/build/../main/blufi/blufi_security.c:111:(.text.blufi_dh_negotiate_data_handler+0x137): undefined reference to `mbedtls_dhm_make_public'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /home/sydl/ESP_Project/esp32_cam/build/../main/blufi/blufi_security.c:118:(.text.blufi_dh_negotiate_data_handler+0x183): undefined reference to `mbedtls_dhm_calc_secret'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj): in function `blufi_security_init':
/home/sydl/ESP_Project/esp32_cam/build/../main/blufi/blufi_security.c:204:(.text.blufi_security_init+0x26): undefined reference to `mbedtls_dhm_init'
/home/sydl/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/main/libmain.a(blufi_security.c.obj): in function `blufi_security_deinit':
/home/sydl/ESP_Project/esp32_cam/build/../main/blufi/blufi_security.c:220:(.text.blufi_security_deinit+0x22): undefined reference to `mbedtls_dhm_free'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Q_OBJECT
Posts: 6
Joined: Fri Oct 25, 2024 3:36 am

Re: blufi mbedtl链接错误

Postby Q_OBJECT » Mon Dec 02, 2024 8:20 am

- 使能蓝牙
- Include GATT server module(GATTS)
- Include blufi function
- Diffie-Hellman-Merkle key exchange (DHM)
- Enable BLE 4.2 features

Who is online

Users browsing this forum: No registered users and 66 guests