Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer Forum Discussions

Rolf_Nooteboom
Level 5
5 solutions authored First solution authored 100 replies posted
Level 5

 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

0 Likes
32 Replies
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

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

0 Likes
Rolf_Nooteboom
Level 5
5 solutions authored First solution authored 100 replies posted
Level 5

 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

0 Likes
Anonymous
Not applicable

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

0 Likes
kep_284046
Level 2
First like given
Level 2

Hi, I'm working on me. Is there any developments in this regard

0 Likes
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

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?

0 Likes
Rolf_Nooteboom
Level 5
5 solutions authored First solution authored 100 replies posted
Level 5

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

0 Likes
Anonymous
Not applicable

 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

0 Likes
Anonymous
Not applicable

 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?) 

0 Likes
Anonymous
Not applicable

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

0 Likes
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

@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.

0 Likes
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

 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

0 Likes
MaR_264466
Level 3
Level 3

@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?

0 Likes
Anonymous
Not applicable

 @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 .. 

0 Likes
EvPa_264126
Level 7
500 replies posted 250 replies posted 100 likes received
Level 7

Hi. I use the project kmmancad which is here mentioned. 
http://kmmankad.blogspot.ru/2012_06_01_archive.html
I want to warn you:
I mistakenly used another project, in which contact MISO was used as a Strong Drive output.
I connected this device:
http://dx.com/p/enc28j60-ethernet-lan-network-module-for-51-avr-stm32-lpc-150604
The device was destroyed: burned output 6   of ENC28J60.
Be careful, do not repeat my mistakes.
Evgeniy.

0 Likes
MaR_264466
Level 3
Level 3

@ avast - Thank you for the tip 🙂 and couldn't wait for the Ethernet component from sath (if only it was out by now, my job could me much easier)

   

@ pavloven  - Thanks a LOT!  I was using the code from the same github u pointed to but i couldnt find the instructions link. How silly i am... kmmankad had given the link to the blogspot in readme only... i failed to notifce it. Thanks for pointing out 🙂

Let me try better now

0 Likes
MaR_264466
Level 3
Level 3

@kmmankad - Simply Great Work... This helps so much... Thank a million 🙂 

0 Likes
MaR_264466
Level 3
Level 3

@Sathya... Is it possible to get a copy of a beta version of the ethernet components that you are making for my testing?

0 Likes
MaR_264466
Level 3
Level 3

Ported kmmankad's work to PSoC5... Webserver and UDP are working fine... Thanks everyone...

   

P.S. Can you guys help with sharing the project here so that someone else like me will find it helpful until Sathya's components releases? 

0 Likes
ETRO_SSN583
Level 9
100 sign-ins 5 likes given 1000 replies posted
Level 9

In Creator, file menu, :"Create Workspace Bundle", and upload using IE

   

or Mozilla, control at bottom of post window to attach file. Apparently

   

chrome has issues doing uploads.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Wow nice work Sath,

   

To use just 4 UDBs to implement Ethernet MAC+PHY is just awesome. To tell you the truth I'm still skeptical, but it would show how powerfull and flexible PSOCs are. Just imagine the face of an Atmel or PIC guy when he sees you just droping an ethernet user module to your project. No external modules no external ICs, just epic.

0 Likes
EvPa_264126
Level 7
500 replies posted 250 replies posted 100 likes received
Level 7

   

Has anyone used this device?

   

Ethernet Shield with Wiznet W5100 Ethernet Chip / TF Slot

   

Attractive price with good features and quality.

   

http://m2.img.dxcdn.com/CDDriver/sku.118061.doc

0 Likes
Anonymous
Not applicable

 I've used a W5100 module with another microcontroller on a project before. it is actually quite easy to use.

   

The board you mention seems to be a pretty good deal for the money (I got a smaller module for $32 from digikey). But it seems you can get them even cheaper from ebay.

   

 

   

It is good for experimentation and one-offs. But just like the ENC28J60 module, chip cost quickly adds up.

0 Likes
Anonymous
Not applicable

 @Sathya.

   

Is there any update on the ehernet part for Psoc. do you have any idea when it would be available.

   

Regards

   

Mattheus

0 Likes
Anonymous
Not applicable

manojr_cet ... were you able to upload your port to the PSoC5?  I'm very interested in using this code with the PSoC4, and want to see if it's possible ...

   

I've looked, but not found it anywhere?

   

Thanks!

0 Likes
EvPa_264126
Level 7
500 replies posted 250 replies posted 100 likes received
Level 7
        Hello. I tried to use PSoC5 (050KIT) in the project of Kmmancad ENC28J60-ARPTest.cydsn https://github.com/kmmankad/ENC28J60-PSoC3 I just changed the chip: Pproject--> DeviceSelector на CY8C5588AXI-060-ES1 Incorrectly transmitted bytes of ARP packet (see Figure diagram.png). Only those who have type unsigned int. Tell me how to fix it. thank you.   
0 Likes
EvPa_264126
Level 7
500 replies posted 250 replies posted 100 likes received
Level 7
        simple project to test :   
0 Likes
EvPa_264126
Level 7
500 replies posted 250 replies posted 100 likes received
Level 7
        I had the need to do a project for the transmission of UDP packets for CY8CKIT - 030 PSoC3 and CY8CKIT - 050 PSoC5. I tried to make the project of kmmankad for PSoC3 and PSoC5 at the same time. thanks to Manojr_cet for project ENC28J60-BasicWebserver-000.Bundle01.zip here:http://www.cypress.com/?app=forum&id=2232&rID=49032 Only the ARP request, and UDP PING request is performed. Webserwer for PSoC5 and PSoC5LP unstable. I got 18 warnings that could not cope. For testing, I used Wireshark Hercules Seyup Utility and printf (from Manojr_cet ) It is useful to someone, perhaps. The project is attached below   
0 Likes
MaR_264466
Level 3
Level 3

In fact, i had completed mainly ARP and UDP only. Webserver is only half complete, but it worked for me with PSoC5 kit. Good to know that the port is useful 🙂 

0 Likes
MaR_264466
Level 3
Level 3

@Humancell... yes i uploaded it many a PSoC 5 and they all worked (mainly i used UDP for some remote data acquisition to a Laptop using ethernet).

0 Likes
Anonymous
Not applicable

Great to know that my TCP/IP stack is really helping you guys.

   

The reason I abandoned active development is that there are far cheaper and more efficient ethernet solutions out there now.I had planned to start working with the CC3000 Wifi chip from TI,but havent got around to doing so.

0 Likes