IAR and memory banking for 128K flash and 8051

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

Reply to
Amir
Loading thread data ...

Well done for posting your solution - this will make it easier for anyone in the future looking through the newsgroup archives.

mvh.,

David

Reply to
David Brown

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.