You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
zhaohe bf6c27093b 修复运行时,库找不到的问题 3 years ago
linux update 3 years ago
markdown.assets/README.assets 修复运行时,库找不到的问题 3 years ago
release 修复运行时,库找不到的问题 3 years ago
windows update 3 years ago
README.md 修复运行时,库找不到的问题 3 years ago

README.md

README

[toc]

Release

Win

stm32_pwm_computer.exe

Linux

cd linux
./build.sh

用法

Win

1.文件资源管理器打开stm32_pwm_computer.exe所在目录。

image-20211227114107011

2.在目录栏输入cmd

image-20211227114136603

3.在弹出的终端输入指令

image-20220607194112890

Tip:

​ 1.根据stm32cubeMX中时钟树和定时器序号,确定定时器输入时钟频率

image-20220607193841283

2.部分频率不能恰好一样,会存在一定的误差

这是因为寄存器不能整除导致的,当频率越来越大,这个误差就会越来越大。

image-20220607194308252

程序执行异常

vcruntime140.dll was not found

解决方案:

下载Visual C++ Redistributable库文件,安装即可

Latest supported Visual C++ Redistributable downloads | Microsoft Docs

image-20220618173350153

错误分析

vcruntime140.dll,是vc工程编译出来的程序必须依赖的库,如果没有则需要安装相应的库包。

vcruntime140d.dll was not found

image-20220618173238145

vcruntime140d.dll 是 vcruntime140.dll的包含Debug信息的版本,如下图在viso编译时,生成的目标选择Debug版本,则连接的是vcruntime140d.dll,如果是Release连接的是vcruntime140.dll,如果想要安装vcruntime140d.dll,安装驱动库即可。

image-20220618174248032