From 840fee14948a16a7819f5a55eb45cb4b289ef0da Mon Sep 17 00:00:00 2001 From: Piotr Zierhoffer Date: Thu, 1 Feb 2018 17:28:40 +0100 Subject: [PATCH] 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. --- examples/rpl-udp/cc2538-node.resc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rpl-udp/cc2538-node.resc b/examples/rpl-udp/cc2538-node.resc index 55a043852..8d5b94329 100644 --- a/examples/rpl-udp/cc2538-node.resc +++ b/examples/rpl-udp/cc2538-node.resc @@ -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