DSPRelated.com
Forums

ISR for SDRAM

Started by Marko Babic March 31, 2003
Hi together,

can somebody help me, how to solve my momentary last problem ??
I can't manage to put my 2 projects to a running final one...cause its .text
section is about 74k => I have to put it into SDRAM
==>> BUT in this case my ISR (=interrupt sevice routine) does not run. (although
no compiling errors occured)...when I use the .cmd-file and interrupt vectors_11
file at the bottom of the page.

Does anybody now which initialisations are neccessary to interrupt into SDRAM
???

Hope somebody helps, cause the deadline of my diploma project is nearing...
OR at least has any suggestions what else to try...

Thank you,
Marko

P.S. I am using "Far calls & Data (-ml3)" for memory model !

******************************************************************
****** CMD-file
*****
******************************************************************
MEMORY
{
VECS: org = 0x00000000, len = 0x220
/* 528 Byte */
IRAM: org = 0x00000220, len = 0x0000FDC0
/*internal memory 64k*/
SDRAM: org = 0x80000000, len = 0x01000000
/*external memory 16M*/
FLASH: org = 0x90000000, len = 0x00020000
/*flash memory128k*/
}

SECTIONS
{
vectors :> SDRAM
.text :> SDRAM
.bss :> IRAM
.cinit :> IRAM
.stack :> IRAM
.sysmem :> SDRAM
.const :> IRAM
.switch :> IRAM
.far :> SDRAM
.cio :> SDRAM
}

******************************************************************
****** vectors_11.asm for interrupt *****
******************************************************************
*Vectors_11.asm Vector file for interrupt-driven program

.ref _c_int11 ;ISR used in C program
.ref _c_int00 ;entry address
.sect "vectors" ;section for vectors

RESET_RST: mvkl .S2 _c_int00,B0 ;lower 16 bits --> B0
mvkh .S2 _c_int00,B0 ;upper 16 bits --> B0
B .S2 B0 ;branch to entry address

NOP ;NOPs for remainder of FP
NOP ;to fill 0x20 Bytes
NOP
NOP
NOP
NMI_RST: .loop 8
NOP ;fill with 8 NOPs
.endloop
RESV1: .loop 8
NOP
.endloop
RESV2: .loop 8
NOP
.endloop
INT4: .loop 8
NOP
.endloop
INT5: .loop 8
NOP
.endloop
INT6: .loop 8
NOP
.endloop
INT7: .loop 8
NOP
.endloop
INT8: .loop 8
NOP
.endloop
INT9: .loop 8
NOP
.endloop
INT10: .loop 8
NOP
.endloop

INT11: b _c_int11 ;branch to ISR
.loop 7
NOP
.endloop

INT12: .loop 8
NOP
.endloop
INT13: .loop 8
NOP
.endloop
INT14: .loop 8
NOP
.endloop
INT15: .loop 8
NOP
.endloop

*******************************************************************
---------------------------------
Gesendet von http://mail.yahoo.de.
Das DiBa-Tagesgeldkonto: 3,5% Zinsen ab dem ersten Euro +
Tankgutschein nur noch bis 31.03. Lassen Sie Ihr Geld arbeiten! Bei
tlicher Verfbarkeit und kostenloser Kontofrung.