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

Common area duplicated in each bank of the external flash

I'm working with a code-banking project. The configuration of the hardware is a 32k microcontroller and a 512K external flash divided in 16 banks.

My idea is to use the 32K of the microcontroller as dedicated Common area. This way, the Common Code would not be duplicated in each bank of the external flash.

I configure my uVision project defining to use On-Chip ROM (0x0-0x7FFF), Off-Chip code memory (start in 0x8000 and size 0x8000) and 16 banks starting in 0x8000 and ending in 0xFFFF.

My problem is that in the output the Common area is always duplicated in each bank of the external bank. I can't generate the HEX386 output with only Common code in dedicated internal ROM (On-Chip ROM).

Can anybody tell me if I'm forgetting anything ? Is it possible to generate the output without duplicating the Common Code in each bank ?

Many thanks in advance,

Aitor