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

Code Banking

My project(Media Player) aim is to use only 32k of Program memory of 8032 of the present 128k. The 128k Program memory (SRAM) will be replaced by a 32k SRAM after this project is successful.
Presently,once the system is On, the 116k of 8032 code is parsed from the Image file
(4Mb)which resides in the Nand Flash memory.
After parsing the 116k of 8032 code resides in the 128k Program memory of 8032 and code banking is done.
(For this the L51_BANK.a51 file is used in which ?B_NBANKS is set as 2.

So,does this mean that there are two code banks (Bank0 & Bank1)?Also does it include the common code(area)?

Also the hardware for code banking exists.
I have thought of a method:
AFTER THE SYSTEM IS POWERED ON, THE BOOT
LOADER WILL INITIALIZE THE PERIPHERALS
AND DO PARSING(EXTRACTION).
THE PARSING SHOULD BE SUCH THAT DSP CODE MUST RESIDE IN DSP'S PM , 8032 CODE OF 32K
(OUT OF 116K) MUST RESIDE IN THE 128k, 8032'S PROGRAM MEMORY. THE REMAINDER PART OF 8032's 116K CODE WILL RESIDE IN THE NAND FLASH(size:128M x 8) ITSELF after PARSING.

Please kindly suggest whether this method will do. or is there any other way out.

Also for 116k of code , how many code banks
are required ? How to decide the size of each
code bank & the common area ?

0