IAR and memory banking for 128K flash and 8051

Feb 14, 2008 41 Replies

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required