File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed
examples/micropython_esp32 Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.0.4 - 2025-07-06
4
+
5
+ - feat: make ` elf ` parameter optional in ` start_simulation() `
6
+
3
7
## 0.0.3 - 2025-07-01
4
8
5
9
- feat: add MicroPython + ESP32 example
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ async def main():
41
41
await client.connect()
42
42
await client.upload_file(" diagram.json" )
43
43
await client.upload_file(" firmware.bin" )
44
- await client.upload_file(" firmware.elf" )
45
- await client.start_simulation(firmware = " firmware.bin" , elf = " firmware.elf" )
44
+ await client.start_simulation(firmware = " firmware.bin" )
46
45
serial_task = asyncio.create_task(
47
46
client.serial_monitor_cat()
48
47
) # Stream serial output
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ async def main() -> None:
93
93
await client .upload (FIRMWARE_NAME , bytes (firmware_data ))
94
94
95
95
# Start the simulation
96
- await client .start_simulation (firmware = FIRMWARE_NAME , elf = FIRMWARE_NAME )
96
+ await client .start_simulation (firmware = FIRMWARE_NAME )
97
97
98
98
# Stream serial output for a few seconds
99
99
serial_task = asyncio .create_task (client .serial_monitor_cat ())
Original file line number Diff line number Diff line change @@ -87,16 +87,17 @@ async def upload_file(
87
87
async def start_simulation (
88
88
self ,
89
89
firmware : str ,
90
- elf : str ,
90
+ elf : Optional [ str ] = None ,
91
91
pause : bool = False ,
92
92
chips : list [str ] = [],
93
93
) -> ResponseMessage :
94
94
"""
95
95
Start a new simulation with the given parameters.
96
96
97
97
The firmware and ELF files must be uploaded to the simulator first using the
98
- `upload()` or `upload_file()` methods. The firmware and ELF files are required
99
- for the simulation to run.
98
+ `upload()` or `upload_file()` methods.
99
+ The firmware file is required for the simulation to run.
100
+ The ELF file is optional and can speed up the simulation in some cases.
100
101
101
102
The optional `chips` parameter can be used to load custom chips into the simulation.
102
103
For each custom chip, you need to upload two files:
@@ -109,7 +110,7 @@ async def start_simulation(
109
110
110
111
Args:
111
112
firmware: The firmware binary filename.
112
- elf: The ELF file filename.
113
+ elf: The ELF file filename (optional) .
113
114
pause: Whether to start the simulation paused (default: False).
114
115
chips: List of custom chips to load into the simulation (default: empty list).
115
116
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ async def start(
12
12
transport : Transport ,
13
13
* ,
14
14
firmware : str ,
15
- elf : str ,
15
+ elf : Optional [ str ] = None ,
16
16
pause : bool = False ,
17
17
chips : list [str ] = [],
18
18
) -> ResponseMessage :
You can’t perform that action at this time.
0 commit comments