Other Parts Discussed in Thread: AM2632-Q1, AM2632
Tool/software:
I am calling HsmClient_getRandomNum() as shown below. This code works once after a power up, but never works more than once. When it fails, I see this in the debugger console.
Cortex_R5_0: [HSM_CLIENT] New Client Registered with Client Id = 0
Cortex_R5_0:
Cortex_R5_0: [HSM_CLIENT] Get Random Number request NACKed by HSM server
If I call HsmClient_getRandomNum() twice after a power up, the first one works but not the second call. Note this is a 'power cycle'. Even if I reconnect with the debugger and start the program over without a power cycle, the call will fail. I have verified that HsmClient_config() is being called from SystemInit() and I included that source below as well (even though generated by syscfg). We are using API 10_02_00_13.
What am I missing with how this is supposed to be used? I have tried building the hsmclient example app but have yet to get it to build- it appears there is a missing include in the generated source files...