Hi All,
I'm working on Security Access 0x27. For the seed request, the Csm_RandomGenerate function will generate a 15 byte Random Number which is part of seed. The control eventually reaches the Csec_GenerateRnd function to generate random numbers.
I'm facing an issue with Csec_GenerateRnd function, the Csec_eState variable has to be in CSEC_IDLE state for it to give the response needed. But initially the state of Csec_eState comes as "unknown". On forcing it to CSEC_IDLE state from the next iteration onwards, I am getting positive response. what is the reason of this behaviour?
Hello @PraveenKumarD1 ,
Have you checked Csec_eState's value when your application is started up, i.e. the initialized value of Csec_eState in runtime? Is it CSEC_IDLE, CSEC_BUSY or a random value?
A potential reason is the value of the address, where stored Csec_eState, has been accidentally modified during runtime. Can you set a breakpoint in the address where stored Csec_eState, and observe whether any abnormal behavior happens?
Best Regards,
Nam
Are you familiar with Microsoft Teams? I can send you an invitation. Otherwise please recommend preferred meeting environment.
In which timeslot you're available? I'm available from 9:30AM to 12:00AM and from 1:30PM to 6:00PM ICT (GMT +7).
What's your email address?
Best Regards,
Nam
Yea Microsoft Teams is fine for me. 14th June, Monday at 2PM IST will be fine with me.
My email address: praveen.kumar@avinsystems.com
Hello @PraveenKumarD1,
Is this the first time after initialization, the Csec_eState value is checked? It's pretty strange to me, as the Csec_eState variable is already initialized: