LL_Encrypt ()和LL_EXT_Decrypt()函数无法调用?
LL_Encrypt ()和LL_EXT_Decrypt()函数无法调用?编译无法通过。
编译无法通过? 有没有具体的错误提示呢?
是的,我已添加ll.h头文件,但是编译时依然无法找到LL_Encrypt,这是怎么回事呢,它的函数原形在哪里?
是的,我已在Options->C/C++ Compioler->Preprocessor里面添加ll.h的路径,但是编译时依然无法找到LL_Encrypt,这是怎么回事呢?
Building configuration: CC2640App - FlashROM
Updating build tree...
Performing Pre-Build Action
simpleBLEPeripheral.c
Warning[Pe223]: function "qq_write" declared implicitly C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 489
Warning[Pe223]: function "UART_GetRxBufferAddress" declared implicitly C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 489
Warning[Pe177]: variable "test" was declared but never referenced C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 431
Warning[Pe223]: function "qq_read" declared implicitly C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 1092
Warning[Pe223]: function "qq_total" declared implicitly C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 1108
Warning[Pe223]: function "LL_EXT_Decrypt" declared implicitly C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 1459
Warning[Pe550]: variable "LED_FLASH_DELAY" was set but never used C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 166
Warning[Pe177]: variable "old_time" was declared but never referenced C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 421
Warning[Pe177]: variable "old_time_data_len" was declared but never referenced C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\Source\Application\simpleBLEPeripheral.c 422
Linking
Error[Li005]: no definition for "LL_EXT_Decrypt" [referenced from C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\IAR\Application\CC2640\FlashROM\Obj\simpleBLEPeripheral.o]
Error while running Linker
Total number of errors: 1
Total number of warnings: 9
建议参考下 http://processors.wiki.ti.com/index.php/CC2640_AES_Encryption 以及 https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/425682
Add the following files into your project to call the encryption/decryption APIs defined in ROM.
- rom_crypto.h
- rom_crypto.c
好的,谢谢,我先试试