working with the msp432, How do i map a function into RAM ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
working with the msp432, How do i map a function into RAM ?
Does Placing functions in RAM answer your question?
Which version of the compiler are you using?Shai Gigi said:i'd tried it but got the following warning:
#1173-D unknown attribute "ramfunc" C/C++ Problem
The "ramfunc" attribute is available in Ti ARM compiler version 15.6 and greater.
See http://processors.wiki.ti.com/index.php/Compiler_Updates#Install_new_features for how to get a new compiler version.
As explained by Compiler Updates to get a major compiler update you have to either:Shai Gigi said:I have arm compiler version 5.2.8 but when i try to update it , i get "no updates were found" message
a) Use Help -> Install New Software
b) Use the CCS App Center
I performed a test of adding __attribute__((ramfunc)) to functions in an existing MSP432 project using the TI v16.9.0 LTS compiler.Shai Gigi said:but still whenever i try to start a debug session, the debugger window is stuck and shows only red stop button.
When __attribute__((ramfunc)) was used on the main function, when a debug session was started the program didn't halt at main the the debugger window only showed a red stop button. Since the program did flash a LED could see that the program was actually running. When I selected the "Texas Instruments XDS110 USB Debug Probe/Cortex_M4_0 (Running)" line in the Debug window the pause button became available, and could pause the program.
In the CCS project properties under Debug -> Misc/Other Options unticked the "Allow software breakpoints to be used". With the use of software breakpoints disabled, when started a debug session the program was halted at the start of the main function (in RAM). Does that resolve your problem?
Having the main function placed in RAM seems to stop the CCS debugger from running to main when software breakpoints are used - presumably since the act of copying the main function from flash to ram overwrites the software breakpoint.
I have attached a simple example project with the ISR placed in RAM. Could you test with your setup?
Hi.
Thank you.
Eventually i uninstall the whole ccs environment. when i installed it again the asmfunc attribute was working without any change in my project.
I was expecting that TI tools will be more stable and reliable, it was a waist of dozen hours.
**Attention** This is a public forum