Skip to content

Commit 088a848

Browse files
committed
[tools] Fix RTT logger if data structure is not in RAM with lowest address
1 parent c7d7daf commit 088a848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_script_generator/module.lb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def post_build(env):
257257
has_rtt = env.has_module(":platform:rtt")
258258
env.substitutions["has_rtt"] = has_rtt
259259
if has_rtt:
260-
env.substitutions["main_ram"] = linkerscript.get("cont_ram_regions", [{"start": 0x20000000, "size": 4096}])[0]
260+
env.substitutions["main_ram"] = linkerscript.get("cont_ram", {"start": 0x20000000, "size": 4096})
261261
env.substitutions["rtt_channels"] = len(env.get(":platform:rtt:buffer.tx", []))
262262
env.template("openocd.cfg.in")
263263

0 commit comments

Comments
 (0)