完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
您好,我在项目中有两个配置,我想在构建配置之前做一些事情。我已经在项目属性中使用了预构建步骤,但有不同的东西。我可以使用“IFEQ”来选择MaFIX文件“.BuffPi::”部分中的配置的预构建步骤吗?
以上来自于百度翻译 以下为原文 Hello, i have two configurations in my project and i want to do something before building the configurations. I already use the pre build step in the project properties with something different. Can i use "ifeq" to select the pre build step for the configuration in the Makefile ".build-pre:" section? |
|
相关推荐
6个回答
|
|
|
我无法评论IFEQ问题。(我自己会避免手工编辑MaX文件……)但是如果你没有得到一个合适的答案,我也有类似的问题,在同一个地方使用两个不同的“命令”,解决方案是简单地将它们与.& & &;在例子中,我把其他无关的调用与CP(复制)和XC16-ObjDupp.EXE在我的后生成步骤中结合起来。
以上来自于百度翻译 以下为原文 I cannot comment on the ifeq question. ( I myself would avoid editing the makefile manually ... ) But if you do not get an appropriate answer,- I had a similar problem to use two different "commands" in the same place and the solution was to simply combine them with && In the example I combine the otherwise unrelated calls to cp (copy) and xc16-objdump.exe in my Post Build step. cp ${ImagePath} D:FirmwareMpLabX${ConfName}.${OUTPUT_SUFFIX} && xc16-objdump.exe -omf=elf -S ${ImageDir}${PROJECTNAME}.production.elf > ${ImageDir}${ConfName}.lst |
|
|
|
|
|
|
|
|
|
|
|
我想你不会期待一个“不起作用”的答案。
以上来自于百度翻译 以下为原文 I assume you do not expect an answer to "doesn't work" |
|
|
|
|
|
看来,在Project属性的预构建步骤中,我不能使用两个命令。如果我使用一个带有几个可选参数的命令,IDE或命令就意味着“& & &”也是一个参数。
以上来自于百度翻译 以下为原文 Ok, it seems that i cannot use two commands in the pre-build step of the project properties. I think if i use a command with a several optional parameters the IDE or the command means that the "&&" is also a parameter. |
|
|
|
|
|
好的,我明白了。但不值得深入挖掘吗?是一个逻辑运算符。你试过别的吗?(提示)
以上来自于百度翻译 以下为原文 Ok, I see. But it's not worth to dig a bit deeper ? && is a logical operator. Did you try anything else ? (hint) |
|
|
|
|
|
现在,我使用一个批处理文件来分离配置和它们的特定命令。
以上来自于百度翻译 以下为原文 I use now a batch file where i seperate the configurations and their specific commands. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
454 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3529 浏览 3 评论
1121浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1094浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
872浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
460浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 16:34 , Processed in 0.753552 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4040