EmbeddedRelated.com
Forums
Memfault Beyond the Launch

IAR and memory banking for 128K flash and 8051

Started by Amir February 13, 2008
On Feb 18, 11:26=A0am, Amir <amiri.a...@gmail.com> wrote:
> On Feb 13, 5:06=A0pm, Amir <amiri.a...@gmail.com> wrote: > > > Hi all, > > > I am trying to use code banking for 8051 microcontroller using IAR... > > Reading the IAR and XLINK documents didnt help...I appreciate some > > info from any one with some hand on experience.. > > > Regards, > > Amir > > OK all! Thank you for all. Special thanks to fellows like George and > Anthon who only discussed the real issue. Also thank you all others > like David who simply made this thread exponentially growing with > useless, unrelated, time-consuming comments. I am calling this threat > off....
HERE IS THE SOLUTION... 1. Project Settings in IAR for Banking Scheme (data model, etc..) 2. Keeping the core part of the code in ROOT CODE memory using "__near_func" attribute. i.e. main(), low level initialization functions 3. Modification of the linker file as suggested by Compiler reference guide for banking system. 4. VERY IMPORTANT: replace the original startup code (which is for non- banked model) with the banked model startup files found in the tools installation directory. This is done by including the files in the project (Project ->Add Files). 5. Read the references for more info... Thank you All... Amir
Amir wrote:
> On Feb 18, 11:26 am, Amir <amiri.a...@gmail.com> wrote: >> On Feb 13, 5:06 pm, Amir <amiri.a...@gmail.com> wrote: >> >>> Hi all, >>> I am trying to use code banking for 8051 microcontroller using IAR... >>> Reading the IAR and XLINK documents didnt help...I appreciate some >>> info from any one with some hand on experience.. >>> Regards, >>> Amir >> OK all! Thank you for all. Special thanks to fellows like George and >> Anthon who only discussed the real issue. Also thank you all others >> like David who simply made this thread exponentially growing with >> useless, unrelated, time-consuming comments. I am calling this threat >> off.... > > HERE IS THE SOLUTION... > > 1. Project Settings in IAR for Banking Scheme (data model, etc..) > 2. Keeping the core part of the code in ROOT CODE memory using > "__near_func" attribute. i.e. main(), low level initialization > functions > 3. Modification of the linker file as suggested by Compiler reference > guide for banking system. > 4. VERY IMPORTANT: replace the original startup code (which is for non- > banked model) with the banked model startup files found in the tools > installation directory. This is done by including the files in the > project (Project ->Add Files). > 5. Read the references for more info... > > Thank you All... > Amir >
Well done for posting your solution - this will make it easier for anyone in the future looking through the newsgroup archives. mvh., David

Memfault Beyond the Launch