Skip to content

Commit

Permalink
examples: Add shell module sample for stm32l072
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoscik committed Nov 10, 2023
1 parent 796b690 commit d8a78b0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/stm32l072-shell.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env -S python3 -m bpython -i

from pyrenode3.wrappers import Analyzer, Emulation, Monitor

e = Emulation()
m = Monitor()

stm32l072 = e.add_mach("stm32l072")
stm32l072.load_repl("platforms/cpus/stm32l072.repl")

stm32l072.load_elf(
"https://dl.antmicro.com/projects/renode/stm32l07--zephyr-shell_module.elf-s_1195760-e9474da710aca88c89c7bddd362f7adb4b0c4b70"
)

Analyzer(stm32l072.sysbus.usart2).Show()

e.StartAll()

0 comments on commit d8a78b0

Please sign in to comment.