Commit ac123760 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Updated testing of gateware version in some scripts

parent f4465178
......@@ -248,7 +248,7 @@ if __name__ == "__main__":
gwvers = elma.read(slot, 0x04) & 0xff
baseaddr = 0x200
if (boardid == 0x54424c4f):
if ((gwvers > 0x10) and (gwvers < 0x30)):
if ((gwvers >= 0x10) and (gwvers <= 0x22)):
baseaddr = 0x080
# Create onewire and thermometer objects
......
......@@ -69,7 +69,7 @@ def mass_multiboot(write, gw_path, iprog, iprogaddr):
gwvers = elma.read(slot, 0x4) & 0xff
if (gwvers == 0xff):
mb_base = 0x300
elif ((gwvers > 0x10) and (gwvers < 0x23)) or \
elif ((gwvers >= 0x10) and (gwvers <= 0x22)) or \
(((gwvers & 0xf0) == 0x00) and (gwvers < 0x02)):
mb_base = 0x40
......
......@@ -99,7 +99,7 @@ if __name__ == "__main__":
if (boardid == 0x54424c4f):
if (gwvers == 0xff):
baseaddr = 0x300
elif ((gwvers > 0x10) and (gwvers < 0x23)) or \
elif ((gwvers >= 0x10) and (gwvers <= 0x22)) or \
(((gwvers & 0xf0) == 0x00) and (gwvers < 0x02)):
baseaddr = 0x040
......
Markdown is supported
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