This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmcusim.conf.in
77 lines (65 loc) · 2.46 KB
/
mcusim.conf.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# This file is part of MCUSim, an XSPICE library with microcontrollers.
#
# Copyright (C) 2017-2019 MCUSim Developers, see AUTHORS.txt for contributors.
#
# MCUSim is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# MCUSim is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# This is an MCUSim configuration file. You may adjust it to setup your own
# simulation.
# Model of the simulated microcontroller.
#
# ATmega8: mcu m8
# ATmega328: mcu m328
# ATmega328p: mcu m328p
mcu m8a
# Microcontroller clock frequency (in Hz).
mcu_freq 16000000
# Microcontroller lock bits and fuse bytes.
#
#mcu_lockbits 0x00
#mcu_efuse 0xFF
mcu_hfuse 0xC9
mcu_lfuse 0xEF
# File to load a content of flash memory from.
firmware_file firmware.hex
# Reset flash memory flag.
#
# Flash memory of the microcontrollers can be preserved between the different
# simulations by default. It means that the flash memory can be saved in a
# separate utility file before the end of a simulation and loaded back during
# the next one.
#
# Default value (yes) means that the firmware file has a priority over the
# utility file.
reset_flash yes
# Lua models which will be loaded and used during the simulation.
lua_model @CMAKE_INSTALL_PREFIX@/share/mcusim/models/avr/brief-usage.lua
lua_model @CMAKE_INSTALL_PREFIX@/share/mcusim/models/avr/stop-in-5s.lua
# Firmware test flag. Simulation can be started in a firmware test mode in
# which simulator will not be waiting for any external event (like a command
# from debugger) to continue with the simulation.
firmware_test yes
# Name of the VCD (Value Change Dump) file to be generated during the
# simulation process to collect data and trace signals after the simulation.
vcd_file trace.vcd
# Microcontroller registers to be dumped to the VCD file.
dump_reg PORTA
dump_reg PORTB
dump_reg PORTC
# Port of the RSP target. AVR GDB can be used to connect to the port and
# debug firmware of the microcontroller.
rsp_port 12750
# Flag to trap AVR GDB when interrupt occured.
trap_at_isr no