Renode: fix vector table offset in the script.
The cc2538-node.resc script was vulnerable to changing the position of the vector table. It also had a wrong hardcoded value. Now it will automatically verify the position of the `vectors` symbol and set the vtor position accordingly.
This commit is contained in:
parent
236a696403
commit
840fee1494
@ -24,7 +24,7 @@ macro reset
|
||||
sysbus LoadBinary @http://antmicro.com/projects/renode/cc2538_rom_dump.bin-s_524288-0c196cdc21b5397f82e0ff42b206d1cc4b6d7522 0x0
|
||||
sysbus LoadELF $bin
|
||||
|
||||
cpu VectorTableOffset 0x200000
|
||||
cpu VectorTableOffset `sysbus GetSymbolAddress "vectors"`
|
||||
"""
|
||||
|
||||
runMacro $reset
|
||||
|
Loading…
Reference in New Issue
Block a user