We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm using code banking with a 1 Mbit eprom and have specified 2 banks. The Bank size specified in uVison/51 is 4000h,0ffffh. Most of the application code is in bank 0 and the final application printout and graphics code is in bank 1. Recently I ran out room in bank 0 and had to move some code over to bank 1 in the uVison/51 application. Everything compiles fine but now the program graphics and printout format choppy,distorted, and not performing as expected. --------------------------------------------------------------------------------
I've never actually used code banking with compiler support. I have accessed large code tables using my own C mechanisms. I cannot answer your question. You might see if you can get all your oft called functions into the common bank (if there is such a notion in Keil). I'm sure you pay a penalty in performance when ever you switch code banks. - Mark