当前位置: 首页 > news >正文

odrive环境构筑问题

不识别yaml,no module named yaml

1、pip install pyyaml -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

2、pip install jinja2

3、pip install jsonschema

4、pip install cantools

Firmware version 0.4.11-dev (fw-v0.4.11-19-g1c947631*)
 [     ] 100%
Could not init terminal features.
Could not init terminal features.
Refer to install instructions at http://docs.odriverobotics.com/#downloading-and-installing-tools
Traceback (most recent call last):
  File "D:\Foc\od\ODrive\tools\create_can_dbc.py", line 15, in <module>
    axisError = can.Signal("Axis_Error", 0, 32, receivers=['Master'], choices={error.value: error.name for error in AxisError})
TypeError: __init__() got an unexpected keyword argument 'choices'
make: *** [Makefile:37: all] Error 1

解决办法:

一、查询cantools存在版本,pip install cantools==

二、安装指定版本, pip install cantools==38.0.2

编译成功烧录后芯片不启动,PC端检测不到设备。

晶振主频为12MHz,不同于8MHz.修改分频4为6;8/4=12/6=2

Could not init terminal features.
Could not init terminal features.
Refer to install instructions at http://docs.odriverobotics.com/#downloading-and-installing-tools

PS D:\Foc\od\ODrive\Firmware> python .\lsusb.py
Traceback (most recent call last):
  File "D:\Foc\od\ODrive\Firmware\lsusb.py", line 9, in <module>
    dev =  usb.core.find(idVendor= 0x1209, idProduct= 0x0D32)
  File "C:\Users\PC\AppData\Local\Programs\Python\Python39\lib\site-packages\usb\core.py", line 1321, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available

Windows环境下基于Python的PyUSB库开发USB通讯_notimplementederror: operation not supported or un-CSDN博客

(1)运行时报错:usb.core.NoBackendError: No backend available
点击下面的链接下载libusb-1.0.20的压缩包,解压后将MS64\dll\libusb-1.0.dll复制到C:\Windows\System32。如果还不行的话再将同一目录下的libusb-1.0.lib到Python路径下的lib\site-packages\usb文件夹中。
https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.20/libusb-1.0.20.7z/download
 


 

相关文章:

  • R语言绘图 | 使用scplotter包绘制细胞间通信图
  • 【超详细】一文解决更新澎湃2.0后LSPose失效问题
  • STM32 FATFS - 在flash上运行fatfs
  • 文章记单词 | 第15篇(六级)
  • Java笔记2——编程基础
  • 高效内存位操作:如何用C++实现数据块交换的性能飞跃?
  • STM32技能综合巩固
  • 使用 Vue 重构 RAGFlow 实现聊天功能
  • 第十二届蓝桥杯省赛软件类(cc++组)
  • 一场国际安全厂商的交流会议简记
  • 移动端浏览器调用摄像头失败,需要https,配置开发环境证书
  • 尚硅谷2019版Java异常处理篇笔记记录
  • Ranger一分钟
  • 步进电机控制频率解析:500 Hz 还是 500×256 Hz?
  • 基于大模型的房间隔缺损手术全流程预测与方案优化研究报告
  • 【56】数组指针:指针穿梭数组间
  • Python数据类型-list
  • 传统汽车 HMI 设计 VS 新能源汽车 HMI 设计,有何不同?
  • Spring Boot向Vue发送消息通过WebSocket实现通信
  • 解决ubuntu18.04无法进入系统桌面
  • 建设网站的公司哪个济南兴田德润怎么联系/中国万网登录入口
  • 网站制作的公司/微信公众平台开发
  • 永川集团网站建设/南宁seo公司哪家好
  • 网站建设管理自查报告/全球搜索引擎大全
  • 做网站需要什么准备/软件开发app制作
  • 西乡做网站多少钱/谷歌paypal官网注册入口