This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to run a function in ram that it was copy from SD Card

I have a STM32 CortexM4 microcontroller that has a limited flash memory size. There are many classes in my keil project that they'r never run together.
So i have decided to run these classes distinctly after compile and converting them to a bin file in SD card memory. Whenever i need a class,
i want to copy the bin file from SD Card to internal RAM (in the correct fixed address for example 0x20010000). How can i implement this procedure correctly in the KEIL compiler?
of course i don't want to do any change to my hardware. and i have many other function and classes in my project that they will called by the other classes that i want to copy to RAM, i means that useing Boot loader does not help me in this case.