The keil micro vision help files say that up to 64 code banks are allowed using LX51 linker/locator. I'm getting this error message when i try to use 64 bank registers: *** ERROR: ADDRESS OUTSIDE INTEL-HEX RANGE (USE 'H386'CONTROL) What does it mean exactly? Also, is there any way to use more than 64 banks? Modifying the L51_BANK file? Thanks.
Actually, I am not writing any program that uses that amount of banks with a 8051, but i need to test that my 8051 device is able to do it. With this particular 8051 device, there might be situations where customers might need more than 4,8,16,32 or even 64 pages.
the H386 control is enabled with Project - Options for Target - Output - HEX format: HEX-386. I agree, the message is a bit confusing. Reinhard
but i need to test that my 8051 device is able to do it WHY? Erik
Ok! Thanks, no more error. However, there is a new warning when I try to use more than 8 banks in mode 0: L_51BANK.A51(492): warning A52: VALUE HAS BEEN TRUNCATED TO 8 BITS Any idea?
I have no Idea, but one thought comes to mind: if chip selewct is generated on P1, then you can not have more than 8. Erik Again, WHY, WHY, WHY are you trying to make the '51 a PC?
This is a device that incorporates a 8051 micro and a modem in the same IC. Long program codes may be necessary to control the modem. There are 8 pins in my P1, up to 256 banks may be selected with this port. Thanks.
I cannot duplicate this error here. Can you send the current configuration of the L51_BANK.A51 to support.intl@keil.com.
Long program codes may be necessary to control the modem. yes, about 2k's worth There are 8 pins in my P1, up to 256 banks may be selected with this port. My best6 recollection from the days when I stupidly considered banking is that there are 2 modes: P1 make chip select (max 8) and P1 makes chip number (256) Erik
Why? Because we can't say that our device is able to do something and sell it before we test it... I don't need to select different chips, all the banks are in the same memory chip, I use P1 to switch bank within this memory.
Don't worry, I found the problem, I forgot that ?B_FIRSTBIT=5 from my previous setup. I've changed it to 0 and is working properly. I still would like to know if modifying the L51_BANK.A51 file would be enough to use up to 128 or even 256 banks, will the linker complain if I try it? Thanks.
Don't worry I do worry about your sanity. Erik
I know, i'm a bit insane...
there might be situations where customers might need more than 4,8,16,32 or even 64 pages. If so, you're in dire need of better customers.
there might be situations where customers might need more than 4,8,16,32 or even 64 pages. If so, you're in dire need of sane customers. Erik