Vector address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Vector address

1,542 次查看
DavidoBG
Contributor II
My application contains a bootloader in 0xFA00 to FDFF zone protected. In 0xFE00 to 0xFFFF, i have just reset vector @ 0xFFFE:FFFF (zone protected too).
My application use an interrupt SCI rx. So i put VECTOR ADDRESS 0xF9E0  isr_rx in prm file. When i use True time Simulator and i put 0x10 for example in SCI In module, an interrupt is called but @ 0xFFE0 instead of 0xF9E0???!!!

Error: At location FFE0 -

Error: Attempt to use invalid or uninitialized memory

Error: Interrupt processing failed.

 

Do you have any idea about this issue
thanks
David
 
标签 (1)
0 项奖励
回复
2 回复数

525 次查看
DavidoBG
Contributor II
I used MC9S08QE8 (HCS08).
I try to use a vector redirection but without success.
But when i used vector redirection (0xF9C0-0xF9FD) instead of FFC0-FFFD in my C program, my SCI rx interrupt call $0xFFE0 instead of $0xF9E0.
0xFFE0:FFE1 = 0xFFFF 
0xF9E0:F9E1 = 0xE5A9 = isr_rx
 
When i debug my program with True Time Simulator, an error appears :

Error: At location FFE0 -

Error: Attempt to use invalid or uninitialized memory

Error: Interrupt processing failed.

I don't understand why?

David

 

0 项奖励
回复

525 次查看
Lundin
Senior Contributor IV
The answer entirely depends on which 8-bit micro are you using. HC08, HCS08, HC11, HC05...?


I assume HCS08. The vector table on the S08 is located from FFC0 to FFFF. There is no vector table at F9E0. FFE0 is the SPI interrupt.

Please post the .prm file and the vector table code.
0 项奖励
回复