accessing ksz8863 switch registers for debugging

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing ksz8863 switch registers for debugging

272 Views
ankish_kacktwan
Contributor I

Hi can someone help me in reading the switch registers of the KSZ8863 for debugging the phy using lpc MII mode.

I can only access the phy registers using the MII interface of the lpc1778.

kindly help me on this.

Labels (1)
0 Kudos
2 Replies

129 Views
ankish_kacktwan
Contributor I

Hi rong,

I managed to communicate with the switch using bit bang.

But i am not able to get the counter registers value.

Always reading 0 for counters value.

0 Kudos

129 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Ankish,

I just downloaded the data sheet of the ethernet switch KSZ8863, and browsed the data sheet, it has SPI and I2C interface so that user can configure the KSZ8863. It appears that you can access the register of KSZ8863 via spi or I2C, the debugger can only show the peripheral register of LPC1778 itself, it can not show the register of KSZ8863, but I suppose that you can use spi/I2C modules to read/write the registers of KSZ8863 from/to on-chip memory of LPC1778, in this way, you can see the memory value.

Hope it can help you

BR

XiangJun Rong

0 Kudos