cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to force parity errors on SRAM2 on STM32L4xx?

FGome
Associate II

I want to test the code to handle SRAM2 parity errors, is there any way to force a parity error to test the code?

When a write is made the 36 (32+4) bits are updated, is there a way to update only the 32 bits or the 4 parity bits?

Or is it possible to deactivate parity check, write a value to SRAM2 (in this case it will not update the 4 parity bits, right?), activate parity check and then read the memory position?

Thanks!

Fernando

1 ACCEPTED SOLUTION

Accepted Solutions
STea
ST Employee

Hello @FGome ,

please refer to How to use SRAM Parity in your application - STMicroelectronics Community
in which you have a way to test the functionality .
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
STea
ST Employee

Hello @FGome ,

please refer to How to use SRAM Parity in your application - STMicroelectronics Community
in which you have a way to test the functionality .
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
FGome
Associate II

Hi STea

Thank you for your information. I have implemented the SRAM parity test leaving the last zone of the SRAM2 uninitialized, and when I want to generate a parity error I just read from that uninitialized location. That way I could trigger the error when necessary to test the implementation of the recovery process.

Best regards

Fernando