完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
Heloi正在开发一个基于PIC32控制器和以太网控制器Enx24J600的定制板项目。我使用MPLABX IDE 3.40和Orthon 2.05和XC32,我的第一步是使用PIC32 MX795F512H和Enx24J600的演示应用程序(WebSoServer SD卡FATFS),这很好。第二步将是(SIM)。使用PIC32 MZ2048 EFH064改变处理器,但这不起作用。TCPIP初始化发生,但不结束(机器状态不继续)。所有的和声参数保持不变(除了时钟参数)。SPI接口工作正常,但以太网连接不发生。其他“演示”项目采用相同的结果:在PIC32 MX+Enx24上工作良好,不工作于PIC32 MZ+Enx24。硬件工作正常,它与一个旧版本的TCPIP堆栈工作正常。“TCPIP栈状态”始终保持不变。1(StasuStWORD),没有消息来自以太网端口。有人成功地尝试过类似的配置吗?PIC32 MZ EXX24J600(SPI模式)和声2.05?有什么建议吗?谢卫多
以上来自于百度翻译 以下为原文 Hello i'm developing a project on custom board, based on PIC32 controller and ethernet controller ENCX24J600. i use MPLABX IDE 3.40 and HARMONY 2.05 and XC32 My first step was to use a demo app (web_server_sdcard_fatfs) with PIC32MX795F512H and ENCX24J600; this work fine. My second step will be to (simply) change processor, using PIC32MZ2048EFH064; but this don't work at all. TCPIP initialization take place but don't end (machine status don't go ahead). All HARMONY parameters remain the same (except clock parameters). SPI interface appear to work correctly but ethernet connection don't take place. Other "demo" projects take the same result: works fine on PIC32MX+ENCX24, don't work on PIC32MZ+ENCX24. Hardware work fine, it work correctly with an old adapted version of tcpip stack. "TCPIP STACK Status" remain always 1 (STATUS_BUSY) and no messages come out from ethernet port. Have someone successfully tryied similar configuration? PIC32MZ ENCX24J600 (spi mode) and HARMONY 2.05 ? Any suggestion? thanks Guido |
|
相关推荐
12个回答
|
|
|
在您的MHC引脚图1中)检查以确保SPI引脚正确配置D2)检查以确保Enc8J60芯片选择线设置为GPIOOXOUT,复位线设置为GPIOIIN in您的MHC选项,Hyror框架配置,驱动程序,SPI1)确保SPI模块ID正确SELE。CTD。2)将时钟模式设置为DRVYSPIXCYDELMODIDIDLEWORYEDEGEFAL3)将输入相位设置为MyHC选项、Hyror框架配置、驱动程序、Enc2J601中的SPILIN输入、采样阶段,确保从选择中引用正确的PIN。TACK1)确保你在你的实例中引用Enc2J60。2)我也建议从你的网络启动标志中检查DHCP和DNS。3)确保ICMP服务器被选中。
以上来自于百度翻译 以下为原文 In your MHC pin diagram 1) Check to make sure that SPI pins are properly configured 2) Check to make sure that ENC28J60 chip select line is set to GPIO_OUT and reset line is set to GPIO_IN In your MHC Options, Harmony Framework Configuration, Driver, SPI 1) Make sure that SPI Module ID is properly selected. 2) Set Clock Mode to DRV_SPI_CLOCK_MODE_IDLE_LOW_EDGE_FAL 3) Set Input Phase to SPI_INPUT_SAMPLING_PHASE_AT_END In your MHC Options, Harmony Framework Configuration, Driver, ENC28J60 1) Make sure that slave select references proper pin. In your MHC Options, Harmony Framework Configuration, TCPIP Stack 1) Make sure that you referencing ENC28J60 in your instance. 2) I would also recommend unchecking DHCP and DNS from your network startup flags. 3) Make sure that ICMP server is selected. |
|
|
|
|
|
请注意您的建议。我已经验证了配置,所有的都是正确的。请注意,我不使用Enc25J60,但EnC624J600。也注意到相同的项目/配置工作与PIC32 MX微控制器良好。我很想知道是否有人在使用TCPIP演示应用程序有积极的结果。使用PIC32 MZ控制器和Enx24J600的离子(或真实的TCPIP应用)…(和声)
以上来自于百度翻译 以下为原文 tank you for your suggestions. i had verified the configuration and all is right. please note that i don't use ENC28J60 but ENC624J600. also note that same project/configuration work fine with PIC32MX microcontroller... I'm curious to know if someone had a positive result in using a tcpip demo application (or real tcpip application) using PIC32MZ controller and ENCx24J600... (and Harmony) |
|
|
|
|
|
由于PIC32 MZ有内部以太网控制器,它不应该是默认的选择,所以我们不会在Engy分发中分发带有En24J600的PIC32 MZ演示应用程序。不管怎样,为了使您的项目取得一些进展,首先尝试对MAC或PHY进行一些熟知的读写操作。在EnC上注册,使用Project中的SPI驱动程序现在不调用TCP/IP堆栈初始化。如果SPI和I/O配置正确,那么所有读/写操作都会正常运行。否则,您可以调查问题所在。
以上来自于百度翻译 以下为原文 We don't distribute a PIC32MZ demo app with the ENC24J600 in the Harmony distribution because the PIC32MZ has the internal Ethernet controller which should be the default choice. Anyway, to make some progress with your project, try first to do some read/write operations of the MAC or PHY well known registers on the ENC, using the SPI driver in you project - daon't call the TCP/IP stack initialization for now. If SPI and the I/O are configured properly, then all the read/write operations will perform properly. Otherwise you can investigate to see where the problem is. |
|
|
|
|
|
谢谢你的帮助。我现在把注意力集中在SPI通信上。通过示波器,我发现CS引脚(RC14)不能正常工作。原因是EnC驱动程序定义和设备配置之间的不一致性(SCOSEL被定义,因此RC14被保留为二级振荡器)。和声没有任何信号警告这种错位。现在我可以走了。谢谢。我的选择是En24,因为这个项目是一个进化。从以前使用Enc24的项目来看,我可以评估其他解决方案,但是我需要与低数量的线通信,比如SPI接口,和一个不太小的设备,因为我的板是手工制作的,并且我的芯片的最小间距必须是0.4mm(TQFP)。E?
以上来自于百度翻译 以下为原文 thank for your help. i have now focalized my attention on spi communication. with an oscilloscope i have discovered that CS pin (rc14) don't work properly. the cause is an incoherency between ENC driver definition and device configuration (SOSCEL was defined and thus RC14 was reserved for secondary oscillator). HARMONY don't signal any warning for this misalignement. now i can go ahead. thank you. my choose was for ENC24 because this project is an evolution from a previous project that use ENC24. i can evaluate other solution, but i need a communication with a low number of wires, like SPI interface, and a device not too small because my board is hand-made and minimum pitch for my chips must be 0.4mm (TQFP). what other PHY is suitable for this purpose? |
|
|
|
|
|
如果你要使用一个外部PHY,那么你需要10/18个(RMII/MII)I/O引脚来连接它。如果这是你的设计中的重要因素,那么SPI方法是最好的。
以上来自于百度翻译 以下为原文 If you're going to use an external PHY then you'd need 10/18 (RMII/MII) I/O pins to connect to it. If this is the important factor in your design, then the SPI approach is the best. |
|
|
|
|
|
嗨,你为什么使用EnC624J600,如果你使用SPI模式?(EnC424J600将是更好的选择)
以上来自于百度翻译 以下为原文 Hi, Why do you use ENC624J600 if you use SPI mode ? ( ENC424J600 would be a better choice ) Regards |
|
|
|
|
|
我的错误…我使用的是EnC424J600,不是EnC624J600…GRIN:
以上来自于百度翻译 以下为原文 my mistake... i use enc424j600, not enc624j600... grin: |
|
|
|
|
|
为什么不使用类似LAN872或类似的东西呢?更便宜,更适合使用PIC32 MZ?
以上来自于百度翻译 以下为原文 Why not use something like an LAN8742 or similar? Much cheaper, and more appropriate for using with a PIC32MZ? |
|
|
|
|
|
LAN872是一个有趣的设备。困难可以考虑所需的连接数(9而不是4)和设备的封装轮廓(QFN,而不是TQFP)。目前我不知道连接是否会在PIC32 MZ设备上恢复……我会尝试…
以上来自于百度翻译 以下为原文 LAN8742 is an interesting device. Difficulties can regards the number of connections required (9 instead of 4) and the package outline of the device (QFN, not TQFP). At the moment i don't know if the connections would be remappable on PIC32MZ device or not... I will try... |
|
|
|
|
|
项目正在进行中,但是一些奇怪的事情出现在SD卡上…文件系统的安装不到位。SD和SPI频率在MHCSET SD频率和10KHz的SPI频率上设置在10MHz。(SD初始化在启动时确实需要200 kHz,WO在10-20MHz)。RK的时间,但没有解释这个和谐DOC)设置SD频率在10MHz和SPI频率在200 kHz的工作,但只有一次,然后没有答案在USB端口……返回在10MHz的SPI和SD,静默继续…没有工作…重新设置SD频率在10MHz和SPI频率在200 kHz - TCPIP初始化错误…AAGHHH…和谐噩梦!!!!
以上来自于百度翻译 以下为原文 project is now in progress... but some strange things appear using SD card... mount of file system don't take place. SD and SPI frequency was setted at 10Mhz on MHC setting SD frequency and SPI frequency at 200Khz mount take place. (SD initialization really need 200Khz at startup time and 10-20Mhz at work time, but no explanation of this on Harmony doc) setting SD frequency at 10Mhz and SPI frequency at 200Khz it work, but only one time, then no answer on USB port... returning at 10Mhz on SPI and SD and silence continue... nothing work... re-setting SD frequency at 10Mhz and SPI frequency at 200Khz - TCPIP initialization error... AARRGHHH... The HARMONY NIGHTMARE !!! |
|
|
|
|
|
现在我已经恢复了旧版本,它用Enx24工作得很好,用SD初始化失败,版本保存了2天AGO。第一次它工作两天AGO。但是不供电和重新供电板,我有一个错误:“Enx24J600驱动程序0已经在使用”我现在已经知道这不是一个好的实践。为了开发软件,重新编译、重新加载、重试而无需电源和重新供电板;也许有些设备在寄存器中保持旧状态…这解释了我以前的SD问题。但是这并不能解释我所有的问题。错误“Enx24J600驱动程序0已经在使用中”看起来像一些RAM VA。Riabes是未初始化的。是否有一个编译器或链接器选项将RAM中未初始化的变量重置为零?或者其他什么会引起这个问题?
以上来自于百度翻译 以下为原文 now i have resumed the old version, that work fine with ENCx24 and fail with SD initialization, version saved 2 days ago. first time it work as two days ago. but un-powering and re-powering the board i have an error: "ENCX24J600 driver 0 already IN USE" I have learned now that it's not a good practice to evolve the software, recompile, reload, retry without un-power and re-power the board; maybe some devices remains in an old state in their registers... This explain my previous SD problems. But this don't explain all my problems. The error "ENCX24J600 driver 0 already IN USE" seems like some RAM variables are un-initialized. Is there a compiler or linker option that reset to zero the un-initialized variables in ram? Or what other can be cause this problem? |
|
|
|
|
|
恢复旧版本3天前,重新修改…现在的Enx24J600驱动器工作。SD不工作…设置SD和SPI频率在200 KHZFS挂载现在发生…电源关闭,电源开启,FS挂载工作!!!!尝试一些微小的变化…FS安装不工作…评论我的变化…FS座不工作…真的是一场噩梦…但是,和声奏效了吗?
以上来自于百度翻译 以下为原文 resumed old version of 3 days ago, re-modified... Now ENCX24J600 driver work. SD don't work... Setting SD and SPI frequency at 200Khz FS mount now take place... Power off, power on, FS mount work !!! Tryed some minor changes... FS mount don't work... Commented my changes... FS mount don't work... Really it's a nightmare... But, HARMONY works? |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475 浏览 0 评论
5794 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1125浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1098浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 16:24 , Processed in 1.083713 second(s), Total 94, Slave 77 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2754