完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在MPLAB X 3.55中使用了一个POST生成命令,但是每当我为调试而构建它时,我就必须禁用它。我注意到有一个“ISDebug”宏被预先定义,但是我还没能找到如何在我的命令中使用它。如果是这样,执行我的自定义POST生成步骤。如果这是真的,我想跳过我的POST构建步骤。我一直在通过MPLAB帮助和这个论坛搜索,但到目前为止还没有找到关于如何使用这些预定义的构建宏的任何解释…
以上来自于百度翻译 以下为原文 I've been using a post build command in my MPLAB X 3.55, but I have to disable it whenever I build for debugging...I notice that there is a "IsDebug" Macro pre-defined, but I haven't been able to find out how to use it in my command. Ideally, I'd like to test to see if IsDebug evaluates to false, and if so, execute my custom post-build step. If it's true, I'd want to skip my post-build step. I've been searching through MPLAB help, and this forum, but so far haven't found any explanation on how to use these pre-defined Build macros... |
|
相关推荐
7个回答
|
|
我也一直在搜索NETBeOs寻求帮助……仍然没有运气:
以上来自于百度翻译 以下为原文 I've also been searching NetBeans for help on this...still no luck :( |
|
|
|
解决了ITFRISH:我有一个构建后的步骤,用来创建一个修改的.HEX文件,但是每当我为调试版本编译时,这个步骤就失败了。每当我想调试的时候,我不得不禁用这个步骤,然后希望我记得在我想要一个生产版本时重新启用它……这就是我发现的方法(希望它能帮助其他人寻找这个问题):在前面提到的后期构建步骤之前(从HexMad开始)我已经修改了它:如果${ISDebug } =“false”十六进制…${ISDebug }是MPLAB-X IDE中的一个预定义宏,它对调试编译的结果为“true”,对于编译编译为“false”。
以上来自于百度翻译 以下为原文 Solved it Smile: I have a Post-Build step built to create a modified .HEX file, but the step fails whenever I compile for a Debug version. I've had to disable the step whenever I wanted to debug, and then hope I remembered to re-enable it when I wanted a Production version... Here's the way around it that I found (hopefully, it'll help others searching for this): In front of the Post-Build step I’d mentioned before (starts with HEXMATE…), I’ve modified it to say: if ${IsDebug}=="false" HEXMATE… The ${IsDebug} is a predefined macro in the MPLAB-X IDE that evaluates to “true” for a Debug compile, and “false” for a Production compile. |
|
|
|
它在MPLABX用户指南中被记录。(例如:C:程序文件(x86)Microchip MPLABX v3.65 DOCs)搜索ISDebug(图4-23),如果您使用它描述的话,例如ECHECU${ISDebug },它将显示一个正常构建的错误,并且对于调试构建h是正确的。
以上来自于百度翻译 以下为原文 Its documented in your MpLabX Users Guide. (e.g. C:Program Files (x86)MicrochipMPLABXv3.65docs) Search for IsDebug (Figure 4-23) If you use it like they describe, e.g. echo ${IsDebug} it will show false for a normal build and true for a debug build. H |
|
|
|
谢谢罗迪斯……我没想过要看IDE的用户指南(可能是因为它没有放在我的Microchip程序组中……我不得不手动地把它放在我所说的磁盘上)……但是,它仍然没有告诉我如何在实际的后期构建步骤中使用IF来测试它。我必须自己解决这个问题,就像我之前提到的一样……我不知道它是不是用在一个预处理器(αif),一个C文件(if({)})或其他一些方法……我试验过,直到我想出了我之前发布的方法。
以上来自于百度翻译 以下为原文 Thanks rodims...I hadn't thought to look through the IDE's User Guide (probably because it wasn't placed in my Microchip program group...I had to manually locate it on my disk where you said to look)... However, it still didn't tell me how to test for it using an if in the actual post-build step. I had to figure that out on my own as I'd mentioned earlier...I didn't know if it used if like in a pre-processsor (#if), a a C file (if() {}) or some other method...I experimented until I came up with the methodology I posted before. |
|
|
|
你可以检查这个帖子:HTTP://www. McCHIP.COM/FUMUS/M841603.ASPX和XC8,XC16,XC32手册。我认为它被用作:
以上来自于百度翻译 以下为原文 You could check this post : http://www.microchip.com/forums/m841603.aspx and the XC8, XC16, XC32 manual. I think it is used as : #ifdef __DEBUG // your code #else // your other code #endif But if have not used it myself. |
|
|
|
艾伯特,它在源代码(C)中工作,但我正在寻找一种方法来控制构建后的步骤。这是仪表板选项卡中的设置-项目属性(扳手图标)/CONF:[默认] /建筑物-前和后步骤操作:…
以上来自于百度翻译 以下为原文 Albert, That works in the source code (C), but I was looking for a way to control a post-build step. That's setup in the Dashboard tab - Project Properties(wrench icon)/Conf:[default]/Building - Pre and post step operations:... |
|
|
|
我通常为调试创建一个不同的配置。除了前/后生成过程,您可能需要不同的链接器脚本设置和不同的优化级别来运行调试会话。
以上来自于百度翻译 以下为原文 I usually create a different configuration for debugging. Aside from Pre/Post build processes, it is likely you will need different linker script setup and different optimization level to run a debug session anyway. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 12:59 , Processed in 1.250788 second(s), Total 89, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号