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

Problem with Code Banking using C8051F124

Hi,
I am using Silicon labs C8051F124 controller. I am trying the code banking using Keil ver 8.01, as my code has exceeded 64K. I have made 4 banks of 32K each and assigned my files to these banks. I have also made changes to the L51_Bank.a51 and Startup.a51 files accordingly. I am using the LX51 linker. It is specicially mentioned in the example program to use the merge32 option when using code banking. But, the merge32 option in the target window gets automatically disabled in my settings when I choose the LX51 linker in the target settings.

I am still able to generate the hex file for my project but when I see the hex file with a hex file editor, my first 64K is shown as FF where as I have code written on to the common area and the bank 1.

Due to this, when I download the hex file to the controller, my system doesnot respond

Please guide me how to correct this problem.

Regards,

Mohit Gupta

Parents
  • Hi

    My problem is solved. Actually I was setting the code bank range from 0000 to 7FFF as given in the example code of AN030 by Silicon Labs. Due to this, the merge32K option was being disabled.

    But in the application note of silicon labs, the code bank range was given as 8000 to ffff. By doing this, the problem was resolved.

    Thanks,

    Mohit

Reply
  • Hi

    My problem is solved. Actually I was setting the code bank range from 0000 to 7FFF as given in the example code of AN030 by Silicon Labs. Due to this, the merge32K option was being disabled.

    But in the application note of silicon labs, the code bank range was given as 8000 to ffff. By doing this, the problem was resolved.

    Thanks,

    Mohit

Children
No data