Interrupts on 5282 (VBR)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interrupts on 5282 (VBR)

2,460件の閲覧回数
SVC1
Contributor I
Hi,
When I burn my application in internal flash
at address 0x0, and copy vector table in
internal SRAM (address 0x20000000), timer
interrupt works fine.
 
Code:
void initialize_exceptions(void){   // Memory map definitions from linker command files used by mcf5xxx_startup   register uint32 n;    //* Copy the vector table to RAM    for (n = 0; n < 256; n++) __VECTOR_RAM[n] = (uint32)VECTOR_TABLE[n];  // __VECTOR_RAM is set to 0x20000000  mcf5xxx_wr_vbr((uint32)__VECTOR_RAM); }

 
When I burn the same application in internal flash
at address 0x8000, and copy vector table in
internal SRAM (address 0x20000000), timer
interrupt does NOT work.
 
Any clue?
 
Thanks,
Simon
 
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,156件の閲覧回数
UK_CF_FAE
NXP Employee
NXP Employee
0x8000 is not on a 1Mbyte boundary.
0 件の賞賛
返信

1,156件の閲覧回数
SVC1
Contributor I
I am copying the vector table in SRAM at address 0x2000_0000 and setting the VBR to this address!
 
Simon
 
 
0 件の賞賛
返信

1,156件の閲覧回数
JimDon
Senior Contributor III
Ya, but if your vector tabel is not at 0 during a reset, not going to work.
Did you change this?

Code:
   vectorrom   (RX)  : ORIGIN = 0x00000000, LENGTH = 0x00000400

 



0 件の賞賛
返信