完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!在我的项目文件夹中编译文件时,我希望能够替换HONE文件夹中的文件。让我举一个例子。有堆栈的发布功能,但我希望发布功能能够提供比默认版本更多的信息。为了实现这一点,我必须修改Hyg文件夹中的.c文件,以便从应用程序中的函数中获取信息。如果你把你的和声目录与一个特定的项目联系在一起,那就很好了。在开发多个系统时,它并不理想。我更希望有一种方法将.c文件复制到我的项目中,并修改它,但是它是在项目中编译而不是在一个项目中编译的。在和声文件夹中,有人知道怎么做吗?谢谢,John Vickers
以上来自于百度翻译 以下为原文 Hello everyone! I would like to be able to replace files in the HARMony folder during compile with files in my project folder. Let me give an example. There is the announce functionality of the stack, but I wanted the announce feature to give more information than the default version. To accomplish this I had to modify the .c file in the Harmony folder to get information from functions in my application. While that is fine if you keep your harmony directory tied with a particular project, it really isn't ideal when developing multiple systems. What I would have preferred is to have a way to copy that .c file into my project and modify that one, but have it compiled in the project instead of the one in the Harmony folder. Does anyone know how to do this? Thanks, John Vickers |
|
相关推荐
6个回答
|
|
您可以向项目添加您的版本并删除它们。但是每次运行MHC,你都必须再次做。有些人写了一些东西叫麦克帕彻。你可以看看这是否有助于张贴在某个地方。
以上来自于百度翻译 以下为原文 You can add your version to the project and delete theirs. But then you will have to do it again every time you run MHC. Some wrote something call mcPatcher. You can see if that would help it is posted here somewhere. |
|
|
|
V2.0xCube作为一个独立的项目。所有的和声文件都被复制到App文件夹结构中。如果/再运行MHC,你将显示出每个文件的差异。
以上来自于百度翻译 以下为原文 V2.0x Create as a standalone project. All the harmony files are copied into the app folder structure. Then if/when you run MHC again you will be shown a diff for each file with changes. |
|
|
|
有趣。如果我曾经设法迁移到V2.xx,我需要看看。目前,我仍然与大部分废弃的1.XX版本。
以上来自于百度翻译 以下为原文 Interesting. I will need to look at that if I ever manage to migrate to V2.XX. For the moment I am still with the mostly abandoned 1.XX version. |
|
|
|
是的,我希望他们把这样的特性添加到2.0x!这将使一个项目作为一个Git回购更容易控制!维克斯
以上来自于百度翻译 以下为原文 Yay, I was hoping they added a feature like that to 2.0X! That will make controlling a project as a Git Repo much easier! John Vickers |
|
|
|
我在2.01B中尝试过,但是在我的项目中有一些丢失的文件,所以我提出了一张票。我不知道它是否已经修好了,还没有收到票的通知。
以上来自于百度翻译 以下为原文 I tried that in 2.01b but there were some missing files in my project so I raised a ticket. I donj't know if it's fixed yet, haven't had notification from the ticket. |
|
|
|
我也使用独立的选项。可能是最干净的解决方案,如果你必须对框架进行修改。但你是对的,这个独立的机制有几个错误,忘记复制文件,或者将文件复制到错误的位置。然而,通常这是很容易修复的。一种方法是找出它忘记复制的文件,在原始的和声框架目录中搜索它,并将它复制到你的项目目录中可能是的地方。通常它在同一个文件夹路径中,但有时文件需要向上移动一些目录。如果请求一个去激活模块的头文件,那么您也可以尝试启用该模块,生成代码以使文件被复制,然后再次禁用该模块。这个文件不会被删除。V2.00的一些bug在这个线程中被描述:HTTP://www. McCHIP.COM/FUMMS/FUNDSPE/954
以上来自于百度翻译 以下为原文 I'm also using the standalone option. Probably the cleanest solution, if you have to make modifications to the framework. But you are right, this standalone mechanism has several bugs and forgets to copy files, or is copying them to the wrong location. However, usually this is very easy to fix. One way is to just find out which file it has forgotten to copy, search for it in the original Harmony framework directory and copy it to the place in your project directory where it is probably supposed to be. Usually it is in the same folder path, but sometimes the files need to move a few directories up. If a header file for a deactivated module is requested, then you can also try to enable the module, generate code to make the file getting copied, and then disable the module again. The file won't get deleted. Some of the bugs for v2.00b are described in this thread: http://www.microchip.com/forums/FindPost/954278 |
|
|
|
只有小组成员才能发言,加入小组>>
5248 浏览 9 评论
2036 浏览 8 评论
1956 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3218 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2264 浏览 5 评论
786浏览 1评论
677浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
603浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
684浏览 0评论
581浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 11:42 , Processed in 1.447023 second(s), Total 86, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号