完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我们已经设计了基于PIC32 MZ0512EF144的自定义板。我的外部PHY芯片KSZ8041RNL在RMII接口上连接到PIC32。谁能告诉我们如何整合KSZ8041RNL的外部PHY驱动程序。我试图搜索文档,但无法理解到底要做些什么。
以上来自于百度翻译 以下为原文 Hi there, We have designed custom board based on PIC32MZ0512EFF144. I have the external phy chip KSZ8041RNL in RMII interface connected to PIC32. Can anybody tell how to integrate external phy driver of ksz8041rnl in hARMony. I tried to search document but not getting understood what exactly to be done in harmony. Any immediate help would be highly appreciated. |
|
相关推荐
5个回答
|
|
我成功地使用了相同的PHY。搜索论坛——有几个线程详细地描述了你需要做的事情。
以上来自于百度翻译 以下为原文 I've used the same PHY successfully. Search the forums - there are several threads that describe in detail exactly what you need to do. -Bill |
|
|
|
谢谢您的回复,请分享驱动文件KSZ8041RNL。我试图通过各种线程搜索,但没有为我工作。如果能让它亮起来就好了,因为它已经工作了。
以上来自于百度翻译 以下为原文 Thank you for reply. Can you please share the driver file ksz8041rnl ? I tried to search through the various threads but nothing working for me yet. It would be great if could throw some light on it as got it working already. |
|
|
|
不幸的是,我不会分享它——它是为我工作的公司做的,我想他们会不赞成的。我的司机也是KSZ8041TL的——不是很好,但几乎是一样的。总之,我可以给你一些提示,但是我强烈建议花一个或两个小时来搜索论坛。详细说明了编写驱动程序的过程。我可能在这里错过了一步,但是希望,如果我有更好的记忆力,我会纠正我的错误。1。在Microchip HealthvxSuxFraseEthPHy文件夹中,更新文件DrviEthPHy.h,以将PHY添加到文件底部的列表中。2。在上述文件夹的SRC动态子文件夹中,将驱动程序.h和.c文件中的一个复制到PHY的新文件中。对我来说,我分别复制了DrvythythysSmic820.H和DrvyEthysSmis820.c到DrvyEtho藻KsZ8041TL.H和DrvyEtho藻KSZ8041TL.C。我选择了SMSC820,因为它看起来最类似于KSZ8041TL。3。这可能是最困难的部分,但它不是真的坏-更新您的新.c文件匹配您的PHY。只有三个功能-它们大部分保持不变。4。如果需要步骤3.5的新的或不同的寄存器,则需要更新.h文件。我忘了-在某处你必须改变一个文件,让你选择你的PHY和谐。有人能唤起我的记忆吗?我自己做了前四个步骤,手动添加了这些文件,直到我学会了最后一步。前提是和声会很好地删除它们,除非你正确地选择它们。对不起,我不能给你所需的所有信息,但如果你花时间去看,它就在论坛里。-比尔
以上来自于百度翻译 以下为原文 Unfortunately, I won't share it - it was done for the company I work for and I think they would frown on that. Also, my driver was for the KSZ8041TL - not quite, but almost the same thing. Anyway, I can give you a few hints but I do strongly recommend spending an hour or two searching the forums - the procedure to write your driver is spelled out in great detail. I might miss a step here but hopefully, someone who has a better memory will correct me if I do. 1. In the MicrochipHarmonyvX_XXframeworkethphy folder, update the file drv_ethphy.h to add your PHY to the list at the bottom of the file. 2. In the srcdynamic subfolder of the above folder, copy one of the driver .h and .c files to new files for your PHY. For me, I copied drv_ethphy_smsc8720.h and drv_ethphy_smsc8720.c to drv_ethphy_ksz8041tl.h and drv_ethphy_ksz8041tl.c respectively. I picked the smsc8720 because it seemed the most similar to the ksz8041tl. 3. This is probably the most difficult part but it's not really too bad - update your new .c file to match your PHY. There are only three functions - most of them stayed the same for me. 4. Update your .h file as required incase of new or different registers required for step 3. 5. I forgot - somewhere you have to change a file that lets you select your PHY in Harmony. Can someone refresh my memory? I did the first four steps myself and manually added the files until I learned this last step. The probale is that Harmony will happily delete them unless you select them properly. Sorry I can't give you all the information you need but it IS in the forums if you take the time to look. -Bill |
|
|
|
非常感谢你的帮助比尔。非常感谢您的详细介绍!还有一个问题——你是否为KSZ PHY芯片的捆绑选项做了额外的编码序列?如果是的话,你是如何给出捆绑序列来锁定物理地址的?(在KSZ PHY芯片的数据表中提到,在给芯片供电之前,应该给出捆绑序列)。如果没有,PHY地址是如何锁存的?
以上来自于百度翻译 以下为原文 Really appreciate your help Bill. Thank you very much for detailed write up !! Just one more question - did you do any extra coding sequence for strapping option of ksz phy chip? if yes, how did you give the strapping sequence to latch the physical address ( it is mentioned in the datasheet of ksz phy chip, that, it should be given strapping sequence before giving the power to the chip). if no, how does phy address gets latched ? |
|
|
|
我不想做任何软配置-都是用硬件来处理的。-比尔
以上来自于百度翻译 以下为原文 I don't try to do any soft configuration - it's all handled in hardware. -Bill |
|
|
|
只有小组成员才能发言,加入小组>>
5425 浏览 9 评论
2125 浏览 8 评论
2039 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3294 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2337 浏览 5 评论
924浏览 1评论
794浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
740浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
799浏览 0评论
691浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-4-2 00:35 , Processed in 1.379473 second(s), Total 52, Slave 47 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191