ColdFire TCP/IP Lite Feedback

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ColdFire TCP/IP Lite Feedback

ソリューションへジャンプ
2,300件の閲覧回数
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?.
ラベル(1)
0 件の賞賛
返信
1 解決策
962件の閲覧回数
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 件の賞賛
返信
8 返答(返信)
962件の閲覧回数
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 件の賞賛
返信
962件の閲覧回数
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 件の賞賛
返信
962件の閲覧回数
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 件の賞賛
返信
962件の閲覧回数
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 件の賞賛
返信
962件の閲覧回数
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 件の賞賛
返信
962件の閲覧回数
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 件の賞賛
返信
962件の閲覧回数
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 件の賞賛
返信
963件の閲覧回数
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 件の賞賛
返信