I have following question about code banking. There's some small tests, that uses one big library. So, how can I put this library to different code banks? Ofc, I can include this tests right in library project, but are there any other solutions?
Your question is based on rather complete misunderstanding of what a library is for. There's nothing to be gained from forcing its code into a particular bank.
"There's nothing to be gained from forcing its code into a particular bank." Well, I have a library > 64k. And so?
What you're being told is that you don't need to explicitly specify which bank the code goes into. The linker will fit the code into the banks which you say are available.
That should work.
When you get a deeper understanding of the banking mechanism and linker controls, you could (if you feel it is necessary) start locating certain blocks of code into specific banks - But if the code runs at an acceptable speed, then you do not have to.
"What you're being told is that you don't need to explicitly specify which bank the code goes into. The linker will fit the code into the banks which you say are available." Sure? But linker can't split library to different code banks. It's not a project or smth. It's only .LIB with some API. Ive solved this problem, but I dont like my solution at all. And I want another one.
Mb, I need to explain. Ive include library with code>64k in project. And I want to split it to different code bank, because its the only way to compile this project.
*code banks
View all questions in Keil forum