Hello !
I can see this error event is deprecated.
What other registers can be used if any error occurs during on-fly encryption/decryption process ?
In case of RX , MIC error is available only.
Regards,
Eugene
Hi Einar !
in case of encryption MICSTATUS keep 0 value ( failed ) but it is not relevant for encryption.
Basically OUTPTR ( PACKETPTR ) should point to empty/zerroed big enought buffer becouse INPTR point to original buffer.
Is this so ?
So byte S1 is not mandatory for support on fly operations. In my case it is not used and I have start to think should I add it becouse it must.
Regards,
Eugene
Hiihtaja said:Basically OUTPTR ( PACKETPTR ) should point to empty/zerroed big enought buffer becouse INPTR point to original buffer.
Is this so ?
INPTR points to the buffer holding the clear text data that is input data to the encryption operation. OUTPTR points to the output data that will hold the ciphertext. There is no need to memset this buffer to 0, but it must be big enough to hold the output data including the MIC.
Hiihtaja said:So byte S1 is not mandatory for support on fly operations. In my case it is not used and I have start to think should I add it becouse it must.
That is application specific. Which packet format do you need on air? You may find this short post interesting.
Hi !
I found next clear dependence.
S1 is need ( I have set it to 8 bit) if CCM co-processor work synchronously with radio.
But without radio, S1 can be used but it is not mandatory.
Can it be so that S1 is mandatory field if decryption should work synchronously with radio ?
Regards,
Eugene
Hi Eugene,
I am not able to see that there is a hard requirement. But it depends on the packet format you need/want on air. This short post gives a basic overview.