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

2 Code bank with Single SRAM

Hello,
If we create 2 Banks for our project, for using more than 64K program.

1.We wanted to common SRAM for both the banks. Please describe how we can control the SRAM with 2 banks program;

2.When we create 2 banks for program; after compile; our SRAM getting dubbeld

Details:
>> We are using 89C51X2BN, with External EP-Rom Winbond 27C010-70, SRAM: 62-256

>> earlier we are using Franklin 3.2; (Dos Based Compiler) and we created 2 different Hex Files(1 Main Program and 2 Print Program)
with this our product working perfectly,) the same we did in Keil PK51)
The system start working but when we use 2 part program; and same time used 1 Part program > system goes hang)

After seen the Code banking on keil site, we did required correction; result our SRAM dubbeld.

Please guide us.

Parents
  • This may partly be a language problem, but your problem description is almost impossible to understand. You'll have to explain yourself more clearly before anybody can help you.

    1.We wanted to common SRAM for both the banks. Please describe how we can control the SRAM with 2 banks program;

    What do you think you have to "control" about that SRAM? What makes you believe you need different "control" in a banked program than in a traditional one?

    our SRAM getting dubbeld

    I have no idea what you're trying to tell us there. What exactly did you observe, and why did lead you to the conclusion that something was getting doubled?

    What I think you're doing there is that you're trying to roll your own code banking, without telling the Keil tools what you're doing. That can't work. You either have to use Keil's code banking scheme, or at least keep the tools informed about your non-standard actions.

Reply
  • This may partly be a language problem, but your problem description is almost impossible to understand. You'll have to explain yourself more clearly before anybody can help you.

    1.We wanted to common SRAM for both the banks. Please describe how we can control the SRAM with 2 banks program;

    What do you think you have to "control" about that SRAM? What makes you believe you need different "control" in a banked program than in a traditional one?

    our SRAM getting dubbeld

    I have no idea what you're trying to tell us there. What exactly did you observe, and why did lead you to the conclusion that something was getting doubled?

    What I think you're doing there is that you're trying to roll your own code banking, without telling the Keil tools what you're doing. That can't work. You either have to use Keil's code banking scheme, or at least keep the tools informed about your non-standard actions.

Children