完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在Poto板上使用PIC32 MZ2048 EFG064(没有EVE板)和一个PICtiT3。现在我只想在以太网上发送一个垃圾包,但几天之后我就完成不了什么。我使用的是标准的以太网引脚和RMII,并且使用了γ-Primar语句来设置这个,但是在这一点上,我已经断开PHY,并且只通过查看MAC寄存器和描述符TSV位来寻找传输分组的证据。如果我运气好,可以在EXXEN、ETXD0或ETXD1上看到活动。当我设置TXRTS时,它确实清除了自己,但是没有任何证据表明其他事情正在发生。没有MAC寄存器的变化,所有的TSV位都是零,在我的范围内没有任何东西。我最初有50MHz进入ErFLCK,但是假设MAC可能是完全静态的,现在在那里输入1KHz,以防高频在我的原始布线工作中不能很好地发挥作用。我已经验证了ErFLCK连接,因为我临时关闭以太网,并将其设置为输入,并编写了一些代码来查找转换。一切都很好。我已经看过了其他的样例代码,遵循了初始化的UNSS601155D,并尝试了所有我能想到的。我尝试了和声,但是几乎不可能去跟踪它所做的事情。是否有人有这个芯片的样本代码,所以我只能从MAC引脚发送一些东西?这个外围设备让人发狂。
以上来自于百度翻译 以下为原文 I'm using a PIC32MZ2048EFG064 on a proto board (no eval board) and a Pickit3. Right now I'm only trying to send a junk packet on Ethernet, but after days I've accomplished little. I'm using the standard Ethernet pins and RMII and have #pragma statements to set this, but at this point I've disconnected the PHY and am only looking for evidence of a transmitted packet by looking at MAC registers and the descriptor TSV bits. And if I'm lucky, a scope to see activity on ETXEN, ETXD0 or ETXD1. When I set TXRTS it does clear itself, but there is zero evidence of anything else happening. No changes in the MAC registers, all TSV bits are zero, nothing out on my scope. I originally had 50MHz going into EREFCLK, but then assuming the MAC is probably totally static, feed just 1kHz in there now in case the high frequency isn't playing well with my proto wiring job. I've verified the EREFCLK connection is there since I temporary turned off Ethernet and set it as an input and wrote some code to look for transitions. That's all good. I've looked at other sample code, followed the initialization in DS60001155D, and tried everything I can think of. I tried HARMony but it's darn near impossible to follow what that's even doing. Does anyone have sample code for this chip so I can just send something out of the MAC pins? This peripheral is maddening. |
|
相关推荐
5个回答
|
|
ProtoBoard?什么国王/ PIC32和PHY需要适当的布局工作。你的示意图与微芯片板匹配吗?你为什么不拥有一块EGO板呢?你会起来工作的。有几个插座样本项目是和谐的。
以上来自于百度翻译 以下为原文 ProtoBoard? What king/ The PIC32 and the PHY need proper layout to work. Does your schematic Match the Microchip boards? Why Don't you have an eval Board? You would be up and working. There are several socket sample Projects in harmony. |
|
|
|
什么样的PHY?什么样的时钟源。布局至关重要。
以上来自于百度翻译 以下为原文 What kind of phy? What kind of clock source. Layout is critical. |
|
|
|
我的意思是原型板是一个SMT到通孔适配器,所以我有一种方法来连接我的调试器,电源,去耦,和一些I/O,我没有一个EVE板在这个时候,虽然有一定帮助,我想使用一个特定的堆栈没有RTOS,和一个例子,看到毫不知情。然而,我确实有这样的堆栈运行在TI臂这样,所以这只是一个问题,移植它。为了做到这一点,我需要能够发送原始帧。这应该是一个简单的任务,但是忽略PHY,事情从MAC的角度来看是行不通的。
以上来自于百度翻译 以下为原文 What I mean by protoboard is an SMT to through-hole adapter so I have a way to connect my debugger, power, decoupling, and some I/O. I do not have an eval board at this time, and while having that would certainly be helpful, I want to use a specific stack without an RTOS, and an example of that seems to be nowhere to be found. I do however have this same stack running on a TI ARM in this way so it's just a matter of porting it. In order to do this, I need to be able to send raw frames. This should be a simple task but ignoring the PHY, stuff just isn't working from a MAC perspective. |
|
|
|
这是LAN820,但现在的布局和设计无关。我确实提到了OP中的时钟。我的问题是MAC寄存器和描述符TSV位不合作。我不相信我需要一个PHY来查看传输帧的证据,特别是在全双工模式下。现在我的目标是看到MAC传输引脚上的活动和/或通过查看MAC寄存器来清除TXRTS之外的传输帧的一些证据,这两个我都不知道。基本上,MPSIM将演示,如果它模拟了MAC。
以上来自于百度翻译 以下为原文 It's a LAN8720 but that and layout is irrelevant right now. I do mention the clock in the OP. My problem is the MAC registers and descriptor TSV bits aren't cooperating. I don't believe I need a PHY to see evidence of a transmitted frame, especially in full duplex mode. Right now my goal is to see activity on the MAC transmit pins and/or some evidence of a transmitted frame beyond the TXRTS clearing itself by looking at MAC registers, neither of which I see. Basically something MPSIM would demonstrate, if it simulated the MAC. |
|
|
|
我假设在FDX模式下,如果我只想传输一些东西,那么MAC引脚的状态是不相关的。但是,CRSYDV呢?我只是在看RMII信号(再次),开始怀疑载波侦听是否必须被检测以便传输。
以上来自于百度翻译 以下为原文 I've been assuming in FDX mode the state of the MAC pins that are inputs are irrelevant if I only want to transmit something. But, how about CRS_DV? I was just looking at the RMII signals (again) and starting to wonder if Carrier Sense must be detected in order to transmit. |
|
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1929 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3175 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2227 浏览 5 评论
736浏览 1评论
618浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
507浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
633浏览 0评论
530浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 01:32 , Processed in 1.228991 second(s), Total 89, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号