infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 2 of 2

Thread: Ethernet issue with TC 279x (SMI/MDIO interface)

  1. #1
    New Member New Member Cell is on a distinguished road
    Join Date
    Jun 2017
    Posts
    4
    Points
    37.5

    Ethernet issue with TC 279x (SMI/MDIO interface)

    Good morning, I am working on a board equipped with a
    Tricore processor (Aurix TC297B version).

    The board contains also a chipset that provides the
    functionalities of Ethernet switch and other components.

    I need that the Aurix processor communicates to the Ethernet
    chipset using the SMI/MDIO interface, in order to perform
    Ethernet configuration.

    Unfortunately, in the last weeks I was unable to obtain a
    working communication between the processor and the
    Ethernet chipset.

    In fact, despite I configured the Aurix registers for SMI/MDIO
    access, when I try to read one of the 32 registers that are made
    available by the SMI interface, the value returned by the
    read_SMI() routine is ALWAYS 0xFFFF.

    The result is the same trying to address the Ethernet chipset
    using each of the 32 PHY slave IDs available on the SMI bus

    (in my tests, I assumed that Aurix automatically configures
    itself as the master device in the SMI/MDIO bus).


    I performed the following steps:

    - The pin P12.0 was set in order to use the ETHRXCLKC
    signal. Following the Aurix TC297B manual (tc29xB_um_v1.3),
    this can be obtained using the settings:

    ETH_GPCTL.ALTI1 = 10b (i.e. 02h)
    P12_IOCR0.PC0 = 0XXXXb (I used 0Fh
    i.e. 01111b)

    (page 1214/13-128 of the Aurix TC297B manual)


    - The pin P12.1 was set in order to use the ETHMDIOC signal.
    Following the Aurix TC297B manual, this can be obtained
    using the following settings:

    ETH_GPCTL.ALTI0 = 10b (i.e. 02h)
    P12_IOCR0.PC1 = 0XXXb (I used 07h
    i.e. 0111b)

    (page 5313/34-463 of the Aurix TC297B manual)



    I have not used the macros provided by Infineon for
    modifying the registers.

    I prefer to directly write the routines needed to change
    the target bit fields.

    In order to modify the P12_IOCR0 register, I proceeded
    in the following way.

    I read that the register address space dedicated to the
    P12 port starts at the address F003B200h
    (page 1094/13-8 of the manual).

    I added the offset 0010h for addressing IOCR0 control
    register (page 1095/13-9 of the manual), thus obtaining
    the address F003B210h.

    Next, I performed the changes on the bit fields dedicated
    to PC0 and PC1 at the address F003B210h.


    Is this procedure correct ? Perhaps some steps in Ethernet
    SMI interface configuration are missing ?

    Thanks in advance for your help.

  2. #2
    Beginner Beginner audiolines is on a distinguished road
    Join Date
    May 2018
    Posts
    7
    Points
    160
    Hi, Were you able to get any progress on this?

    Any ideas on how to solve this? Is it working for you?

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.