The Reference Manual has the map of memory regions and is the best source of info for the chip. See "Memory map and register boundary addresses".
https://www.st.com/resource/en/reference_manual/dm00603761-stm32h723733-stm32h725735-and-stm32h730-value-line-advanced-armbased-32bit-mcus-stmicroelectronics.pdf#page=132
Seems like a lot of work when you can just use existing solution for this. Your IDE of choice should have a solution.
"If you feel a post has answered your question, please click ""Accept as Solution""."