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: KS8721 PHY problem
PostPosted: Thu Jul 16, 2009 9:17 am 
Offline

Joined: Thu Jul 16, 2009 8:58 am
Posts: 12
Hi!
I encountered a problem while trying to customize the BSP for the Olimex SAM9-L9260 board (Similar to the original Atmel kit but this uses a KSZ8721BL PHY instead of the DM9161).
I modified the Chip ID and the communication between the PHY and the ARM looks fine. Register reading and writing works.
I removed a small part of the code which used registers not present in the KS8721.
EBOOT starts, even autonegotiate works (passes OK). When it tries to sent the BOOTME messages it seems nothing happens. The LED on the connector blinks when the BOOTME is sent according to the debug screen. Even the LED on my computer blinks but the packet seems to be lost. (Checked with Wireshark) When I send a packet from the computer to the board, the LED on the board blinks!
According to the status registers the packet is sent without error (TCOMP).
What did I do wrong?
I tried both RMII and MII also, no results. The PHY is not in powerdown. Autonegotiation runs fine so it can TX/RX (does it?). PHY register access works fine (so it looks like no pullup-pulldown problem). Register settings seem fine. The packet sent looks correct when dumped to debug screen.
I managed to get the BSP working on the SAM9261 Olimex board (BOOTME, etc works fine, but is uses a different ethernet chip). This beats me.

Thanks!
KV


Top
 Profile  
 
 Post subject: Re: KS8721 PHY problem
PostPosted: Wed Jul 22, 2009 11:12 pm 
Offline

Joined: Thu Jul 16, 2009 8:58 am
Posts: 12
Finally solved.
It was an MII-RMII problem. The peripheral IOs were not all configured. PHY was in MII but IOs were configured for RMII.
The strange is that register access worked...
Now it works. Kinda...


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 1 guest


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: