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.
Tool/software: TI C/C++ Compiler
Hello
I am implementing motor control software using the MotorControl SDK provided by TI.
by the way, I'm writing here because there's a problem with the inline function.
I called the PI_run_parallel() function in the main_ISR() function of the ramfunc function.
On the top of this .TI.ramfunc function, I wrote down #pragma CODE_SECTION (main_ISR, ".TI.ramfunc").
However, this inline function is not included in the ramfunc area and is creating an object
All other inline functions are well contained in the ram area, and only this function is created as a separate object.
How can I solve this problem?
[cmd file(linker file)]
[inline function]
[mapping file]
The inline function does not enter the ram area below.
The Inline function was created as an object.
This PI_run_parellel inline function(0x0008 7e70) deviated from the position of RamfuncsLoad(0x0008 3070 to 0x0008 3a60).
The function PI_run_parallel is not inlined. It is yet another function in the .text section, and is allocated to same memory range as the other functions in .text.
I do not know why it is not inlined. For a function to be inlined at a particular call site, the full implementation of the function must be visible to the compiler at that point. Is that the case?
Thanks and regards,
-George
Thank you Steve Lim.
It was difficult to proceed with the development due to this problem.
I think we can continue to develop it after we solve it now.