P.S.:
- Be sure not to collide with dedicated areas of your slash memoy (OTP or such). So study the reference manual RM0481 https://www.st.com/resource/en/reference_manual/rm0481-stm32h52333xx-stm32h56263xx-and-stm32h573xx-armbased-32bit-m
- It is up to you how you organize your data. Either you see the flash memory as a stream and keep your data as text like "min=12\nmax=155\0", or you define a struct with your values as layout.
- If you want to change your data at runtime you can not change the area partially. Instead you have to erase the whole page (8kB here AFAIK) and rewrite it with your complete changed data.
- If you change daIt is yourta at runtime and need to be sure to always have a valid configuration you must reserve at least two pages and add a counter to your data set and maybe a check sum. Then to read the data look at both/all pages and see which of them is valid has the highest counter. To write new data take an invalid page or the one with low counter and rewrite this page with new data along with an incremented counter.
(And keep in mind that flash can not be rewritten unlimited. If you rewrite it each second you should have a look on its estimated lifetime.)