Interrupt vector location

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

Interrupt vector location

2,139件の閲覧回数
UDP
Contributor I

Hello

Where is the interupppt vector locate in the S19 file?.

In the lcf file it's written:

vectorram(RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400

But i don't see 0x20000000 address in the S19. is it right that this vector is locate in address 0 in the S19 file?

Can i change it location?

Does it prevent from me to use this sector(i can't erase it and burn it)?

Thanks

 

ラベル(1)
0 件の賞賛
返信
1 返信

430件の閲覧回数
CrasyCat
Specialist III
Hello
 
In fact when you are using the build target "M5213EVB Internal ROM", the application is supposed to run from flash.
 
The vector table is then remapped to RAM and the content of the vector table is copied from 0x0000-0x3FF to 0x20000000-200003FF in the startup code.
This is done in module sysinit.c in function mcf5213_init.
This is done that way to allow you to update the vector table in the application itself easily.
 
So your S record file should contain the initial vector table setting at 0x0000.
Anyway S record file is supposed to contain only code and data located into flash. This is the file you have to use to program your flash.
 
I hope this helps.
 
CrasyCat
0 件の賞賛
返信