完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我是非常新的嵌入式世界,我试图获得StETET与PIC32 MZ2048 EFM144上的PIC32 MZ SARTARKIT(EF)(带有密码)。我用MPLABX 3.55和编译器XC32 V1.42使用Hydio 2.02.0B。我在论坛中看到了另一个类似的主题,但是它们通常有不同的问题(例如编译错误或使用自定义的板布局,…)。Erver或/Apps/TCPIP/WebSyServ.NVMMPMPF运行良好。我打开项目,点击“生成”在MHC,接受所有差异和编程板。它出现在TCPIP发现工具中(并且,当我检查ICMPv4服务器的方框)时,我可以ping该板。所以没有硬件问题,所有的东西都连接正确。现在我想从“自下而上”的方法开始,从头开始创建一个项目。我创建了一个新的和声项目,选择了我的PIC和初学者工具包,检查了“使用BSP”。选中了“使用TCPIP”,确保“PIC32 It”被选中,确保FMIIEN断开并且FETHIO在上,并且在“以太网连接标志”中取消选择“RMII连接”(实际上我尝试了这两种方式),并确保选择了“使用声明发现工具”。然后我生成了COD。E,构建并编程了PIC。(请注意,我还没有编写任何一行C代码。)现在我不知道董事会应该已经能够沟通了。至少TCPIP发现工具应该显示该板。我也认为,当启用“ICMPv4服务器”时,委员会应该响应ping请求。我已经尝试取消选择DHCP,DNS,…但是注意到了变化-也提到了这个例子也启用了这个选项。每当我让一个LED切换到它为发现工具发出一个通知时,它愉快地闪烁着EVEY 333毫秒。我还修改了App.c并检查了TCP1堆栈是否准备好了,如果建立了一个链接,…一切都很好,我从Microchip看了几篇教程视频,读了几本教程。我在这个问题上争论了一个多星期,已经比较了工作实例。MHC文件和我自己的(通过一个差异工具)-没有什么大的差别。我也比较了时钟设置——它们也很相似。我打赌我缺少一些简单明了的东西,但我没有线索。如果你能告诉我什么,我会很高兴的。
以上来自于百度翻译 以下为原文 Hello, I am quite new to the embedded world and I am trying to get startet with the PIC32MZ2048EFM144 on a PIC32MZ StarterKit (EF) (with crypto). I am using HARMony 2.02.00b with the MPLabX 3.55 and the compiler XC32 v1.42. I saw the other, similar topics here in the Forums, but they usually have different problems (like compile errors or they use custom board layouts,...). When I am using the example project /apps/rtos/freertos/tcpip_client_server or the /apps/tcpip/web_server_nvm_mpfs they run fine. I open the projects, click 'generate' in MHC, accept all diffs and programm the board. It shows up in the TCPIP Discover Tool and (as soon as I check the box for ICMPv4 Server) I can ping the board. So there is no hardware issue and everything is connected correctly. Now I wanted to go the 'bottom-up' approach and wanted to build a project from scratch. I created a new harmony project, selected my PIC and Starter Kit, checked the "Use BSP?", checked "Use TCPIP" made sure that "PIC32INT" is selected, made sure that FMIIEN is OFF and FETHIO is ON, and de-selected "RMII Connection" in the "Ethernet Connection Flags" (actually I tried it both ways) and made sure that the "Use Announce Discovery Tool" was selected. Then I generated the code, built it and programmed the PIC. (Note that I did not yet write any line of C-Code.) Now I was unter the assumtion that the board should already be able to communicate. At least the TCPIP Discovery Tool should show the Board. Also I thought that, when enabling the "ICMPv4 Server" the board should respond to ping requests. I already tried to deselect DHCP, DNS,... but noting changed - also the mentioned examples have this option enabled, too. When I let an LED Toggle everytime it sends an announcement for the discovery tool, it blinks happily evey 333ms. I also modified the app.c and checked if the TCP_STACK is Ready and if a Link is established, ... It is all good. I watched several tutorial videos from microchip and read several tutorials. I am fighting with this issue for over a week now and already compared the working example .mhc files with my own (via a diff tool) - there was no big difference. Also I compared the clock settings - they are similar too. I bet I am missing something simple and obvious, but I have no clue what. I would be very happy if you could tell me what. |
|
相关推荐
1个回答
|
|
好的,我可以把它缩小一点:1)当如上所述设置项目时,并不是所有的PIN设置都在“端口服务”的“引脚配置”中正确地完成。2。)当将不同的项目设置为主项目并切换回最近创建的端口时,突然定义了所有端口。(但是我还没有工作……)3)当复制端口设置从“/Apps/RTOS/FRERTOS/TCPIPcliclithServer”项目到我自己的作品时…现在,我能够ping和发现工具也工作。另一个有趣的事情:当我简单地替换端口设置从SETP 1。与那些从步骤3。)它也不起作用。由于某种原因,MHC必须首先创建它们,知道这里有什么问题吗?我的BSP配置被破坏了吗?
以上来自于百度翻译 以下为原文 Ok, I was able to narrow it down a bit: 1.) When setting up the project as described above, not all PIN settings are done properly in the "Pins Configuration" of the "Ports Service". Only some settings for very few ports are done. 2.) When setting a different project to the main project and switching back to the recently created, suddenly all ports are defined. (But I does not work yet...) 3.) When copying the Port settings from the "/apps/rtos/freertos/tcpip_client_server" project to my own it works... now I am able to ping and the discovery tool also works. Another funny thing: When I simply replace the Port settings from setp 1.) with the ones from step 3.) it also does NOT work. For some reason the MHC has to create them first. Any idea what is wrong here? Is my BSP config broken? // these are the settings by the freshly created project with MHC #define SYS_PORT_B_ANSEL 0x8FDF #define SYS_PORT_B_TRIS 0xFFDF #define SYS_PORT_B_LAT 0x0000 #define SYS_PORT_B_ODC 0x0000 #define SYS_PORT_B_CNPU 0x7000 #define SYS_PORT_B_CNPD 0x0000 #define SYS_PORT_B_CNEN 0x0000 #define SYS_PORT_H_ANSEL 0xFFF8 #define SYS_PORT_H_TRIS 0xFFF8 #define SYS_PORT_H_LAT 0x0000 #define SYS_PORT_H_ODC 0x0000 #define SYS_PORT_H_CNPU 0x0000 #define SYS_PORT_H_CNPD 0x0000 #define SYS_PORT_H_CNEN 0x0000 // These are the settings created by the MHC after reopening the project #define SYS_PORT_A_ANSEL 0x3F23 #define SYS_PORT_A_TRIS 0xFFFF #define SYS_PORT_A_LAT 0x0000 #define SYS_PORT_A_ODC 0x0000 #define SYS_PORT_A_CNPU 0x0000 #define SYS_PORT_A_CNPD 0x0000 #define SYS_PORT_A_CNEN 0x0000 #define SYS_PORT_B_ANSEL 0x8FDF #define SYS_PORT_B_TRIS 0xFFDF #define SYS_PORT_B_LAT 0x0000 #define SYS_PORT_B_ODC 0x0000 #define SYS_PORT_B_CNPU 0x7000 #define SYS_PORT_B_CNPD 0x0000 #define SYS_PORT_B_CNEN 0x0000 #define SYS_PORT_C_ANSEL 0xFFFF #define SYS_PORT_C_TRIS 0xFFFF #define SYS_PORT_C_LAT 0x0000 #define SYS_PORT_C_ODC 0x0000 #define SYS_PORT_C_CNPU 0x0000 #define SYS_PORT_C_CNPD 0x0000 #define SYS_PORT_C_CNEN 0x0000 #define SYS_PORT_D_ANSEL 0xC100 #define SYS_PORT_D_TRIS 0xFFFF #define SYS_PORT_D_LAT 0x0000 #define SYS_PORT_D_ODC 0x0000 #define SYS_PORT_D_CNPU 0x0000 #define SYS_PORT_D_CNPD 0x0000 #define SYS_PORT_D_CNEN 0x0000 #define SYS_PORT_E_ANSEL 0xFFF0 #define SYS_PORT_E_TRIS 0xFFFF #define SYS_PORT_E_LAT 0x0000 #define SYS_PORT_E_ODC 0x0000 #define SYS_PORT_E_CNPU 0x0000 #define SYS_PORT_E_CNPD 0x0000 #define SYS_PORT_E_CNEN 0x0000 #define SYS_PORT_F_ANSEL 0xFEC0 #define SYS_PORT_F_TRIS 0xFFFF #define SYS_PORT_F_LAT 0x0000 #define SYS_PORT_F_ODC 0x0000 #define SYS_PORT_F_CNPU 0x0000 #define SYS_PORT_F_CNPD 0x0000 #define SYS_PORT_F_CNEN 0x0000 #define SYS_PORT_G_ANSEL 0x8FFC #define SYS_PORT_G_TRIS 0xFFFF #define SYS_PORT_G_LAT 0x0000 #define SYS_PORT_G_ODC 0x0000 #define SYS_PORT_G_CNPU 0x0000 #define SYS_PORT_G_CNPD 0x0000 #define SYS_PORT_G_CNEN 0x0000 #define SYS_PORT_H_ANSEL 0x0070 #define SYS_PORT_H_TRIS 0xFFF8 #define SYS_PORT_H_LAT 0x0000 #define SYS_PORT_H_ODC 0x0000 #define SYS_PORT_H_CNPU 0x0000 #define SYS_PORT_H_CNPD 0x0000 #define SYS_PORT_H_CNEN 0x0000 #define SYS_PORT_J_ANSEL 0x0B00 #define SYS_PORT_J_TRIS 0xFFFF #define SYS_PORT_J_LAT 0x0000 #define SYS_PORT_J_ODC 0x0000 #define SYS_PORT_J_CNPU 0x0000 #define SYS_PORT_J_CNPD 0x0000 #define SYS_PORT_J_CNEN 0x0000 #define SYS_PORT_K_ANSEL 0xFF00 #define SYS_PORT_K_TRIS 0xFFFF #define SYS_PORT_K_LAT 0x0000 #define SYS_PORT_K_ODC 0x0000 #define SYS_PORT_K_CNPU 0x0000 #define SYS_PORT_K_CNPD 0x0000 #define SYS_PORT_K_CNEN 0x0000 // These are the working settings #define SYS_PORT_A_ANSEL 0x3D22 #define SYS_PORT_A_TRIS 0xFDFF #define SYS_PORT_A_LAT 0x0000 #define SYS_PORT_A_ODC 0x0000 #define SYS_PORT_A_CNPU 0x0001 #define SYS_PORT_A_CNPD 0x0000 #define SYS_PORT_A_CNEN 0x0000 #define SYS_PORT_B_ANSEL 0x0FC9 #define SYS_PORT_B_TRIS 0xFFC9 #define SYS_PORT_B_LAT 0x0000 #define SYS_PORT_B_ODC 0x0000 #define SYS_PORT_B_CNPU 0x3000 #define SYS_PORT_B_CNPD 0x0000 #define SYS_PORT_B_CNEN 0x0000 #define SYS_PORT_C_ANSEL 0xEFFF #define SYS_PORT_C_TRIS 0xFFFF #define SYS_PORT_C_LAT 0x0000 #define SYS_PORT_C_ODC 0x0000 #define SYS_PORT_C_CNPU 0x0000 #define SYS_PORT_C_CNPD 0x0000 #define SYS_PORT_C_CNEN 0x0000 #define SYS_PORT_D_ANSEL 0xC100 #define SYS_PORT_D_TRIS 0xFFFF #define SYS_PORT_D_LAT 0x0000 #define SYS_PORT_D_ODC 0x0000 #define SYS_PORT_D_CNPU 0x0000 #define SYS_PORT_D_CNPD 0x0000 #define SYS_PORT_D_CNEN 0x0000 #define SYS_PORT_E_ANSEL 0xFFF0 #define SYS_PORT_E_TRIS 0xFFFF #define SYS_PORT_E_LAT 0x0000 #define SYS_PORT_E_ODC 0x0000 #define SYS_PORT_E_CNPU 0x0000 #define SYS_PORT_E_CNPD 0x0000 #define SYS_PORT_E_CNEN 0x0000 #define SYS_PORT_F_ANSEL 0xDEC0 #define SYS_PORT_F_TRIS 0xDFFF #define SYS_PORT_F_LAT 0x0000 #define SYS_PORT_F_ODC 0x0000 #define SYS_PORT_F_CNPU 0x0000 #define SYS_PORT_F_CNPD 0x0000 #define SYS_PORT_F_CNEN 0x0000 #define SYS_PORT_G_ANSEL 0x0C7C #define SYS_PORT_G_TRIS 0xFFFF #define SYS_PORT_G_LAT 0x0000 #define SYS_PORT_G_ODC 0x0000 #define SYS_PORT_G_CNPU 0x0000 #define SYS_PORT_G_CNPD 0x0000 #define SYS_PORT_G_CNEN 0x0000 #define SYS_PORT_H_ANSEL 0x0000 #define SYS_PORT_H_TRIS 0xF7B0 #define SYS_PORT_H_LAT 0x0000 #define SYS_PORT_H_ODC 0x0000 #define SYS_PORT_H_CNPU 0x0000 #define SYS_PORT_H_CNPD 0x0000 #define SYS_PORT_H_CNEN 0x0000 #define SYS_PORT_J_ANSEL 0x0000 #define SYS_PORT_J_TRIS 0xEB37 #define SYS_PORT_J_LAT 0x0000 #define SYS_PORT_J_ODC 0x0000 #define SYS_PORT_J_CNPU 0x0000 #define SYS_PORT_J_CNPD 0x0000 #define SYS_PORT_J_CNEN 0x0000 #define SYS_PORT_K_ANSEL 0xFF00 #define SYS_PORT_K_TRIS 0xFFDF #define SYS_PORT_K_LAT 0x0000 #define SYS_PORT_K_ODC 0x0000 #define SYS_PORT_K_CNPU 0x0000 #define SYS_PORT_K_CNPD 0x0000 #define SYS_PORT_K_CNEN 0x0000 |
|
|
|
只有小组成员才能发言,加入小组>>
5248 浏览 9 评论
2036 浏览 8 评论
1956 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3217 浏览 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 05:06 , Processed in 1.297800 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号