完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好!抱歉我的坏英语我请求一些帮助,以便了解如何配置PIC32-EZ64,以便与LAN810一起工作。我的主要问题是:我多次尝试在这个板上使用TCPIP栈没有成功。这里我的说明:MPLAB X IDE V3.55和谐V2.BB板用于:PIC32-EZ64(OLIM)。使用PIC32 MZ2048 EFH064和LAN810AProject的板:“TCPIPSUDPULSE服务器”演示项目在和谐 V2Y02YY0BAppTCPIP“一般演示”演示项目中找到了以下主程序,我使用了“TCPIPSUDPUServer”演示项目中的和声。SK板(PIC32 MZ2048 ECH144)。现在,我想在PIC32-EMZ64 OLIMEX板上运行这个项目。由于和声,我改变了设置,以支持PIC32 MZ2048 EFH064。但是没有以太网端口的通信。我试图ping板,没有答案(与WiReSurk无关)。通过调试,我发现TCPIP栈初始化没有运行。在App.c文件中,TCPIPSATAT=APPyTCPIpl忙了好几次,在AppyTCPPIpError上完成了阻塞。为了验证以太网端口是否在我的板上工作,我从OLIMEX网站上下载了一个演示项目:De将军。MWHEN通过直接在这个演示中使用.HEX文件找到程序板(由于MPLAB IPE),以太网端口工作。我还没有尝试更新这个演示中的文件,该项目使用了一个旧版本的MPLAB,并且似乎需要大量的工作,以便在我的版本上重新读取代码。NKS我的问题是微控制器和以太网TrimeEIR(LAN810A)之间的配置。和声没有用于810A的外部PHY选项,但是在OLIMEX“一般演示文件”中,它似乎使用了与LAN820(….Demo DemoV1Y06Y02\Frase\驱动程序)相同的PHY选项。因此,通过LAN820PHY选项,我尝试了,没有成功地发现如何通过协调和文件内的配置来改变配置,以便使以太网端口工作。我想得到一些我错过的建议。谢谢,Endinar。
以上来自于百度翻译 以下为原文 Hi ! Sorry for my bad english I request some help in order to understand how configure the PIC32-EMZ64 in order to work with the LAN8710. My main problem : I tried several times to use the TCPIP stack on this board without success. Here my specs : MPLAB X IDE V3.55 HARMONY V2.2b board used : PIC32-EMZ64 (OLIMEX) board with PIC32MZ2048EFH064 and LAN8710A project used : "tcpip_udp_server" demo project in harmonyv2_02_00bappstcpip "General Demo" demo project found here As main program, I use the "tcpip_udp_server" demo project found in harmony. I already tried this project with success with the PIC32 EC SK board (PIC32MZ2048ECH144). And now, I would like to run this project on the PIC32-EMZ64 OLIMEX board. Thanks to harmony, I changed the setting in order to support the PIC32MZ2048EFH064. But there are no communication by the ethernet port. I tried to ping the board, no answers (with Wireshark nothing comme out). By debugging I found the TCPIP stack initialisation doesn't run. In the app.c file : switch(UDP1_appData.state) { case APP_TCPIP_WAIT_INIT: tcpipStat = TCPIP_STACK_Status(sysObj.tcpip); if(tcpipStat < 0) { // some error occurred SYS_CONSOLE_MESSAGE(" APP: TCP/IP stack initialization failed!rn"); UDP1_appData.state = APP_TCPIP_ERROR; } tcpipStat = APP_TCPIP_BUSY several times and finish blocked on APP_TCPIP_ERROR. Just in order to verify if the ethernet port work on my board, I dowloaded a demo project from the OLIMEX website : General Demo When I program the board by using directly the .hex file find in this demo (thanks to MPLAB IPE), the ethernet port work. I have not yet tried to update the files in this demo, the project used an old version of MPLAB and seems to need lot of works in order to readapt the codes on my version. I thinks my problems is the configuration between the microcontroller and the ethernet transceveir (LAN8710A). Harmony doesn't have an external PHY option for the 8710A, but in the OLIMEX "General Demo" files it seems to use the same PHY option than the LAN8720 ( ..General demov1_06_02frameworkdriverethphysrcdynamic). So, with the LAN8720 PHY option, I tried, without success, to found how to change the configuration by Harmony and inside the files in order to make the ethernet port works. I would like to get some suggestions of what I would have missed. Thanks, Endinar |
|
相关推荐
12个回答
|
|
请确保配置保险丝与您的电路板布局匹配:MII/RMII和默认/替代I/O配置。检查您是否使用了适当的PHY地址。如果启用项目中的串行控制台,将有一个错误消息告诉您出了什么问题,这样您就知道该往哪里看。最有可能是失败的PHY初始化:驱动程序无法与PHY通信。
以上来自于百度翻译 以下为原文 Make sure that the configuration fuses match your board layout: MII/RMII and default/alternate I/O configuration. Check that you use the proper PHY address. If you enable a serial console in your project, there will be an error message telling you what went wrong so you'll know where to look. Most likely is the PHY initialization that failed: the driver could not communicate with the PHY. |
|
|
|
谢谢你的回复,我忘了提到我是一个新的微芯片世界(我已经和AtMGA和德克萨斯芯片一起工作了,但是没有PIC32)。更烦人的问题是:当我插入一个电线(以太网端口LED不亮)时,以太网端口似乎没有检测到。与其他板(PIC32 MZ2048 EC144和LAN820),当我选择一个不同的PHY组件比LAN820(例如NITALALL DP838 48),UDP套接字通信不起作用(当然),但以太网端口似乎检测线连接或不(LED灯打开和关闭)。在配置中,您指的是引脚配置吗?我已经检查了所有配置的PHY引脚(并且所有这些引脚都在“可用”)中。我正在尝试您的建议:读取错误消息(在代码中由“SysHyrRoRyPrand())发送。我想使用USAT驱动程序使用控制台系统服务,并用P腻y读取消息。Y,我调试我的项目没有错误,但油灰控制台不显示任何东西(即使我仔细设置相同波特率)。
以上来自于百度翻译 以下为原文 Thanks for the reply First, I forgot to mention I am new in the Microchip world (I have already worked with some ATMEGA and Texas chips, but not with pic32). The more annoying problem is : the Ethernet port doesn't seem to detect when I plug a wire (the Ethernet port LEDs don't light on). With the other board (PIC32MZ2048ECH144 and LAN8720), when I choose a different PHY component than the LAN8720 (for example National_DP83848), the UDP socket communication doesn't work (of course), but the Ethernet port seem to detect when the wire is connected or not (the LEDs light on and off). About the configuration, do you refer to the pins configuration ? I already checked with all the PHY pins configured (and with all these pins in "available"). I am trying your recommendation : reading the error message (send by "SYS_ERROR_PRINT()" in the code). I would like to use the console system service with USART driver and read the message with putty. Currently, I debug my project without error, but putty console doesn't show anything (even so I carefully set the same baud rate). |
|
|
|
找到了!”DRVYPHY操作错误:- 1“我搜索错误发生的地方。
以上来自于百度翻译 以下为原文 Found ! "DRV_PHY operation error: -1" I search where the error occurred. |
|
|
|
那么你肯定有一个硬件问题与PHY。PHY错误代码= - 1意味着PHY没有检测到。确保您检查您的董事会彻底。关于配置我指的是MII/RMII保险丝和I/O选择的。确保它们符合你的设置。此外,如果使用不同的值,请使用适当的PHY地址或尝试0。
以上来自于百度翻译 以下为原文 Then you definitely have a hardware problem with that PHY. The PHY error code = -1 means that the PHY was not detected. Make sure you check your board thoroughly. About the configuration I was referring to both the MII/RMII fuses and the I/O selection ones. Make sure they match your set up. Also, use the proper PHY address - or try 0, if you use a different value. |
|
|
|
硬件似乎是好的:OLIMEX演示项目(名为“SDKCARDWebServer”).HEX文件与以太网端口(LEDLON ON,ping请求应答,Web页面,……)一起正常工作。我安装了OrthV1.0602来读取设置,我在项目中使用了相同的I/O选择。和谐V2.02.0B(同一芯片,同一板)。我设置“RMII连接”标志,“RMII数据接口”并禁用FMIIN(使其看起来禁用RMII)。我总是将PHY地址设置为0,如数据表中所提到的:-MODE:ALL(10 /100BASE)。启用自动协商。-配置:RMII.-SMI地址:0x00。我将尝试对设置进行工作。
以上来自于百度翻译 以下为原文 The hardware seems to be fine : the OLIMEX demo project (named "SD_card_webserver") .hex file works properly with the Ethernet port (LEDs light on, ping request answered, web page, ...). I installed Harmony v1.06.02 in order to read the settings and I used the same I/O selections in my project with Harmony v2.02.00b (same chip, same board). I set the "RMII connection" flags, the "RMII Data Interface" and disable the FMIIEN (enable it seems to disable the RMII). I always set the PHY address to 0, as mentioned in the datasheet : - Mode: All capable(10/100Base). Auto-Negotiation enabled. - Configuration: RMII. - SMI address: 0x00. I will try to work on the settings. |
|
|
|
那么硬件就可以了。虽然你应该看到PHY闪烁的LED当网络上的流量,就像你在板上,没有任何软件运行。你提到了FMIIN(它应该被禁用为RMII)。另一个保险丝:Fetho,是一个正确的设置?
以上来自于百度翻译 以下为原文 Then probably the hardware is OK. Although you should see the PHY blinking its LEDs when there's network traffic just as you power on the board, without any software running. You mentioned the FMIIEN (and it should be disabled for RMII). What about the other fuse: FETHIO, is that one with the correct setting? |
|
|
|
是的。橙色LED在“配置存储器”中闪烁一点,然后关闭(即使我插上电线也不动)。相同的“DrvyPHY操作错误:-1”消息每次出现。在我的项目中,FETIO总是在。在更改之前,我在不同的板上运行同一个项目。在PIC32 MZ EC SK(PIC32 MZ2048 ECH144和LAN840)和OLIMX PIC32-EZ64(PIC32 MZ2048 EFH064和LAN810)之间,设置如下:似乎不需要太多的改变(理论上)。只需将芯片、I/O设置和PHY配置设置转换为LAN820。通过读取OLMIEX演示项目,我尝试了一些其他设置,并且添加了“RMII连接”和“RMII数据接口”设置而不进行更改。可能问题是来自我的bug。MPLAB版本。我尝试在我的笔记本上编译OrimeX演示文稿,并在文件“PursSpP32 MZ2048 EFH064 .h”中出现了许多错误。
以上来自于百度翻译 以下为原文 Yes it does. The orange led blinks a little during "configuration memory" before it turn off (and remain off even if I plug a wire). The same "DRV_PHY operation error: -1" message appears each times. The FETHIO is always ON in my project. I ran the same project on a different board before changing. Between the PIC32MZ EC SK (PIC32MZ2048ECH144 and LAN8740) and the OLIMEX PIC32-EMZ64 (PIC32MZ2048EFH064 and LAN8710), the settings doesn't seem to need lot of changes (in theory). Just change the chip, the I/O setting and the PHY config setting to LAN8720. By reading the OLMIEX demo project I tried some other settings and I added "RMII Connection" and "RMII Data Interface" setting without change. Perhaps the problem is a bug from my MPLAB version. I tried to compile the OLIMEX demo with Harmony 1.06.02 on my laptop and and many error occurred in the file "ports_p32mz2048efh064.h". |
|
|
|
这没有多大意义。请检查项目中是否有FEXIO。如果您怀疑库的问题,最好尝试一个新版本的和声。
以上来自于百度翻译 以下为原文 This doesn't say much. Please check that the FETHIO is also ON in the project that works. Probably better to try a newer version of Harmony, if you suspect issues with the libraries. |
|
|
|
我在看EMZ64的原理图,LAN810设置在RMII模式。50MHz时钟同时驱动PHY(LAN810)和MAC(在PIC32 MZ中)。SMI地址是0x00为和谐,只使用默认的LAN820模式设置。C:Microchip和谐 V1Y09FraseEthfySrcDyroicDrVixExpIsIsMSC820.C&*.*.HLAN 8720地址是PyActudio= 0摘要:只使用LAN820设置。如果这不起作用,请对所有寄存器进行PHY转储(在论坛中搜索A),然后在这里张贴,然后我再看一看。
以上来自于百度翻译 以下为原文 I'm looking at the EMZ64 Schematic, and the LAN8710 is set up in RMII Mode. 50Mhz Clock driving both the PHY (LAN8710) and MAC (in the PIC32MZ). SMI Address is 0x00 As far are Harmony, just use the default LAN8720 mode settings. c:microchipharmonyv1_09frameworkdriverethphysrcdynamic drv_extphy_smsc8720.c & *.h LAN 8720 address is phyAddress = 0 Summary: Just use LAN8720 settings. If that doesn't work, do a PHY DUMP of all registers (search the forum for a how to) and post here and I'll take a look. |
|
|
|
对不起,迟来的回应。我检查过,我的项目都是FEXIO。我尝试了和V2.03B(最新的)相同的结果。我将用PIC32 MZ2048 ECH144代替EFH064。使用这个PIC,TCPIP栈工作。但是我将继续搜索EFH064的解决方案(我想知道为什么它不起作用),我一找到它就把它放在这里。
以上来自于百度翻译 以下为原文 Sorry for the late respond. I checked, the FETHIO is ON in all my projects. I tried with Harmony v2.03b (the newest) with the same result. I will work with the PIC32MZ2048ECH144 instead of the EFH064. With this pic, the TCPIP stack works. But I will continue to search a solution for the EFH064 (I want to understand why it doesn't work) and I would put it here as soon as I find one. |
|
|
|
对不起,我每次使用PIC32-EZ64板时,我检查PHY设置是LAN820.关于PHY转储,您的意思是:从我的PIC发送信号到LAN810并用示波器监视他?
以上来自于百度翻译 以下为原文 Sorry for the late answer Each time I use the PIC32-EMZ64 board, I check the PHY setting is LAN8720. About the PHY DUMP, you mean : send a signal from my PIC toward the LAN8710 and monitoring him with a oscilloscope ? |
|
|
|
对不起,我的意思是在PHY中读取(读取)32(寄存器0到31)寄存器,看看发生了什么。这个老线程讨论了LAN9303,但LAN820HTTP://www. McCHIP.COM/FUMMS/M67 1260.ASPX的过程相同?树= truthice教程关于使用和声函数:函数:EthimeRead ReultMultor(),EthmiMeRead Stand(),EthmiMrimestAtter()是EthScript库的一部分,用于读取Phy寄存器0到31,并且应该在编译器中可用。
以上来自于百度翻译 以下为原文 Sorry, I meant dumping (reading out) the 32 (register 0 to 31) registers in the PHY to see what is happening. This older thread discussed the LAN9303, but same process for LAN8720 http://www.microchip.com/forums/m671260.aspx?tree=true Nice tutorial on using Harmony Functions: Functions:EthMIIMReadResult()、EthMIIMReadStart()、EthMIIMWriteStart() are part of Eth library, used to read Phy registers 0-31 and should be available in your compiler. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
779浏览 1评论
673浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
599浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
683浏览 0评论
580浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 20:37 , Processed in 1.626851 second(s), Total 100, Slave 84 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号