完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图编译我们的Mplabs(V3.61)项目直接在matlab(2013B),以使构建过程更容易。我可以直接编译在MPLABS没有问题。我也可以使用命令行编译,没有问题。问题是在通过Matlab调用命令行时出现的。由于受限的LiceNeS访问Microchip,选择了一个新的密钥。我们有一个网络许可证,并且没有直接使用MPLAB或CMD窗口的许可证问题。我在Matlab中尝试过:CT/MaFix-VCuM.Cpff.Mk子项目=。构建“CON-F NBPoCT/MaFix-VCuMYCCPF.MK子项目=。构建CONF’,’-ECHO’);Win OnLead(“Buff.BAT”)//Buff.BAT包含命令行,它们都会产生许可证错误。我已经尝试漫游网络许可证,它是直到出错,我做错了什么?谢谢你的帮助。
以上来自于百度翻译 以下为原文 I am trying to compile our Mplabs (v3.61) project directly in Matlab(2013b) to make the build process easier. I can compile directly in Mplabs with no issue. I can also compile using the command line without problem either. The problem arises when calling the command line through Matlab. Options have been disabled due to restricted license Visit microchip to purchase a new key. We have a Network license and there’s no license problem directly using Mplabs or the cmd window. I have tried in Matlab: system('make -f nbproject/Makefile-VCU_m_ccpf.mk SUBPROJECTS= .build-conf', '-echo'); dos('make -f nbproject/Makefile-VCU_m_ccpf.mk SUBPROJECTS= .build-conf', '-echo'); winopen('build.bat') //with build.bat containing the command line They all come up with the license error. I’ve tried roaming the network license out, it still comes up with the error. What am I doing wrong? Thanks for your help. |
|
相关推荐
8个回答
|
|
你好,约翰逊,你确定它不是在编译吗?对于我来说,当我在Simulink中点击建立一个模型时,它也给了我所陈述的错误信息,但是无论如何编译。是否在错误消息后中止?莫里兹
以上来自于百度翻译 以下为原文 Hi johndsd, are you sure it isn't compiling nonetheless? For me when I click to build a model in Simulink it also gives me the stated error message but compiles anyway. Does it abort after the error message? Moritz |
|
|
|
嗨,莫里兹,谢谢你的回答。是的,它编译,但它禁用优化没有许可证,所以代码不能正常运行的目标。这就是为什么我们支付许可证!
以上来自于百度翻译 以下为原文 Hi Moritz, Thanks for your answer. Yes it compiles but it disables optimisation without the license so the code doesn't run properly on target. That's why we pay for the license! |
|
|
|
嗨,Johndsd,自由编译器版本允许使用-O1优化,这是高度推荐的。如果你想使用进一步的优化(-O2,-O3,-OS),你需要一个许可证。你有一个问题的许可证,因为我理解。为什么你编译从MATLAB命令行一个“老”的MPLAB项目??使用SIMULINK和DSPIC的块集来生成项目C代码吗?你的Sulink项目编译正确吗?否则,问题与MATLAB和Simulink无关。我建议在编译器论坛上发布这样的问题。
以上来自于百度翻译 以下为原文 Hi Johndsd, The free compiler version allows using the -O1 optimization which is highly recommended. If you want to use further optimization (-O2, -O3, -Os) you need a license. You have an issue with that license as I understood. Why are you compiling from the matlab command line an "old" MPLAB project ? Did you use simulink and the blockset for dsPIC to generate your project C code ? Does your Siulink project compile properly ? Otherwise, the problem is not related to Matlab nor Simulink. I would advise posting such question in the compiler forum. |
|
|
|
嗨,鲁宾,对不起,如果这不清楚,让我解释多一点。我们使用MPLABS写低级驱动器和OS。SIMULINK用于高级代码。我们只在MATLAB中生成C代码,然后在MPLAB中编译。我只是想通过MATLAB运行make命令来保存我们打开的MPLAB,使流程更加精简。当使用MPLAB(许可证正确地签出)时,一切都正常工作和编译。问题是从Matlab中运行make命令,因为它显然是在请求许可证。这就是为什么我认为这更多的是一个Matlab问题。希望这是有道理的。
以上来自于百度翻译 以下为原文 Hi Lubin, Sorry if this is not clear, let me explain a bit more. We use mplabs to write the low levels drivers and os. Simulink is used for the high level code. We just generate the c code in matlab, then compile in mplabs. I just wanted to run the make command through matlab to save us opening mplabs, to make the process more streamlined. Everything works and compiles properly when using mplabs (license properly checked out). The issue comes from running the make command from matlab, as it's apparently asking for a license. This is why I think it's more of a matlab issue. Hope that makes sense. |
|
|
|
嗨,约翰,我想你提到的三个Matlab命令:Stand、DOS和Win Onter就像在DOS命令行提示符中那样执行。你是否已经从DOS CMD线测试了命令?如果你可以从CMD线中提取这个问题(从同一个文件夹开始,而不是使用Matlab),那么你可以很好地向编译器或MPLAB的专门论坛提出问题,这个论坛可能会有一个广泛的受众。如果这是一个Matlab相关的问题,我到目前为止还没有任何建议。
以上来自于百度翻译 以下为原文 Hi John, I think the three Matlab commands you mentioned: system, dos, and winopen execute as if you where at a dos command line prompt. Did you already tested the command from the dos cmd line ? If you can trig the issue from the cmd line (starting from the same folder than you did with matlab), then you're good to ask the question to either compiler or MPLAB's dedicated forum who might get a wide audience. If it's a Matlab related issue, I do not have any suggestions so far. |
|
|
|
我已经测试了命令行,当我直接在CMD中运行时,它工作了。这就是为什么它没有意义!它应该做同样的事情时,从MATLAB启动。
以上来自于百度翻译 以下为原文 I've tested the command line and it works when I run make directly in cmd. That's why it doesn't make sense! It should be doing the same thing when launched from Matlab. |
|
|
|
您可以尝试在命令的末尾添加“&”:Stand(‘-F-NbPosie/MaMeFiel-VCuMyCpff.Mk子项目=。构建CONF&’,’ECHO’);您也可以尝试这种其他语法(有或没有“和”):制作-NbPosi/MaulFiel-VCuMyCYPFF.MK子项目=。
以上来自于百度翻译 以下为原文 You might try adding "&" at end of the command: system('make -f nbproject/Makefile-VCU_m_ccpf.mk SUBPROJECTS= .build-conf &', '-echo'); you might also try this other syntax (with and without "&"): !make -f nbproject/Makefile-VCU_m_ccpf.mk SUBPROJECTS= .build-conf & |
|
|
|
谢谢你的建议。第一个命令返回完全相同的东西。第二个命令(!)做)根本不跑?我已经仔细检查了我的XCLM参数,看起来都不错。我会直接问问MathWork,也许这是他们所知道的。
以上来自于百度翻译 以下为原文 Thanks for your suggestions. The first command return exactly the same thing. The second command (!make) does not run at all? I've double checked my xclm parameters and it all seems OK. I'll ask mathworks directly, maybe it's something they know about. |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 11:20 , Processed in 2.647791 second(s), Total 91, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号