Interrupt vector location

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interrupt vector location

2,118 Views
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

 

Labels (1)
0 Kudos
Reply
1 Reply

409 Views
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 Kudos
Reply