Coldfire v1 mcf51cn128cgt TCP/IP communication problem

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

Coldfire v1 mcf51cn128cgt TCP/IP communication problem

1,125 Views
swapnilvhanale
Contributor I

Hello All, 

    

I am Developing Serial to Ethernet converter using coldfire v1 mcf51cn128cgt. I have ported freertos with lwip stack.

lwip initialization done successfully. But Program stuck at sys_mbox_fetch() in tcp thread for forever and also ETHER_EN bit of Ethernet control Reg[ECR] get clear. And Ethernet low level Communication stops unexpectedly. 

Is there any idea why this is happening, Waiting for good answers.

Regards,

Swapnil

Labels (1)
Tags (1)
0 Kudos
5 Replies

745 Views
swapnilvhanale
Contributor I

Dear All,     

I just got solution on above problem,  I just tried using system clock of 50MHz  which was previously defined at 50331648Hz. And also code is made enabled for 100Mbps speed.

Thank you to reply this question; I just got solution from replied messages and Attached links.

Regards,

Swapnil 

0 Kudos

745 Views
miduo
NXP Employee
NXP Employee

Hello, Swapnil

It is so happy to know that your got the solution. Cngratulations! Anything else you met for technical issue, please fell free to submit thread here.

0 Kudos

745 Views
TomE
Specialist II

You're using LwIP. You might be better off using something newer like FNET:

https://community.nxp.com/message/57196 

There are lots of single-chip solutions you can buy that give you Ethernet to Serial (and lots more) without having to write any code at all. Is there a reason you're not using one of those and are writing your own?

Tom

0 Kudos

745 Views
TomE
Specialist II

We can't see your code so we can't make many suggestions. Don't try to post it unless you can come down with a very short and self-contained piece of code that demonstrates a problem. Ethernet is so complex this usually isn't possible.

Have you read the Reference Manual? It is quite clear on what can clear ECR[ETHER_EN] and what register you should check next. Then it is a matter of finding the bug that caused that.

Tom

0 Kudos

745 Views
miduo
NXP Employee
NXP Employee

Hi,

Please let me know if below application note helpful:

https://www.nxp.com/docs/en/application-note/AN3928.pdf

There also the AN3928SW can been used as reference:

https://www.nxp.com/docs/en/application-note-software/AN3928SW.zip 

Also another document:

https://www.nxp.com/docs/en/reference-manual/DRM114.pdf