1 2 3 Previous Next 17 Replies Latest reply on Aug 27, 2013 2:27 AM by kartik.mankad

    Ethernet Component

    user_2405011

       Hi All,

         

       

         

      I know the demand for an ethernet component is really high. PSoC is such a great chip and it really s*cks that there's no good ethernet solution for it. I see this question coming up here and on the PSoCdeveloper forum many times.

         

       

         

      Yes, we can use Xport, Wiznet or any additional module. However most of these solutions gets quite expensive if you are speaking about quantities.

         

       

         

      As many ARM controller manufacturers also have ethernet inside their controllers, it would be great to have an Ethernet Component for PSoC.

         

       

         

      I've used Wiznet for some of my projects but my ethernet knowledge not really goes that deep. I am looking to port one of the open source TCP/IP stacks like uIP or lwIP. I guess it will not be that hard as there are many uIP ports already successfully done.

         

       

         

      I'd like to make a start in discussing porting uIP, lwIP or any other....

         
            
      • which stack is best suited for PSoC3/5?
      •     
      • are there any ports yet done on GCC or Keil?
      •     
      • can we use a repository like SourceForge?
      •     
      • would you like to contribute in such development?
      •     
      • can we use PSoC's hardware blocks to implement MAC/PHY or do we still have to use external?
      •    
         

       

         

      Okay guys, let's get this sucker done for PSoC!

         

       

         

      Regards,

         

      Rolf

        • 1. Re: Ethernet Component
          user_78878863

          There is already a ENC28J60 port to the PSoC3 available: https://github.com/kmmankad/ENC28J60-PSoC3

             

          I guess it will be rather hard to implement the MAC inside of the PSoC, and as for the PHY - this will be even more interesting

          • 2. Re: Ethernet Component
            user_2405011

             Thanks hli, never knew there's already an PSoC3 port!

               

             

               

            It seems that it is based on the free IP stack of Duncan Frost. This stack is not completely bug free, but I think it's a good place to start. According to the CC license, we can use work of kmmankad for commercial projects, so it all looks very good!

               

             

               

            Probably, I will contribute to the project beginning of next year as I need a PSoC5 ethernet solution.

               

             

               

            Thanks for pointing out!

               

             

               

            Regards,

               

            Rolf

            • 3. Re: Ethernet Component
              content.librarian

              Hello,

                 

              We are working on a prototype PSoC 5 based Ethernet solution that implements 10-BaseT MAC + PHY inside PSoC. Following are the features supported -

                 
                    
              • IEEE 802.3az compliance
              •     
              • 10-BaseT/10-BaseTe
              •     
              • Integrated MAC + PHY
              •     
              • Full Duplex Mode only
              •     
              • Addressing Modes - Unicast, Multicast, Broadcast
              •     
              • Separate DMA channels for RX & TX
              •     
              • Configurable RX & TX FIFO
              •     
              • PHY Link activity LEDs
              •     
              • Uses 4 GPIOs and Magnetics
              •     
              • Software support - LwIP
              •    
                 

              Would the above features work for you all?

                 

              Looking for feedback on the feature set.

                 

              Sathya

              • 4. Re: Ethernet Component
                user_78878863

                Whoa, this is great news! So I just need an external MagJack (with integrated magnetics) and are ready to go?

                   

                How much resources (UDBs, Flash, sRam) does it need?

                • 5. Re: Ethernet Component
                  user_2405011

                  Great!

                     

                   

                     

                  I'm curious too about the resource usage. Also, do you release the component to the public domain or will we have to buy a license?

                     

                   

                     

                  Regards,

                     

                  Rolf

                  • 6. Re: Ethernet Component
                    content.librarian

                     Yes, you just need an external RJ45 connector with magnetics to get this to work. Currently we can fit the MAC and PHY in 4 UDBs. Flash/RAM size is purely dependent on the application as LwIP TCP/IP stack is configurable. Our unoptimized version of application running a web server takes 30K Flash and 15K SRAM for PSoC 5. This should come down as we are not using the best optimization level for compiler. 

                       

                     

                       

                    As for the release of the component, it will be made available to public but we are still working on the right model. 

                       

                    Question - Do the feature set and stack support work for your application? Do you see any other specific needs?

                       

                    Sathya

                    • 7. Re: Ethernet Component
                      kartik.mankad

                       Hey guys,

                         

                      I'm the dude who did the ENC28J60 based network stack mentioned above.Its pretty robust,and all the examples posted work flawlessly,tested with many different network setuPlease point out bugs you have encountered,I'll be more than happy to fix those :)

                         

                       

                         

                      @sath - Thats GREAT news! Any chance that community members can join in the development(or alteast testing?) 

                      • 8. Re: Ethernet Component
                        kartik.mankad

                         Also,I've got emails from many people who have successfully ported my github hosted IP stack to PSoC5,without much effort :)

                        • 9. Re: Ethernet Component
                          user_78878863

                          @sath: I'm fine with this feature set. It would be nice to be able to skip/disable the activity LED outputs, reducing the need to just 2 GPIOs.

                          • 10. Re: Ethernet Component
                            kartik.mankad

                            @sath - Whats the expected timeline for release of the component?

                            • 11. Re: Ethernet Component
                              darren.whobrey

                               @sath, slip and cslip would be very useful for bridging via Uarts too.

                              • 12. Re: Ethernet Component
                                content.librarian

                                 We are looking to get the Ethernet solution out by first half of 2013. As mentioned earlier, we are currently validating the prototype and should have more information about the solution soon. 

                                   

                                lwIP is the stack that we are currently using in our proto solution. lwIP supports SLIP and many other protocols. 

                                   

                                http://savannah.nongnu.org/projects/lwip/

                                   

                                 

                                   

                                Sathya

                                • 13. Re: Ethernet Component
                                  manoj.iyer

                                  @kmmankad, i am trying to use your project for a PSoC 5 project. i am unable to do so. Can you help me out? For porting it to PSoC 5, what changes should i do? i removed the Die temperature sensor and manually assigned a value to die temperature. But i am unable to connect to the ip address 192.168.1.153 to see the webpage. The device is not responding for ping also. The status and activity LEDs are blinking. I checked with wireshark and the device does not send any packets at all. I am using CY8CKIT-001 and PSOC5 board mounted on it.

                                     

                                  Also, can you give me contact details of people who have mailed you regarding port to PSoC 5?

                                  • 14. Re: Ethernet Component
                                    user_235344220

                                     @manojr_cet: I found a logic probe to be indispensable for tracing the SPI datastream to and from the ENC device.

                                       

                                    @sath: c'mon, c'mon .. we're all dying to see your work .. 

                                    1 2 3 Previous Next