Show device system information (MCU, Frequency, RAM, Flash, Debugging tools) in a build log

This commit is contained in:
Ivan Kravets
2018-01-25 17:58:52 +02:00
parent dabe9ba2a7
commit f8dafbca80
8 changed files with 82 additions and 20 deletions

View File

@@ -684,9 +684,11 @@ class PlatformBoardConfig(object):
"mcu":
self._manifest.get("build", {}).get("mcu", "").upper(),
"fcpu":
int(
re.sub(r"[^\d]+", "",
self._manifest.get("build", {}).get("f_cpu", "0L"))),
int("".join([
c for c in str(
self._manifest.get("build", {}).get("f_cpu", "0L"))
if c.isdigit()
])),
"ram":
self._manifest.get("upload", {}).get("maximum_ram_size", 0),
"rom":