Hi,
this can be done by section attribute and modifying the linker script file (please see attached example).
main.c:
jiri_kral_1-1692710142851.png
Linker script file:
jiri_kral_2-1692710190734.png
jiri_kral_3-1692710250535.png
.map file:
jiri_kral_0-1692710035675.png
But the question is why you need such function on particular address in the Flash memory? Why you can't use for example pointer to the function? From my point of view it is an unusual approach.