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.

80 lines
2.0 KiB

4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
  1. # README
  2. [toc]
  3. ## Release
  4. **Win**
  5. [stm32_pwm_computer.exe](./release/stm32_pwm_computer.exe)
  6. **Linux**
  7. ```bash
  8. cd linux
  9. ./build.sh
  10. ```
  11. ## 用法
  12. ### Win
  13. 1.文件资源管理器打开stm32_pwm_computer.exe所在目录。
  14. ![image-20211227114107011](markdown.assets/README.assets/image-20211227114107011.png)
  15. 2.在目录栏输入cmd
  16. ![image-20211227114136603](markdown.assets/README.assets/image-20211227114136603.png)
  17. 3.在弹出的终端输入指令
  18. ![image-20220607194112890](markdown.assets/README.assets/image-20220607194112890.png)
  19. Tip:
  20. ​ 1.根据stm32cubeMX中时钟树和定时器序号,确定定时器输入时钟频率
  21. ![image-20220607193841283](markdown.assets/README.assets/image-20220607193841283.png)
  22. 2.部分频率不能恰好一样,会存在一定的误差
  23. ```
  24. 这是因为寄存器不能整除导致的,当频率越来越大,这个误差就会越来越大。
  25. ```
  26. ![image-20220607194308252](markdown.assets/README.assets/image-20220607194308252.png)
  27. ## 程序执行异常
  28. ### vcruntime140.dll was not found
  29. 解决方案:
  30. 下载Visual C++ Redistributable库文件,安装即可
  31. [Latest supported Visual C++ Redistributable downloads | Microsoft Docs](https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170)
  32. ![image-20220618173350153](markdown.assets/README.assets/image-20220618173350153.png)
  33. 错误分析
  34. ```
  35. vcruntime140.dll,是vc工程编译出来的程序必须依赖的库,如果没有则需要安装相应的库包。
  36. ```
  37. ### vcruntime140d.dll was not found
  38. ![image-20220618173238145](markdown.assets/README.assets/image-20220618173238145.png)
  39. ```
  40. vcruntime140d.dll 是 vcruntime140.dll的包含Debug信息的版本,如下图在viso编译时,生成的目标选择Debug版本,则连接的是vcruntime140d.dll,如果是Release连接的是vcruntime140.dll,如果想要安装vcruntime140d.dll,安装驱动库即可。
  41. ```
  42. ![image-20220618174248032](markdown.assets/README.assets/image-20220618174248032.png)