ColdFire TCP/IP Lite Feedback

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ColdFire TCP/IP Lite Feedback

Jump to solution
2,293 Views
TVNAIDU
Contributor III
Downloaded 3.2 Lite package, compiled web version and loaded onto 52233DEMO board, everytime when I connected/disconnected Ethernet, board reboots, any idea how to fix?.
Labels (1)
0 Kudos
Reply
1 Solution
955 Views
vier_kuifjes
Senior Contributor I
I will check out later today, as I'm still at work now. Still a couple of hours to go...

View solution in original post

0 Kudos
Reply
8 Replies
955 Views
vier_kuifjes
Senior Contributor I

The file that needs to be modified to activate auto negotiation is MCF52235_sysinit.c, and should reside somewhere in the CPU folder (left pane in CodeWarrior). The routine mcf5223x_ePHY_init is the one that enables the PHY and also does the link negotiation. You'll have to modify that routine by removing the software negotiation steps and set the PHY registers to enable auto negotiation.

 

Configuring the PHY is not a hard thing to do. The PHY registers are described in the 52235 reference manual. Remember to use the fec_mii_read and fec_mii_write functions to access the PHY registers.

 

I may also figure out the modification for you but that will take a little time, and I may not be able to test it out as my demo boards only contain the older device with the bug.

0 Kudos
Reply
955 Views
TVNAIDU
Contributor III

Marc:

 

Right now I have 52233DEMO board only, I am getting 52236 based Prototype in couple of weeks, I believe HW modification there for auto negotiation, let me take a look now this change. Thanks.

0 Kudos
Reply
955 Views
scifi
Senior Contributor I

TVNAIDU wrote:

Marc:

 

Right now I have 52233DEMO board only, I am getting 52236 based Prototype in couple of weeks, I believe HW modification there for auto negotiation, let me take a look now this change. Thanks.


I'm afraid I must disappoint you. I beleive the relevant errata sheet is here:

MCF5223x Errata

The latest version is dated February 2009. It says that the fix for the autonegotiation bug is planned. There is no information if fixed chips are being sold now, they probably aren't.

0 Kudos
Reply
955 Views
vier_kuifjes
Senior Contributor I

Yes, that's perfectly normal, it's a "feature" they've built in for some unknown reason...

 

I have a modified version of Coldfire Lite V3.2 available for download. The modification includes a couple of bug fixes and functional improvements, including the one you mention.

 

You can find more about it, including download link, in this thread:

http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&thread.id=6844

0 Kudos
Reply
955 Views
TVNAIDU
Contributor III

Marc:

 

I downloaded this new patch which had fix for reset, now reset not happening, but I noticed that it took 18 Seconds to get INET prompt. Is there anyway this can be reduced to less than 10 Seconds, I don't know where is the bottleneck, sometimes this much time cannot be tolerated if this stack implements in real products?. also I am looking for some benchmark numbers for this stack, any idea where can I get it?.

 

appreciated for your help.

 

 

0 Kudos
Reply
955 Views
vier_kuifjes
Senior Contributor I

The network hardware of older 5223x CPUs contains a known bug that may cause link auto negotiation to fail on some networks. Auto negotiation is turned of in Coldfire Lite when running on this CPU and taken over by a software routine. This software negotiation does take some time, this is probably what you notice.

 

If your board contains a more recent CPU that has this bug fixed, you could modify the network hardware initialisation routine to use hardware link negotiation. This should speed up startup time considerably. Unfortunately I do not know how to recognise which CPUs are affected by the bug.

0 Kudos
Reply
955 Views
TVNAIDU
Contributor III

Thanks Marc, appreciated. I am going to use 52236 chipset, this is new to 5223x family I believe, probably NW Hardware should have that fix, any idea which files I need to change to make improvement of booting time.

 

TV.

0 Kudos
Reply
956 Views
vier_kuifjes
Senior Contributor I
I will check out later today, as I'm still at work now. Still a couple of hours to go...
0 Kudos
Reply