完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
当试图运行从MHC...PIC32MZ2048EFH144,HARMony 1.07.01,XC32 1.40生成的一些(否则工作)代码时,您好,我有一个有趣的问题。我已经在MHC中配置了一些IO端口,这些端口生成了requiredSYS_PORTS_Initialize.c。AIN,它从代码的开头开始。基本上是重置(似乎没有击中标准异常代码)。当我通过时,它阻塞了以下模板脚本:如果我对PORTS_DirectionOutputSet_MCU32_PPS函数的内容进行注释,其余的代码可以正常操作……对此有何想法?谢谢!
以上来自于百度翻译 以下为原文 Hi all I have an interesting problem when trying to run some (otherwise working) code generated from the MHC... PIC32MZ2048EFH144, Harmony 1.07.01, XC32 1.40 I've configured some IO ports in MHC which generated the required SYS_PORTS_Initialize.c. When I run the code, the debugger halts and if I run again, it starts at the beginning of the code. Essentially a reset (doesn't appear to hit the standard exception code). When I step through, it chokes on the following template script: PLIB_TEMPLATE void PORTS_DirectionOutputSet_MCU32_PPS( PORTS_MODULE_ID index , PORTS_CHANNEL channel , PORTS_DATA_MASK mask ) { _SFR_CLEAR( _PORTS_DIRECTION_B_VREG(index) + ((channel-1) * 0x40), mask ); } If I comment the contents of the PORTS_DirectionOutputSet_MCU32_PPS function, the rest of my code operates properly... Any ideas on this one? Thanks! |
|
相关推荐
1个回答
|
|
|
“HTTP://www. McCHIP.COM/FUMMS/M92472.ASPX”可能与此有关。在协调器中,是否多次使用生成按钮?如果是这样,它可能会丢失您的引脚数字或模拟设置。我没有看到它从输出恢复到输入,反之亦然,但我确实看到它丢失了使用PIC32MX460F512L的数字/模拟设置。也许配置器在生成迭代时丢失了您的端口方向或其他端口数据,就像它对我一样。
以上来自于百度翻译 以下为原文 "http://www.microchip.com/forums/m929742.aspx" Perhaps it's related to this. Have you used the generate button more than once in the Harmony Configurator? If so, It may be losing the settings for your pins digital or analog. I didn't see it revert to input from output or visa versa, but I definitely saw it losing the digital/analog settings using PIC32MX460F512L. When I reported the bug, it was fixed in the next version of the configurator, 1.0.8.7, so updating your configurator might work. Perhaps the configurator is losing your port direction or other port data between generate iterations like it was for me. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475 浏览 0 评论
5794 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 13:37 , Processed in 0.768131 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2712