This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LAUNCHXL-CC26X2R1:趋势句柄不可操作。

Guru**** 2589280 points
Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/995038/launchxl-cc26x2r1-trng-handle-is-not-opend

器件型号:LAUNCHXL-CC26X2R1
Thread 中讨论的其他器件:SysConfig

您好!

我正在执行测试程序、如下所示。

步骤1. 我在 CCS 中导入了 simplelink_cc13x2_26x2_sdk_4_40_00_44\examples\rtos\CC26X2R1_LAUNCHXL_ble5stack\\simple_peripheral_oad_onchip\tirtos

步骤2. 我已检查 TRNG 模块是否已选中

步骤3. 如下所示、我在 simple_peripheral_oad_onchip.c 上写入、但 Trng_handle 收到0值。

#include
#define KEY LENGTH_Bytes 16.
#define TRNG_Instance 0
uint8_t test_var = 0;
静态空 SimplePeripheral_init (空)

 Trng_Handle Trng_Handle;
 Trng_Params Trng_params;
 CryptoKey entropyKey;
 uint8_t entropyBuffer[key_length_Bytes];
 int_fast16_t 结果;


 trng_init();
 TRNG_Handle = TRNG_OPEN (CONFIG_TRNG_0、NULL);

我如何解决这个问题???

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    BLE 堆栈需要一个 TRNG 驱动程序实例以执行各种蓝牙操作。 这就是开箱即用的低功耗蓝牙示例在 SysConfig 中启用 TRNG 实例的原因。

    但是、我建议不要使用此实例。 我建议您在 SysConfig 中添加自己的 TRNG 驱动程序实例、然后专门使用此实例。

    请注意、您遇到的问题可能是由于 TRNG 驱动程序实例已打开导致的。

    我希望这将有所帮助、

    此致、