arm_pack_manager - Add more info to flash algorithm

pull/2708/head
Jimmy Brisson 2016-06-23 15:16:06 -05:00 committed by Sarah Marsh
parent 9cf4f0d074
commit 15b7381edd
1 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,11 @@ class Cache () :
to_ret["memory"] = dict([(m["id"], dict(start=m["start"],
size=m["size"]))
for m in device("memory")])
to_ret["algorithm"] = device.algorithm["name"].replace('\\','/')
to_ret["algorithm"] = dict(name=device.algorithm["name"].replace('\\','/'),
start=device.algorithm["start"],
size=device.algorithm["size"],
RAMstart=device.algorithm["ramstart"],
RAMsize=device.algorithm["ramsize"])
to_ret["debug"] = device.debug["svd"]
to_ret["compile"] = (device.compile["header"], device.compile["define"])
except (KeyError, TypeError) :