Commit 840fee14 authored by Piotr Zierhoffer's avatar Piotr Zierhoffer
Browse files

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.
parent 236a6964
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment