I am using Stm32h757 controller.I need to read the ram from 0x24000000 to 0x247FFFFF with RAMECC enable without generating error will this possible? if yes then any how to do this?
I don't use the 'H7, but generally, you first have to write the whole memory, that sets ECC for every word/doubleword in it; then any subsequent read be OK with ECC.
In H7, you probably want to be careful about the caches, too.