Metadata-Version: 2.4
Name: McuSimulate
Version: 0.1.0
Summary: A microcontroller simulation Python package
Author: McuSimulate Developers
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# McuSimulate
**一个单片机仿真python包**

## 技术栈
1. C语言实现仿真引擎，封装为python包
2. python写脚本控制启动运行等

## 开发环境
`Visual Studio`的`C++ 的桌面开发`,`conda的python3.13`,`setuptools wheel`

## 发布
pypi

## 需要实现：（要求：可以启动仿真后动态添加外部硬件。先写一个外部硬件脚本，用命令运行脚本控制硬件运行）
1. 主控芯片
2. 最小外部电路
3. 可以连接到主控的硬件。例如：可以创建一个uart发生器，给主控芯片发送uart信号
4. 主控芯片寄存器，引脚电平等监视器
5. `daplink`

## 使用
只要`openocd+arm-eabi-none-toolchains+cmake`工具链和`McuSimulate`python包

#### 方案一：利用OpenOCD的remote_bitbang，启动仿真时让python监听`localhost:3335`
修改`daplink`的`cfg`文件为如下：
```cfg
adapter driver remote_bitbang
remote_bitbang_port 3335
```
然后`F5`让`cortex-debug`启动`openocd`连接`gdb`

#### 方案二：启动仿真时让python调用facedancer包虚拟成一个daplink
直接`F5`让`cortex-debug`启动`openocd`连接`gdb`（让openocd自己找虚拟的这个daplink）
