cancel
Showing results for 
Search instead for 
Did you mean: 

Code banking

info44
Associate II
Posted on February 28, 2003 at 19:45

Code banking

2 REPLIES 2
info44
Associate II
Posted on May 17, 2011 at 11:53

I've got tu put the example code DK3200_1 on the main flash.

In psdexpress i've defined the mzin flash in programm olnly and second flash in code only. I've defined 3 bits in the page register.

In the keil compiler i select 8 bank from adress 8000h to FFFFh and insert the L51_bank.a51 file in the project. In this file I configure N_BANKS=8, B_MODE=1 ??? B_XDATAPORT=2E0h (csiop + page register adress) and B_FIRSTBIT=0.

If anybody could help me, thanks.

joseph2399
Associate II
Posted on May 17, 2011 at 11:53

If you want to boot from the Main Flash, FS0, make sure it is mapped to 0 - 0x7FFF, I know that Dk3200_1 has FS0 mapped to 0x8000-0xFFFF. You can put the other FSx to the upper memory( 0x8000-0xFFFF). Also since CSBOOTx is in data space now, you need to move them to beyond 0x4000, since rs0 is mapped to 0x2000-0x3fff and csiop and lcd_e are mapped to 0x200-0x3FF of the data space in the DK3200_1 example.