Skip to main content
Visitor II
September 19, 2024
Solved

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

  • September 19, 2024
  • 1 reply
  • 1067 views

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

    This topic has been closed for replies.
    Best answer by STea

    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

    1 reply

    STeaAnswer
    ST Employee
    September 19, 2024

    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

    FGomeAuthor
    Visitor II
    September 20, 2024

    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