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.

[参考译文] CCS/CC2652RB:使用 TRNG 的 Hwi 异常

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

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/968883/ccs-cc2652rb-hwi-exception-using-trng

器件型号:CC2652RB
Thread 中讨论的其他器件:SysConfig

工具/软件:Code Composer Studio

我正在运行以下代码中的一个例外情况。 SysConfig 中添加了 TRng。 hwiStackPeak 为516/1024。  这可能是内存泄漏吗?

#include 
#include 

#define key_length_bytes 3

void* mainThread (void * arg0){
...
trng_handle rndHandle;
int_fast16_t rndRes;
CryptoKey entropyKey;
uint8_t entropyBuffer[key_length_Bytes];
rndHandle = TRNG_open (CONFIG_TRNG_0、 空);
if (!rndHandle){
while (1);
}
CryptoKeyPlainText_initBlankKey (entropyKey、entropyBuffer、key_length_Bytes);
rndRes = TRNG_generateEntropy (rndHandle、&entropyKey);
if (rndRes!= TRNG_STATUS_SUCCESS){
while (1);
}
TRNG_CLOSE (rndHandle);
...
}