Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/MSP430FR5969: saving data and code in a specific memory.

$
0
0

Part Number:MSP430FR5969

Tool/software: Code Composer Studio

I have some questions about saving data to an specific memory.

I know how to save data in a location I want for the whole program.

If I change the linker command file which is lnk_msp430fr5969 for my program, I could select where to save 

But I would like to save each function in other space. 

For example, If there are func1, func2, func3, func4 in my program, 

There will be an .bss, .data, .stack space for each function. 

When I change an lnk_msp430fr5969 file below, 

.bss : {} > RAM /* Global & static vars */
.data : {} > RAM /* Global & static vars */
.TI.noinit : {} > RAM /* For #pragma noinit */
.stack : {} > RAM (HIGH) /* Software system stack */

.bss for the all functions will be saved in SRAM.

but what if I would like to save .bss for func1 and func2 to SRAM and .bss for func3, func4 for FRAM?

How can I set the data location for each function? 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>