summaryrefslogtreecommitdiff
path: root/altoslib/AltosDebug.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-08 20:04:43 -0800
committerKeith Packard <keithp@keithp.com>2013-12-08 20:04:43 -0800
commit4e1b134e29313a1bdac18de57fe547299e5ded2a (patch)
tree3b233d094b01410d67598b199b1e2014b5ae090d /altoslib/AltosDebug.java
parent1183417145de549b9281f9e210d216facf3a94ef (diff)
altoslib: Use symbols in AltosRomconfig instead of fixed offsets
The new Hexfile symbol code automatically adds the needed romconfig symbols for cc1111 products, and ARM-based products have symbols in the .ihx files. This means that we can rely on using symbols when finding config values in memory. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosDebug.java')
-rw-r--r--altoslib/AltosDebug.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/altoslib/AltosDebug.java b/altoslib/AltosDebug.java
index 76c13d57..8faab03b 100644
--- a/altoslib/AltosDebug.java
+++ b/altoslib/AltosDebug.java
@@ -260,7 +260,8 @@ public class AltosDebug {
public AltosRomconfig romconfig() {
try {
byte[] bytes = read_memory(0xa0, 10);
- return new AltosRomconfig(bytes, 0);
+ AltosHexfile hexfile = new AltosHexfile (bytes, 0xa0);
+ return new AltosRomconfig(hexfile);
} catch (IOException ie) {
} catch (InterruptedException ie) {
}