Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将python cffi库与TI cl2000编译器一起使用?_Python_Python Unittest_Python Cffi - Fatal编程技术网

如何将python cffi库与TI cl2000编译器一起使用?

如何将python cffi库与TI cl2000编译器一起使用?,python,python-unittest,python-cffi,Python,Python Unittest,Python Cffi,我试图使用cffi编译为TI的f28035微控制器编写的代码。然后,我想使用python单元测试库对代码进行单元测试。我需要TI的C2000编译器而不是Visual C++。 我已将cl2000的路径添加到path变量中。 我正在使用python 3.8。我创建了一个distutils.config文件,其内容如下: [build] compiler = cl2000 我已使用pip重新安装了cffi,出现以下错误: 文件 “C:\Users\q73624\AppData\Local\Prog

我试图使用cffi编译为TI的f28035微控制器编写的代码。然后,我想使用python单元测试库对代码进行单元测试。我需要TI的C2000编译器而不是Visual C++。 我已将cl2000的路径添加到path变量中。 我正在使用python 3.8。我创建了一个distutils.config文件,其内容如下:

[build]
compiler = cl2000
我已使用pip重新安装了cffi,出现以下错误:

文件 “C:\Users\q73624\AppData\Local\Programs\Python\Python38-32\lib\distutils\ 新编译器中的第1013行“ccompiler.py” raise DistutilsPlatformError(msg)distutils.errors.DistutilsPlatformError:不知道如何编译 使用“cl2000”编译器的“nt”平台上的C/C++代码

有可能使cffi与嵌入式C编译器(如cl2000)一起工作吗?或者有没有一种不同的方法来使用python为微控制器编写单元测试C代码