This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

code banking size controlling

using c8051f120 I built a project with a code size 62 k (2 k less then limit of 64 k).

Next I made my project banked as follows: c8051f120 support 4 banks with 32 k (128 k total), bank#0 is used as common bank. I placed only one small function in separate module in Bank#1 All other project in Common (Bank#0). So the code for common bank exceeds 32 k limit for bank but compilation is successful without errors and warnings. WHY?

Next I chose another small module and placed it in Bank#2
So I Have something like this

60 k => Common
 1 k => Bank#1
 1 k => Bank#2


with the bank size 32 k But this project succesfully compiled again.

Can anybody explain Should there be warning for code size for each bank or not?

Parents
  • "I Have something like this

    60 K => Common
     1 K => Bank#1
     1 K => Bank#2
    

    with the bank size 32 K...

    If the bank size is 32K, how can you have a 60K common area?

    BTW: Note that it should be an uppercase 'K' for 1024;
    lowercase 'k' is 1000

Reply
  • "I Have something like this

    60 K => Common
     1 K => Bank#1
     1 K => Bank#2
    

    with the bank size 32 K...

    If the bank size is 32K, how can you have a 60K common area?

    BTW: Note that it should be an uppercase 'K' for 1024;
    lowercase 'k' is 1000

Children