Skip to content

Commit

Permalink
fix etiss trace feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp v. K committed Mar 9, 2022
1 parent 5022be0 commit 354b64c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mlonmcu/target/etiss_pulpino.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def exec(self, program, *args, cwd=os.getcwd(), **kwargs):
program,
*etiss_script_args,
*args,
cwd=cwd,
**kwargs,
)
return ret
Expand Down Expand Up @@ -220,6 +221,7 @@ def get_metrics(self, elf, directory, verbose=False):
self.metrics_script.resolve(),
*get_metrics_args,
live=False,
cwd=directory,
print_func=lambda *args, **kwargs: None,
)

Expand Down Expand Up @@ -281,8 +283,13 @@ def get_target_system(self):
return self.name

def get_platform_defs(self, platform):
assert platform == "mlif"
ret = super().get_platform_defs(platform)
ret["ETISS_DIR"] = self.etiss_dir
ret["PULPINO_ROM_START"] = self.rom_start
ret["PULPINO_ROM_SIZE"] = self.rom_size
ret["PULPINO_RAM_START"] = self.ram_start
ret["PULPINO_RAM_SIZE"] = self.ram_size
return ret


Expand Down

0 comments on commit 354b64c

Please sign in to comment.