Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Olimex SAM7-EX256 and Micrel Ethernet PHY : No link up
PostPosted: Sun Dec 27, 2009 10:37 pm 
Offline

Joined: Sun Dec 27, 2009 10:05 pm
Posts: 2
Hello,
I am working on a project for a friend. I need to send commands by serial port to servomotors.
The board as to replay a list of commands he as received by USB or Ethernet when requested.

I use the Olimex SAM7-EX256 Rev C board. It has a MICREL KS8721BL Phy instead of the Davicom as on the Atmel Evaluation Kit.

I use as environment Linux with the GNU ARM compiler (arm-elf-*) an the Olimex ARM-USB-OCD with OpenOCD.

As starting point I compiled the Getting Started project from Atmel and it is working fine.

I also compiled the uIP ethernet webserver project after modified PINIO definitions to match the MICREL PHY.

The program nevers detect the link is up and the corresponding LED on my SWITCH stays off.

I am planning to use FreeRTOS, so if somebody can help me with FreeRTOS and not with the Atmel project, it is OK also.

Here is a log of the console:
-- Basic EMAC uIP Project 1.5 --
-- SAM7-EX256
-- Compiled: Dec 27 2009 16:16:53 --
- MAC 0:45:56:78:9a:bc
- Host IP 192.168.0.110
- Router IP 192.168.0.128
- Net Mask 255.255.255.0
-D- EMAC_Init-D- RESET PHY-D- DM9161_FindValidPhy-D- _PHYID1 : 0xFFFF, addr: 31
-D- _PHYID1 : 0xFFFF, addr: 0
-D- _PHYID1 : 0x22, addr: 1
-I- ** Valid PHY Found: 1
-I- DM9161_ResetPhy

-D- ReadPhy Id1 0x22, addresse: 1
-D- ReadPhy Id2 0x1619
-D- MICREL_OUI_MSB = 0x22
-D- MICREL_OUI_LSB = 0x5
-D- Vendor Number Model = 0x21
-D- Model Revision Number = 0x1
-D- _BMCR: 0x3300
-I- AutoNegotiate complete-D- DM9161_GetLinkSpeed-E- Pb: LinkStat: 0x7849
-I- DM9161_DumpRegisters-I- MII (1) Registers:
-I- _BMCR : 0x3100
-I- _BMSR : 0x7849
-I- _ANAR : 0x1E1
-I- _ANLPAR : 0x0
-I- _ANER : 0x4
-I- Auto-Negotiation Expansion Register : 0x4
-I- Auto-Negotiation Next Page Register: 0x2001
-I- Link Partner Next Page Ability : 0x0
-I- RXER Count Register : 0x0
-I- Interrupt Control/Status Register : 0x0
-I- 100BASE-TX PHY Control Register : 0x1500

Thanks in advance,
Benoit Callebaut


Top
 Profile  
 
 Post subject: Re: Olimex SAM7-EX256 and Micrel Ethernet PHY : No link up
PostPosted: Tue Dec 29, 2009 11:03 pm 
Offline

Joined: Thu Mar 02, 2006 1:32 pm
Posts: 127
Location: Switzerland
Hi

Check that the board is operating correctly by loading the Olimex EX256 reference (it will perform USB CDC and Ethernet - FTP, Web server, Telnet etc. on IP 192.168.0.3, which can be changed via UART or USB menu if required): http://www.utasker.com/SW_Demos.html (there is also a guide there).

Also check out the following for details about correctly configuring the Micrel: http://www.utasker.com/forum/index.php?topic=161.0

Regards

Mark


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: