linux:ftdi
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
linux:ftdi [2020/09/22 23:19] – [1.2 pyftdi] zhangguo | linux:ftdi [2023/03/17 10:12] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 11: | 行 11: | ||
可以直接生成python接口,方便python调用,目前在windows环境试用过,目前只支持SPI/ | 可以直接生成python接口,方便python调用,目前在windows环境试用过,目前只支持SPI/ | ||
+ | -------------- | ||
依目前来看,自己在这个的基础上修改C代码看起来是一种比较靠谱的方式。 | 依目前来看,自己在这个的基础上修改C代码看起来是一种比较靠谱的方式。 | ||
+ | |||
+ | 这个项目是采用的swig与python之间进行交互接口,数据的传递是通过char *, 但是char *处理char值> | ||
+ | |||
==== - pyftdi ==== | ==== - pyftdi ==== | ||
+ | '' | ||
- | https:// | + | 纯python实现,没有调用libftdi, |
<color # | <color # | ||
- | - 其中write_dr会在TCK是出一个10ns左右的毛刺应该是个BUG,无法确认是FTDI芯片问题还是开源代码的问题。 | + | - 其中write_dr会在TCK是出一个10ns左右的毛刺应该是个BUG,无法确认是FTDI芯片问题还是开源代码的问题。 -- 需要再确认下是否是接地不良造成的。 |
- write_dr, read_dr, shift_register,都没有实现在Exit1-DR时把最后一个bit的数据发送或接收功能,JTAG功能无法真正使用。 | - write_dr, read_dr, shift_register,都没有实现在Exit1-DR时把最后一个bit的数据发送或接收功能,JTAG功能无法真正使用。 | ||
行 74: | 行 79: | ||
FTD2XX is a closed-source library. A program licensed under the GNU General Public License (such as OpenOCD) cannot be distributed in binary form if linked to FTD2XX during compilation. LibFTDI is licensed under the GNU Lesser General Public License v2.1. Information on LGPL v2.1 is available at http:// | FTD2XX is a closed-source library. A program licensed under the GNU General Public License (such as OpenOCD) cannot be distributed in binary form if linked to FTD2XX during compilation. LibFTDI is licensed under the GNU Lesser General Public License v2.1. Information on LGPL v2.1 is available at http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== - windows系统下的使用 ===== | ||
+ | |||
+ | window python ftdi | ||
+ | |||
+ | |||
+ | 原文链接: | ||
+ | |||
+ | |||
+ | 此方案自己没有试通,python调用时出现了大概DLL找不到的问题, | ||
+ | |||
+ | 还是用自己编写DLL的方式给python用靠谱点。 | ||
+ | |||
linux/ftdi.1600787986.txt.gz · 最后更改: 2023/03/17 10:12 (外部编辑)