Hot!PIC32MX + ENC424J600 + Harmony TCP/IP, any experience?

Author
BasePointer
Senior Member
  • Total Posts : 159
  • Reward points : 0
  • Joined: 2003/11/07 12:42:11
  • Location: Turkey
  • Status: offline
2017/01/26 16:02:12 (permalink)
0

PIC32MX + ENC424J600 + Harmony TCP/IP, any experience?

Hi,
 
We want to use PIC32MX170F256B+ENC424J600 and Harmony TCP/IP stack. But I have some doubts:
 
1. Harmony seems buggy and not reliable for end product. Is there any chance for me to use Microchip ENC424J600 driver + Harmony TCP/IP stack without Harmony framework itself?
 
2. I saw in Harmony release note that it says ENC424J600 driver is not working. Is this correct? Anyone here can confirm that PIC32+ENC424J600 and Harmony work fine? If not then How do they publish iperf measurement data for ENC424J600 in Harmony User Manual?
 
3. I use Harmony v2.02b and it has an option to generate standalone project. But it seems that, that option has some bugs as well. Whenever I tick that checkbox, I end up with many compilation errors.
 
4. If I have to use Harmony for the new project, shall we go with v2.02b or v1.10?
 
Thanks.
 
post edited by BasePointer - 2017/01/26 16:29:54
#1

