2006-07-28 03:04 AM
2011-05-17 02:50 AM
Hi,
I have reached a project code over 24kB (KEIL, Memory Model: Large; Code Rom Size: Large). Until now I have used Secondary Flash mapped as Program Space Only and Primary Flash as Data Sace Only. Actual Program size as reported by KEIL: Program Size: data=29.1 xdata=2525 code=22248 Details: rs0 = ((address >= ^h6100) & (address <= ^h7FFF)); csiop = ((address >= ^h6000) & (address <= ^h60FF)); fs0 = ((page == 0) & (address >= ^h8000) & (address <= ^hFFFF)); fs1 = ((page == 1) & (address >= ^h8000) & (address <= ^hFFFF)); fs2 = ((page == 2) & (address >= ^h8000) & (address <= ^hFFFF)); fs3 = ((page == 3) & (address >= ^h8000) & (address <= ^hFFFF)); fs4 = ((page == 4) & (address >= ^h8000) & (address <= ^hFFFF)); fs5 = ((page == 5) & (address >= ^h8000) & (address <= ^hFFFF)); fs6 = ((page == 6) & (address >= ^h8000) & (address <= ^hFFFF)); fs7 = ((page == 7) & (address >= ^h8000) & (address <= ^hFFFF)); csboot0 = ((address >= ^h0000) & (address <= ^h1FFF)); csboot1 = ((address >= ^h2000) & (address <= ^h3FFF)); csboot2 = ((address >= ^h4000) & (address <= ^h5FFF)); With this configuration everything worked well until I reached program size close to 22KB. I work quite a lot with strings (everything is placed in XDATA). But from a certain moment it looks like memory overrun (UART testing).. I would like to have 32kB program space block in Secondary FLASH an keep Main FLASH as data space only. Can you help me, how to konfigure CAPS or PSDSoftExpress together with KEIL to handle this..? Apart from this situation I would also like to have/try program in FS0 and FS1, see CAPS Memory Model - MAP1 (No paging needed). But I am not able to configure KEIL together with CAPS/PSDSoftExpress to work. I tried the same program as above. Can you help what I am doing wrong or what could I forget to do..??? I appreciate any help that could help me, since I am a begginer to uPSD.. Thanks in advance, Tomas