SPRADI0A July 2024 – November 2024
Any application code can be either placed in RAM or Flash for storage and run time execution. Placing the code in flash memory allows to store a larger application size since flash is typically bigger than RAM in terms of memory, but executing the code from flash invokes additional wait states while performing read-write operations. Since executing the code from RAM becomes the faster alternative, a solution involving storage of code in flash memory and executing the code from RAM becomes the optimal solution.
If the option to boot from flash is selected as shown in Figure 3-6, the code is stored in flash. To copy and run from RAM, by right clicking on the subsystem block and selecting Block Parameters (Subsystem). Select the Code Generation tab and configure the Memory section for execution functions: as code_ramfuncs from the drop-down menu as shown in Figure 3-7. It is to be noted that if the subsystem is larger than the available memory on the device, compile time error is shown showcasing not enough memory.