12 Replies Related Threads

    RISC
    Super Member
    • Total Posts : 5177
    • Reward points : 0
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 05:37:41 (permalink)
    3 (1)
    Hi,
    Any specific reason why you don't want to use a PIC32MX with internal MAC ?
    That would make your design much easier because there are tons of examples with PIC32MX795.
    Personally I use Harmony v2.xx because it is the version which gets updates and new features (v1.xx is only legacy no new features will be added).
    Regards
     
    #2
    ACPC
    Starting Member
    • Total Posts : 65
    • Reward points : 0
    • Joined: 2010/05/27 07:24:57
    • Location: 0
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 05:52:09 (permalink)
    0
    There is an example of SPI for PIC32MX + ENC but it does not work:
    APPS/TCPIP/TCPIP_TCP_TCPCLIENT/ pic32mx_eth_sk2_encx24j600
     
    There is a framework configuration, but the code can not generate pin diagram & pin settings.
    post edited by ACPC - 2017/01/28 06:00:34
    #3
    BasePointer
    Senior Member
    • Total Posts : 159
    • Reward points : 0
    • Joined: 2003/11/07 12:42:11
    • Location: Turkey
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 06:26:03 (permalink)
    0
    RISC
    Hi,
    Any specific reason why you don't want to use a PIC32MX with internal MAC ?
    That would make your design much easier because there are tons of examples with PIC32MX795.
    Personally I use Harmony v2.xx because it is the version which gets updates and new features (v1.xx is only legacy no new features will be added).
    Regards
     

     
    PIC32 with Internal MAC + External PHY is more expensive than our solution. So we decided to use small PIC32 (28 pin) and ENC424J600.
     
    I believe that reliability is more important in this project. I would go with v1.10 if the note below doesn't exist in its release notes:

     
    Same note is not available in v2.02b release notes. (But It was in v2.01b) That means it is fixed? Or bug in documentation? :)
     
    Thanks.
    #4
    NKurzman
    A Guy on the Net
    • Total Posts : 15947
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 08:24:16 (permalink)
    3 (1)
    You solution has half the flash and half the ram. Be sure it will fit.
    The note says it will work without DMA.
    If is iffy that anything major will be fixed in 1.xx.
    #5
    BasePointer
    Senior Member
    • Total Posts : 159
    • Reward points : 0
    • Joined: 2003/11/07 12:42:11
    • Location: Turkey
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 09:18:37 (permalink)
    3 (1)
    NKurzman
    You solution has half the flash and half the ram. Be sure it will fit.
    The note says it will work without DMA.
    If is iffy that anything major will be fixed in 1.xx.



    Hi,
     
    PIC32MX170F256B that we gonna use has 28 pins, 256KB flash and 64KB sram, it supposed to be enough. No DHCP, no DNS, we just need a few raw TCP sockets.
     
    The project PCB will arrive next week as assembled and I will share all my harmony experiences with PIC32+ENC424J600. If it doesn't work smoothly, we have a backup plan to use HW with lwIP.
     
    Non DMA version of SPI driver for ENC chip should be considered as a major issue. Without DMA, CPU has to manage interrupts at rate 110 Khz. (14Mhz SPI Clock / 8 Data Length / 16 FIFO Depth = ~110Khz)
    #6
    NKurzman
    A Guy on the Net
    • Total Posts : 15947
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 09:24:50 (permalink)
    0
    Did you look at the MLA version?
    #7
    BasePointer
    Senior Member
    • Total Posts : 159
    • Reward points : 0
    • Joined: 2003/11/07 12:42:11
    • Location: Turkey
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/01/28 09:31:11 (permalink)
    0
    NKurzman
    Did you look at the MLA version?



    Yes, It says that it is just for WiFi?
    #8
    MicroE
    Starting Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2016/10/06 15:59:04
    • Location: 0
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/02/01 09:55:55 (permalink)
    0
    I have a PIC32MX470F512 and ENC424J600 (Custom PCB) mostly working together as an HTTP web page server.  I had to make quite a few changes to code in the harmony framework to make it function.  I still can't take the stack down and restart it without a crash using the "Network Commands".  ----   It appears that the integrated MAC solution has had much more testing. 
     
    I also briefly looked at the CYCLONE TCP/IP stack (supports ENC424J600) - and the code is much easier to read than Microchips.
    #9
    NKurzman
    A Guy on the Net
    • Total Posts : 15947
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2017/02/01 10:32:06 (permalink)
    3 (1)
    BasePointer
    NKurzman
    Did you look at the MLA version?



    Yes, It says that it is just for WiFi?


    Look at older version of MLA. ( if you feel that is a better path) The are removing things supported in Harmony.
     
    As far as the Harmony Solution.  If you are skilled in that area you can fix it yourself.  Harmony has a long History of not fixing or cleaning things. (halting Rant now)
    #10
    BRadford
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2018/05/10 09:41:56
    • Location: GA
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2018/06/05 12:44:42 (permalink)
    0
    MicroE
    I also briefly looked at the CYCLONE TCP/IP stack (supports ENC424J600) - and the code is much easier to read than Microchips.



    Did you end up using CycloneTCP?  I am looking for documentation to help with bare metal implementation using SPI on a PIC32MZ EF.  We've had only headaches so far with Harmony.
    #11
    friesen
    Super Member
    • Total Posts : 1905
    • Reward points : 0
    • Joined: 2008/05/08 05:23:35
    • Location: Indiana, USA
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2018/06/07 13:07:26 (permalink)
    0
    I have been trying out FreeRTOS + TCP and wilc1000 on a pic32mz da.  It really does seem to work well, after the headache of integrating asf software.  
     
    Harmony has so many stack bugs.  So far I haven't found any freertos bugs.  Also, the SPI driver really isn't up to the task of wifi.

    Erik Friesen
    #12
    BRadford
    New Member
    • Total Posts : 2
    • Reward points : 0
    • Joined: 2018/05/10 09:41:56
    • Location: GA
    • Status: offline
    Re: PIC32MX + ENC424J600 + Harmony TCP/IP, any experience? 2018/06/13 12:57:10 (permalink)
    0
    I am trying out the CycloneTCP open source library for our hardware testing.  Right now the issue is that the ENC624J600_REG_ESTAT bit PHYLNK is remaining low.  Any suggestions are appreciated.
     
    This is getting off-topic, so I started a new thread in TCP/IP->Ethernet.  I will post a link as soon as my post is approved (it's tough being a noob).
     
    BR
    #13
    Jump to:
    © 2018 APG vNext Trial Version 4.5