Skip to main content
GFalz.1
Associate
September 3, 2020
Solved

SRAM2 parity checking.

  • September 3, 2020
  • 3 replies
  • 939 views

I am using an STM32L452CE. I copy an executable (.bin) from Flash to SRAM2. I zero out the remaining SRAM2. I then 'jump' to the executable now in SRAM2. When I have the parity error checking off (FLASH_OPTR_SRAM2_PE = 1) it works fine. When I turn it on it does not work. Any ideas / suggestions would be much appreciated.

This topic has been closed for replies.
Best answer by GFalz.1
I found the issue. The app I am ‘jumping to’ changed the bits in the OPTR register back to disabling parity error checking, so the chip was constantly resetting.
Thanks for your reply though…

3 replies

waclawek.jan
Super User
September 3, 2020

> it does not work

What are exactly the symptoms?

How do you exactly set the parity checking bit, in the option bytes (i.e. programmed into the nonvolatile area), or in the FLASH_OPTR register?

Try reading after writing to SRAM2, before jumping to it.

JW

GFalz.1
GFalz.1AuthorBest answer
Associate
September 4, 2020
I found the issue. The app I am ‘jumping to’ changed the bits in the OPTR register back to disabling parity error checking, so the chip was constantly resetting.
Thanks for your reply though…
waclawek.jan
Super User
September 4, 2020

Nice catch!

Please select your post as Best so that thread is marked as solved.

JW