S32K148 SM_101 Implementation question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K148 SM_101 Implementation question

跳至解决方案
609 次查看
nsiegel
Contributor V

Hello, our customer has a couple of questions pertaining the last implementation hint of SM_101 for S32K148:   "A checksum may be calculated on safety-critical data at the source prior to transfer, then recalculated at the destination after transfer."

Q1:  How does CRC calculation help with the detection of spurious, excessive, or constant activation?  What is the link here?

 

Some of our safety-critical data is generated by the ADC module. This data is copied to RAM by the eDMA, which is later on retrieved and used by our code. If we would like to add a CRC to the ADC result data, we would need our C code to access the raw ADC data, meaning that the eDMA would not really be relevant anymore. 

Q2:  How can this implementation hint be compatible with the MCAL implementation of the ADC module? 

标签 (1)
0 项奖励
1 解答
547 次查看
antoinedubois
NXP Employee
NXP Employee

Q1, if you are copying a big piece of memory from one memory to the other, if there were any DMA interference and the data are not copying correctly, you will miss some data in the arrival, therefore the CRC will be incorrect.

Q2: yes the CRC is not relevant for ADC transfer, this is more for these concept they may be more useful:

 
 

Capture12345.PNG

 For ADC you may also have a way to protect against incorrect ADC sampling (redundancy with plausibility check, Out of range...). You can use this as a safety measure to protect the DMA transfer, in case some sample or lost due to excessive or spurious request.

 

 

 

在原帖中查看解决方案

0 项奖励
1 回复
548 次查看
antoinedubois
NXP Employee
NXP Employee

Q1, if you are copying a big piece of memory from one memory to the other, if there were any DMA interference and the data are not copying correctly, you will miss some data in the arrival, therefore the CRC will be incorrect.

Q2: yes the CRC is not relevant for ADC transfer, this is more for these concept they may be more useful:

 
 

Capture12345.PNG

 For ADC you may also have a way to protect against incorrect ADC sampling (redundancy with plausibility check, Out of range...). You can use this as a safety measure to protect the DMA transfer, in case some sample or lost due to excessive or spurious request.

 

 

 

0 项奖励