Hello,
I am using Keil uVision 3.x to develop code for ST's ARM9 processor. In the uVision's Project->Options for 'target" window, the "C/C++" Tab, I have an option --feedback "myfile.fed". This option tells the compiler to generate file myfile.fed. In the "Linker" Tab, I have the same option as for the compiler, but to read the file. This --feedback option is to inform the compiler and the linker to share the myfile.fed for reducing memory space of unused code.
However, when I do a "build clean", the tool will delete that file and the uVision will sense the missing of the file and remove the option. I must use the option in order for my code to fit in the memory.
Does anyone have similar experience or knowledge on how to fix the problem, I would very grateful.
(FYI, I can manually copy the file back to the folder to cheat on uVision and it works. But I prefer a real fix.)
I noticed that the "Compiler control string" window in the C/C++ tab is not modifiable directly. But can not find a place where I can configure it. Please help.
Thanks a lot.
Jianbai
Not sure if this feature is present on your toolchain - v3.x long predates me (current version is 5.28), but you could implement a post build step (Project Options -> User tab) to copy the linker outputted feedback file to a "safe" location, and then use this as the input to the compiler.
Modifying the compiler control string would be done in the Misc Controls window (again, not sure what is present in 3.x).
Regards
Ronan
Ronan Synnott said:Not sure if this feature is present on your toolchain
This ancient App Note has some screenshots from uVision-2:
http://www.keil.com/appnotes/files/apnt_159.pdf
page 4 shows that post-build steps were available then, so I'd be pretty sure they did persist into uVision-3 ...
As both the tool and the Target are really ancient, it seems odd to be just reporting this now! Surely, it must be a legacy project - so how did the previous generations of developers & maintainers manage this?