2021-12-06 09:23 AM
2021-12-06 09:31 AM
Use the linker script or scatter file to describe memory sections.
Use #pragma or __attribute__ directives to place code in described sections.
Fix the startup.s code to initialize the statics properly, and what every stack/heap allocation methods you're using ie _sbrk()
Keil will do this cleanly, ST's GNU/GCC, bit of a cluster. Study docs for tools you have chosen to use.
2021-12-09 02:24 AM
For startup code in C and linker script example have a look here: