完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我目前正在使用代码,它使用自定义链接器来使用Bootloader来使用代码。但是,当我想通过工具进行调试,或者在没有Bootloader的情况下运行时,我需要手动重命名或删除PROFDECS.LD来运行代码SANS Bootloader。是否有一种方法可以通过配置来告诉XC32(或者任何其他的工具链)忽略PROFDECS.LD文件?这样,我可以有一个调试和开发配置,另一个与引导加载程序一起使用?提前感谢
以上来自于百度翻译 以下为原文 I'm currently working with code that utilizes a custom linker for using the code with a bootloader. However when I want to debug via tool, or run without the bootloader, I need to manually rename or remove procdefs.ld in order to run the code sans-bootloader. Is there a way through configuration to tell XC32 (or any of the other toolchains for that matter) to ignore the procdefs.ld file? That way I can have a config for debugging and development and another for use with the bootloader? Thanks in advance |
|
相关推荐
11个回答
|
|
嗨,你可以从每个配置中排除文件(至少对于C和H文件)。也许这也适用于链接器文件…创建一个新的配置,右键单击文件并尝试选择“从配置中排除”。
以上来自于百度翻译 以下为原文 Hi, You can exclude files from each configuration (at least for c and h files). Maybe this works also for linker files... Create a new configuration, right click on the file and try to select "exclude from configuration" Regards |
|
|
|
这不是我真正想要的,因为ProcDef.LD不包含在项目中,它被放置在源代码(.c和h)文件的目录中,MPLAB X会自动使用它。目前我唯一的方法是在没有特殊链接的情况下进行正常的构建,是重命名或删除ProcDEv.LD。文件。
以上来自于百度翻译 以下为原文 This isn't what I'm really looking for as procdefs.ld is not included in the project, it is placed in the directory of the source (.c and .h) files and MPLAB X will automatically use it. Currently my only way to do a regular build without special linking is to either rename or remove the procdefs.ld file. |
|
|
|
嗨,你使用的是XC32版本?据我所知,当前版本V1.44(和以前版本)不再使用
以上来自于百度翻译 以下为原文 Hi, Which version of XC32 do you use ? As far as I know the current version v1.44 (and previous ones) do not use anymore procdefs.ld Regards |
|
|
|
目前使用XC32 V1.40。我认为它可以用来设置一个配置来使用XC32 V1.44,如果您是正确的,它将不再使用该文件,因为V1.44不再使用Purfds.LD,但是肯定有一个选项、命令行或其他,来完成我要做的事情。
以上来自于百度翻译 以下为原文 Currently using XC32 v1.40. I suppose it COULD work just to set a configuration to use XC32 v1.44 and it would simply no longer use the file if you're correct in that v1.44 no longer uses procdefs.ld, but surely there must be an option, command line or otherwise, to accomplish what I'm looking to do. |
|
|
|
如果自定义链接器脚本没有添加到“链接器文件”逻辑文件夹中,即使文件位于与源代码相同的目录中,MPLABX也不应该使用它。创建两个配置作为RISC建议应该是可行的。或者,如果您知道对于自定义链接器脚本需要什么真正的改变,您可以利用链接线程预处理的优点,如本线程中所讨论的:HTTP://www. MyCHIP.COM/FUMMS/M8655 55.ASPX。
以上来自于百度翻译 以下为原文 If the custom linker script is not added to the "Linker Files" logic folder, MPLABX shouldn't use it even though the file is in the same directory as your source code. Creating two configurations as RISC suggested should work. Alternatively, if you know what real changes are needed for a custom linker script, you can take advantage of linker preprocessing as discussed in this thread: http://www.microchip.com/forums/m865555.aspx |
|
|
|
如果自定义链接器脚本没有添加到“链接器文件”逻辑文件夹中,即使文件位于与源代码相同的目录中,MPLABX也不应该使用它。创建两个配置作为RISC建议应该是可行的。或者,如果你知道一个自定义链接器脚本需要什么真正的改变,你可以利用链接线程预处理的优势,如在这个线程中所讨论的:HTTP://www. McCHIP.COM/FUMMS/M8655 5ASPX.它肯定使用P。没有被添加到项目的LD。这是最近MPLAX版本中发生的变化吗?我现在3.50岁
以上来自于百度翻译 以下为原文 If the custom linker script is not added to the "Linker Files" logic folder, MPLABX shouldn't use it even though the file is in the same directory as your source code. Creating two configurations as RISC suggested should work. Alternatively, if you know what real changes are needed for a custom linker script, you can take advantage of linker preprocessing as discussed in this thread: http://www.microchip.com/forums/m865555.aspx Currently it is definitely using the procdefs.ld without being added to project. Is this something that changed in a recent MPLAB X version? I am currently on 3.50 |
|
|
|
通过过程监视器:(XC32 1.44和MPLABX 3.65)按以下顺序搜索ProCuf.GLD:1)项目目录,例如C:程序文件(x86)Microchip xC32 V1.44 PIC32 MXLIB PROC 32 MX220F032D Pro DEFS.LD(32 MX220F032D是所选设备)。如果在Project目录中找到ProcDef.LD,则使用(读取)如果没有找到,则使用编译器目录中的ProcDEv.LD(读取)
以上来自于百度翻译 以下为原文 By experiment with Process Monitor: (XC32 1.44 and MpLabX 3.65) the PROCDEFS.GLD is searched in the following order: 1) the project directory 2) The Compiler directory, e.g. C:Program Files (x86)Microchipxc32v1.44pic32mxlibproc32MX220F032Dprocdefs.ld (32MX220F032D is the selected device) i.e. if a procdefs.ld is found in the project directory, then it is used (read) if it's not found, the procdefs.ld in the compilers directory is used (read) |
|
|
|
我建议您使用链接器脚本的单文件版本。我不记得当时他们打算把一个完整的链接器脚本分成两个文件,即PROFDECS.LD和ELF32 PIC32。X。他们不为PIC32 MZ和任何其他新设备做任何事情。
以上来自于百度翻译 以下为原文 I'd recommend you use the single-file version of linker script. I can't remember what was the intention at the time they had to separate a complete linker script into two files, i.e., procdefs.ld and elf32pic32.x. They don't do this any more for PIC32MZ and any other new devices. |
|
|
|
这是为什么我试图在项目中包括ProcDebug?也就是说,如果项目中包含链接器脚本,那么它会以单文件格式预期吗?如果是这样的话,是的,单脚本听起来像是走的路,所以我可以在每个配置中包含/排除它。它像拷贝/粘贴任务一样简单吗?我不太熟悉链接器脚本的来龙去脉,所以这是一个新领域。
以上来自于百度翻译 以下为原文 Could this be why I have problems building if I attempt to include procdefs.ld in the project? I.E. it's expecting the linker script in single file format if it's included in the project? If that's the case, yeah single script sounds like the way to go so I could include/exclude it per configuration. Is it as simple as a copy/paste job? I'm not very familiar with the ins and outs of linker scripts so this is new territory. |
|
|
|
对。复制PIC32 MXLIB LDSPREST ELF32 PIC32 MX.X,并将其粘贴到PoCuff.LD的末尾。然后删除“包含PROFDECS.LD”的行。你可以用.LD扩展名给你想要的任何文件名。
以上来自于百度翻译 以下为原文 Yes. Copy pic32mxlibldscriptself32pic32mx.x and paste it to the end of procdefs.ld. Then remove the line that says "INCLUDE procdefs.ld". You can give the file any name you want with the .ld extension. |
|
|
|
对。复制PIC32 MXLIB LDSPREST ELF32 PIC32 MX.X,并将其粘贴到PoCuff.LD的末尾。然后删除“包含PROFDECS.LD”的行。你可以用.LD扩展名给你想要的任何文件。这是我需要的信息。现在,我可以忽略它的每一个配置的基础上。谢谢!
以上来自于百度翻译 以下为原文 Yes. Copy pic32mxlibldscriptself32pic32mx.x and paste it to the end of procdefs.ld. Then remove the line that says "INCLUDE procdefs.ld". You can give the file any name you want with the .ld extension. This is the info I needed for it to come together. Now I can ignore it on a per-config basis. Thanks! |
|
|
|
只有小组成员才能发言,加入小组>>
5323 浏览 9 评论
2076 浏览 8 评论
1982 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3254 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2293 浏览 5 评论
835浏览 1评论
730浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
674浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
728浏览 0评论
622浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-3 08:07 , Processed in 1.311904 second(s), Total 95, Slave 79 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号