完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有三套PCB代码:生产、工厂测试和实验。这三套都应该有相同的MHC设置。我如何将MHC设置从一个项目复制/传输到另一个项目?我试着导出/导入,但是似乎只传递了一个子集,即,当我使用“MPLAB HARMony&Application Configuration Options”导出然后导入时,它从Options Tab(包括Clock)获得设置的日志,但是不为UART之类的特性分配管脚。
以上来自于百度翻译 以下为原文 I have 3 sets of code for my PCB: Production, Factory Test, and Experimental. All three should have exactly the same MHC setup for this project. How do I copy/transfer ALL the MHC settings from one project to another? I tried export/import, but that seems to only transfer a subset. i.e. When I export then Import using "MPLAB Harmony & Application Configuration Options" it gets a log of the setup from Options Tab (including Clock), but doesn't assign the pins for features like UART. Paul |
|
相关推荐
3个回答
|
|
BillP,有用,但你的职位是复制/升级一个项目,而我需要的是将MHC设置从一个项目复制到另一个现有项目。
以上来自于百度翻译 以下为原文 BillP, Useful, but your post is for duplicate/upgrade a project, while what I need is to copy MHC settings from one project to another existing project. |
|
|
|
哦,现在我想我明白你的要求了。假设在v1_08_01/apps目录下有3个项目(A、B、C),每个项目具有不同的MHC设置,并且您希望所有项目都具有相同的MHC设置。正确的?我想我以前在一个项目的设置中遇到过这个问题,我不得不重新设置它们。这里真正的“问题在于,一些MHC设置更改了sys_config文件中的源代码,因此在更改设置时可以得到孤立的代码。有时这个额外的代码会导致编译器和加载器错误。到目前为止,我的观察是,只对绝对必要的内容使用MHC,然后尝试隔离任何源代码更改,以便您可以对其他类似项目执行您想做的事情。只是我的意见。
以上来自于百度翻译 以下为原文 Oh, now I think I see what you are asking. Say you have 3 projects (A, B, C) under the v1_08_01/apps directory and they each have different MHC settings and you want all of them to have the same MHC settings. Right? I think I have stumbled on this before where the settings from one project showed up in another and I had to reset them. The real "gotcha" here is that some of the MHC settings change source code in the sys_config files so you can end up with orphaned code when you change settings. Sometimes this extra code will cause compiler and loader errors. My observation, so far, is to use MHC for only what is absolutely necessary and then try to isolate any source code changes so you can do what you want to do with other similar projects. Just my opinions. |
|
|
|
保罗,我想这会做你想做的事……(事情并不像看上去那么复杂)。:)我在v1_08_01/apps目录中创建了两个项目:Test1使用了动态计时器(和系统服务计时器),Test2使用了静态计时器(没有系统服务)和USB堆栈。下面是如何将所有的MHC设置从Test2复制到Test1:1。制作一个Test1目录(仅供安全使用)2。转到Test1/固件/SRC/StulySCOFIG并删除PIC32 MX目录。3。转到Test2/固件/SRC/StulySCOFIG,并将PIC32 MX目录复制到Test1/固件/SRC/StulyOffice 4。编辑PIC32 MX/Octudio.xml文件,并将Test2中的引用更改为Test1(编译器项目中有4行)5。转到Test1/固件/删除Test1.x目录6。转到Test2/固件,并将Test2.x目录复制到Test1/固件/重命名为Test1.x7。打开MPLAB X并打开Test1.x。项目将在项目屏幕上打开并显示Test2。8。选择重命名…并将项目从Test2重命名为Test1.9。此时屏幕可能仍然显示Test2,所以只要关闭项目并重新打开它,正确的项目名称应该就在那里。设置主项目,重新加载MHC并调试主项目。应该没有错误,并且所有来自Test2的MHC设置现在都在Test1中。
以上来自于百度翻译 以下为原文 Paul, I think this will do what you want…(it is not as complicated as it may seem). :) I created 2 projects in the v1_08_01/apps directory: Test1 used a dynamic timer (and a System Service Timer), Test2 used a static timer (no system services) and the USB stack. Both projects loaded MHC with no errors and then compiled, loaded, and ran with no errors. Here is how to copy all the MHC settings from Test2 to Test1: 1. Make a copy of the Test1 directory (just for safety) 2. Go to Test1/firmware/src/system_config and delete the PIC32MX directory. 3. Go to Test2/firmware/src/system_config and copy the PIC32MX directory to Test1/firmware/src/system_config 4. Edit the PIC32MX/configuration.xml file and change the references from Test2 to Test1 (there were 4 lines in Compiler Items) 5. Go to Test1/firmware/ and delete the Test1.X directory. 6. Go to Test2/firmware/ and copy the Test2.X directory to Test1/firmware/ and rename it to Test1.x 7. Open MPLAB X and open the Test1.X. The project will open and show Test2 in the project screen. 8. Choose Rename… and rename the project from Test2 to Test1. 9. At this point the screen may still show Test2, so just close the project and open it again and the correct project name should be there. 10. Set as the main project, reload MHC and Debug Main Project. There should be no errors and all the MHC settings from Test2 will now be in Test1. |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
776浏览 1评论
665浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
594浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
675浏览 0评论
575浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 21:46 , Processed in 1.416344 second(s), Total 50, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号