Interrupt vector location

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

Interrupt vector location

2,505 次查看
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 回复

796 次查看
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 项奖励
回复