完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
HI ALI AM使用PIC32(MZ)启动器套件和声V2.05,与WiFi模块和以太网RJ45…这是我第一次使用和声。我有2个问题:1.在.c中,为什么(真)刚刚执行一次而不总是循环?如果我想添加我的代码,我该怎么办?2. PIC现在有200兆赫的时钟FRQ,我试图用40 MHz改变它,但是PIC堆栈Tysys*Debug gBasePosits()在SytSyExePcExc.C文件中。为什么?
以上来自于百度翻译 以下为原文 Hi all i am using Pic32(mz)starter kit and hARMony v2.05,with wifi module and Ethernet RJ45... it is my first time that i am using harmony.I have 2 problems: 1.in main.c why while(true) just executed one time and does not loop always? if i want to add my code what should i do? 2.the pic is now have 200MHZ of clock freq , i tried to change it with 40 MHZ but the pic stacks to SYS_DEBUG_BreakPoint(),in system_exeptions.c file.why? |
|
相关推荐
17个回答
|
|
|
1。做一些在线的和声教程来看看如何添加代码*参见Hyth教程:http://MyCHIPIPDeave.com /CONNEC:START2。如果使用PLL,PICS对时钟频率有限制。如果你想要非常慢的时钟,然后直接添加外部振荡器/谐振器(不要选择SPLL/PLL作为时钟)。请参阅该芯片的数据表的限制。你可能需要制作自己的PCB来测试慢时钟。保罗
以上来自于百度翻译 以下为原文 1. Do some of the online Harmony Tutorials to see how to add code * See Harmony tutorials in: http://microchipdeveloper.com/harmony:start 2. PICs have limits on Clock Frequency if using PLL. If you want really slower clock then add an External Oscillator/Resonator directly (Don't select SPLL/PLL as Clock). See Datasheet for the chip for limitations. You'll probably have to make Own PCB to experiment with Slower clock. Paul |
|
|
|
|
|
我已经使用这个PIC在我们的自定义板和我使用的右旋振荡器和时钟FRQ没有PLL,一切运作良好,但我没有使用和声,也只是以太网RJ45,但在这种情况下,我使用和谐…照片是一样的…为什么它不工作40MHz?
以上来自于百度翻译 以下为原文 I already used this Pic in our custom board and i used External Oscillator and clock freq without PLL,everything worked well,but i did not use harmony and also just had Ethernet RJ45, but in this case i am using harmony... the pic is the same... why it is not working with 40MHZ? |
|
|
|
|
|
1。检查MHC是否有正确的PGECX/PGEDX设置来匹配您的PCB2。发送您的MHC时钟设置图片
以上来自于百度翻译 以下为原文 1. Check that MHC has correct settings for PGECx/PGEDx to match your PCB 2. Send picture of your MHC Clock Settings |
|
|
|
|
|
如果您是新的和声,那么注意这可能有帮助:MHCH创建项目没有ObpSPVvPR.txt。
以上来自于百度翻译 以下为原文 If you are new to Harmony then notes in this might help: MHC_CreatingProjectWithoutBSP_v00PR.txt Attachment(s) MHC_CreatingProjectWithoutBSP_v00PR.txt (4.10 KB) - downloaded 16 times |
|
|
|
|
|
PGECX/PGEDX的设置是正确的,因为我可以编程和MAIC的运行与200兆赫。我附加了MYMHC时钟设置与40兆赫,不工作。谁能告诉我关于Meal.C文件和它的时间(真)????为什么它不总是循环,并且后面的任务();它不返回(真)?我需要用这个……我该怎么办?
以上来自于百度翻译 以下为原文 settings for PGECx/PGEDx is correct because i can program and mak the pic RUN with 200MHZ. i attached my MHC Clock Settings with 40 MHZ that does not work. can anyone tell me about main.c file and its while(true)????why it does not loop always,and after SYS_Tasks ( ); it does not return to while(true)?i need to use this while ... what should i do? Attached Image(s) |
|
|
|
|
|
希望有人能帮助你,我没有看到任何错误。还有几点:比较和声的实现与以前,时钟分频器和乘法器完全一样吗?对于使用的每个模块,PBCLK完全相同。-一些和声模块有很好的打印点,例如USB的最小SysCL60MHz。这是在许多PIC32的数据表中写的。我被我的PIC32 MZ咬了-你可能需要通过和谐的数据表、PIC勘误表和你正在使用的模块的DOC来找到这样的精细点:/*如果有wiki,那我们就可以很好地把这些重复的问题添加到更容易找到的地方。Good LuckPaul
以上来自于百度翻译 以下为原文 Hope someone elese can help you, I don't see anything wrong. Few more Points: - Comparing Harmony implementation to previous, arethe clock dividers and multipliers exactly same? Are the PBCLKs exactly the same for each module you use, etc.... - Some Harmony modules have fine print points, such as minimum SYSCLK 60MHz for USB. - That is written somewhere in Datasheet for many PIC32. I was bitten by this with my PIC32MZ. - You may have to go through the Harmony Datasheet, PIC errata, and docs for modules you are using to find such fine points :/ *Would be great if there was a wiki that we could all add these recurring issues to so easier to find. Good Luck Paul |
|
|
|
|
|
谢谢保罗。我发现这个问题,它是以太网RJ45的SPI时钟FRQ,它是14MHz。当我减少这个时,PIC运行在40兆赫。
以上来自于百度翻译 以下为原文 thanks paul. i found the issue and it was spi clock freq of ethernet Rj45 that was 14MHZ..when i reduced this the pic runs at 40 MHZ |
|
|
|
|
|
有人能告诉我关于Meal.c文件的内容吗????为什么它不总是循环,并且后面的任务();它不返回(真)?我需要用这个……我该怎么办?我在Test.c文件中看到了SturalPototaskx函数(PrVIDLASTASK,PVPATIONS),程序总是在这里循环,有人能为我解释一下吗?它能代替主(c)中的(真)吗?因为当我现在在主文件中时(1)应该总是循环,我们可以在那里添加代码,但是现在我迷惑了。
以上来自于百度翻译 以下为原文 can anyone tell me about main.c file and its while(true)????why it does not loop always,and after SYS_Tasks ( ); it does not return to while(true)?i need to use this while ... what should i do? i saw that in task.c file in static portTASK_FUNCTION( prvIdleTask, pvParameters ), the program always loop here, can anyone explain alittle for me? can it be instead of while(true) in main.c? because as i now in main file while(1) should always loop and we can add codes there,but now i confused. |
|
|
|
|
|
在正常情况下(在开始时),你不应该关心主回路。主循环调用你的AppyTaskS.()。此外,Orthon曾经调用你的AppInIrLaleIZE().AppHyTaskS.()是你的代码的大部分地方(包括调用你的函数。Nick)
以上来自于百度翻译 以下为原文 Under normal circumstances (of for the beginning), you shouldn't care about the main loop. The main loop does call your APP_Tasks(). Additionally, Harmony once calls your APP_Initialize(). APP_Tasks() is where most of your code goes to (including calls to your functions. Nick |
|
|
|
|
|
对不起,我没有得到答案…我不明白你想对我说什么
以上来自于百度翻译 以下为原文 sorry but i did not get my answer... i could not understand what you want to say me |
|
|
|
|
|
你不应该把代码放在Meal.C的循环中(除非你了解你所做的事情,并且需要在那里完成它,我对此非常怀疑)。两者都在Ap.C.NICK
以上来自于百度翻译 以下为原文 You should not place code in the loop of main.c (unless you understand what you do and need to do it exactly there; I highly doubt that). You code just goes into APP_Initialize and APP_Tasks. Both are in app.c. Nick |
|
|
|
|
|
|
|
|
|
|
|
只是一个FYI,你的结论是完全错误的。PGECX/PGEDX设置只影响调试,而不是编程。完全可以用不正确的程序对芯片进行编程。如果你想一想,如果这不是真的,你怎么能对芯片进行编程呢?
以上来自于百度翻译 以下为原文 Just an FYI that your conclusion here is totally wrong. The PGECx/PGEDx setting only affects debugging, not programming. It is entirely possible to program the chip with that setting incorrect. If you think about it, how could you program the chip at all if this were not true? |
|
|
|
|
|
只是一个FYI,你的结论是完全错误的。PGECX/PGEDX设置只影响调试,而不是编程。完全可以用不正确的程序对芯片进行编程。如果你想一想,如果这不是真的,你怎么能对芯片进行编程呢?那我在哪里查这个呢?配置比特?
以上来自于百度翻译 以下为原文 Just an FYI that your conclusion here is totally wrong. The PGECx/PGEDx setting only affects debugging, not programming. It is entirely possible to program the chip with that setting incorrect. If you think about it, how could you program the chip at all if this were not true? so where can i check this?in configuration bits? |
|
|
|
|
|
对于:PGECX/PGEDXMHC--GT;选项-GT;设备和项目配置REST随PIC寄存器的不同而变化,PIC32 MZ是:DeVCFG0- & GICICD COM信道选择(ICESL)*值得定期地通过所有MHC设置)以捕捉任何意想不到的变化,以更新SETIN。GS的东西,你已经获得了更好的理解C),只是熟悉设置可用的保尔
以上来自于百度翻译 以下为原文 For: PGECx/PGEDx MHC -> Options -> Device & Project Configuration Rest varies with PIC registers For PIC32MZ it is under: DevCfg0 -> ICEICD Com Channel Select (ICESEL) *It is worthwhile to periodically step through ALL your MHC settings a) To catch any unexpected changes b) To update settings for things you have gained a better understanding of c) To just become familiar with the settings available Paul |
|
|
|
|
|
感谢保罗…TICE ICD COM频道选择(ICESL)iSICSpgx2,因为我将在PGEC2/D2上使用ICD3用于我们的定制卡,但是现在我所做的所有测试都是在启动工具包的迷你USB上使用PICTIT3。
以上来自于百度翻译 以下为原文 thanks paul...the ICEICD Com Channel Select (ICESEL) is ICS_PGx2. because i will use icd3 on PGEC2/D2 for our custom board but all the test now that i am doing is with pickit3 via mini u*** that is on starter kit |
|
|
|
|
|
一个很好的技巧,看看你的PIC正在运行的是总是添加一个LED引脚或测试引脚。然后在主。C无限循环切换LED或测试引脚。它也给你一个想法,PIC是如何运行,或实际上是运行在所有!我开始陷入混乱的时钟开始,PIC甚至没有运行。和谐显示USB时钟在48兆赫红色,如果有什么不对,但我错了,它不是红色的。我没有选择USB锁相环,所以我的USB不工作。和谐是一个惊人的工具包,但仍然充满了错误。我在一年前做了一个IOT项目,使用了和声,不能让我的生活得到SPI总线去和以太网芯片交谈。在接触Microchip之前,我花了大约一个星期的时间。他们提出了一些建议,最后承认我的微芯片板出了问题。
以上来自于百度翻译 以下为原文 A good trick to see if your pic is running is to always add an LED pin or test pin. Then in main.c infinite loop toggle the led or test pin. It also gives you an idea how fast the pic is running or in fact is running at all ! I got into as mess with clocks to start with and the pic wasn't even running. Harmony shows u*** clock at 48MHz in red if something is wrong but I had it wrong and it wasn't in red. I wasn't selecting the u*** pll and so my u*** wasn't working. Harmony is an amazing piece of kit but is still full of bugs. I did a IOT things project about a year ago using harmony and couldn't for the life of me get the SPI bus to talk to the ethernet chip. I messed around for about a week before contacting Microchip. They gave a few suggestions and in the end admitted there was an issue with the Microchip board I had. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
501 浏览 0 评论
5811 浏览 9 评论
2350 浏览 8 评论
2237 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3544 浏览 3 评论
1159浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1121浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
888浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
501浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-13 15:13 , Processed in 1.361381 second(s), Total 104, Slave 87 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2044