Tool/software: Code Composer Studio
As shown in the figure below, before the main function is initialized, I copy the Fun_test(2) function to the RAM area with the address 0x080014FC, and then when I step through the debugging, it actually jumps to 0x080014FC when I run to Fun_test(). Run, but after running all the statements of this function, it directly prompts "No source available for "0x8001538"". What I want to ask is why I don't jump back to where I originally called him.
1, start calling the function, the address of the PC pointer is 0x0000 7428 (in the flash area)
2. The program jumps to 0x080014FC to start the entry of the Fun_test(2) function. The screenshot below is the PC pointer when running to the last statement of Fun_test(2). I thought that after running the last code, the function would jump back to where it was originally called, but it went wrong, see Figure 3.
3. The program execution error, it seems that the prompt is not available code execution.
So, the problem is a function that copies from flash to RAM. Why does this function report an error when it finishes running, and it doesn't jump back to where it was originally called, and then how to solve this problem?