This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
We are porting the SYS/BIOS Ind. SDK V1.1.0.4 to our hardware platform. No there is the following problem in the procedure "bsp_pruss_mdio_init()" in the file "tiescbsp.c":
bsp_write_byte((pmdio_params->link0pol << pmdio_params->addr0)| (pmdio_params->link1pol << pmdio_params->addr1), ESC_ADDR_TI_PHY_LINK_POLARITY);
It appears that the vendor specific register "TI_PHY_LINK_POLARITY" is only 8Bit. One of our PHY is on the address 0x13. That means there is a problem in shifting a "1" with the value "0x13"in a byte.
As the PHY address can be in the range from 0 to 31 I would expect a 32bit register.
Does anyone from TI has a solution to this problem?
Thanks and best regards
Patrick
Patrick,
Inorder to make the interface between ARM and PRU simple and efficient, we have used an 8bit register to store the PHY address. I agree this is a limitation on the implementation.
The implementation on ICSS has plans to support only 2 ports, and we assumed that the PHY address could be managed by an 8 bit register. Is there any specific reason you are using a higher address?
Regards,
Vinesh
Vinesh,
Yes, the PHY address 0x13 is chosen because of the SYSBOOT bootstrap resisters on the AM3357. We do not have the ability to disconnect SYSBOOT resistors while PHY is booting. And this results in a address 0x13. I did not expect to have a limitation on the PHY address. We use a TLK110 PHY.
Regards,
Patrick
Hi,
We will assess what it takes to support this functionality and get back to you. Meanwhile can you contact me at pratheesh at ti dot com - I have some followup questions which we can do offline...
Hi,
Fix for this issue is available in the latest Industrial SDK 1.1.0.5: http://downloads.ti.com/sitara_indus/esd/AM335x_SYSBIOS_Industrial_SDK/latest/index_FDS.html
Bug Fixed: SDOCM00108358: EtherCAT: PHY address range supports only values from 0 to 7
Hi Pratheesh,
Thanks for the final reply and the support fixing this problem and to help understand the code.
PS: I have tried to close the thread as "answered" but it did not work.
Best regards,
Patrick