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.

[Trampolines] [CCSv6] Call to a function in a different section does not return

Other Parts Discussed in Thread: OMAPL138

Hi,

I am trying to place a piece of frequently called code in an on chip RAM in the OMAPL138 device. While debugging, the code(function) placed in a different section completes execution however, it does not return to the calling function. Instead calls the exit, and stays there forever.

During compilation, I have turned on the "Generate far call trampolines" option in the linker. 

Shown below is the picture in which the encircled portion is supposed to contain the address of the point where the execution of the calling function should resume (the part which says no symbols are defined for 0x01E1B004).

Following is the Memory Map from the Linker Map file that is generated by the tool. The highlighted ".SRAMCODE" is the section defined for the on chip SRAM.


 

Another observation is that the Linker Map file generated should report the trampolines that are generated. However, I do not find any reported in the Linker Map File.

 

Could you please let me know if I am missing something ?

 

Thank you