MCU-PLUS-SDK-AM243X: Unable to get PHY link up while running TSN EST example on 2 AM243x LP devices.

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

So, I am working on TSN EST and as a starting point I referred to TSN EST example provided in the SDK.

I have connected 2 AM243x LP DUTs directly via Ethernet cable to MAC port 1 of both devices. And when I run the example, i do not see PHY link up message (no LEDS light up on hardware Port as visual indication), by which i am unable to test the example on the DUTs. Can you please tell me if i have to do any modifications in the Sysconfig/code to get PHY active. Side note, I have not not modified anything on the example configurations.

Thank you in advance.
Regards,

Solomon

  • Hi Solomon,

    Can you please share more details on the example failure? If possible, can you please share the logs from the example? There are no changes needed in the example to run the test. Ideally, you should be able to run the example directly.

    Can you please check if the link partner is also enabled and active? I would request you to check the connection between the boards, or suggest running the test with a host PC to avoid external variables.

    Please share the results of the tests suggested, so that we can understand the problem further. I will try to validate the example's functionality from our side in our local test bench.

    Regards,
    Teja.

  • Hi Teju,

    Thank you very much for your reply.

    Hw Set up : 

    AM243x is connected to another AM243x through a Ethernet cable on both their MAC port 1. They both are powered on and https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/09_02_01_05/exports/docs/api_guide_am243x/EXAMPLES_ENET_CPSW_TSN_EST.html example is run on both the boards.

    And PHY on both the boards dont turn up.

    Below are the logs on both the AM243x.

    AM243x 1:

    ==========================                                                                                           
    
           TSN CPSW App                                                                                                  
    
    ==========================                                                                                           
    
    Enabling clocks!                                                                                                     
    
    start to open driver.                                                                                                
    
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 2                        
    
                                                                                                                         
    
    Init all configs                                                                                                     
    
    ----------------------------------------------                                                                       
    
    sitara-cpsw: init config                                                                                             
    
    Mdio_open: MDIO Manual_Mode enabled                                                                                  
    
    Open MAC port 1                                                                                                      
    
    EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK                                             
    
    Open MAC port 2                                                                                                      
    
    EnetPhy_bindDriver: PHY 15: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK                                            
    
    PHY 3 is alive                                                                                                       
    
    PHY 15 is alive                                                                                                      
    
    sitara-cpsw: Create RX task for regular traffic                                                                      
    
    initQs() txFreePktInfoQ initialized with 4 pkts                                                                      
    
    MAC port addr: 1c:63:49:25:1e:4f                                                                                     
    
    Start: uniconf_task                                                                                                  
    
    sitara-cpsw: default RX flow started                                                                                 
    
    EnetApp_uniconfTask: dbname: NULL                                                                                    
    
    Logger_task: started                                                                                                 
    
    unibase-1.1.4                                                                                                        
    
    INF:cbase:tilld0: has mac: 1C:63:49:25:1E:4F                                                                         
    
    INF:cbase:tilld1: has mac: 00:00:00:00:00:00                                                                         
    
    INF:cbase:cb_lld_task_create: uniconf_task stack_size=16384                                                          
    
    INF:uconf:simpledb_open:no data is imported                                                                          
    
    INF:uconf:get_next_nameid:a new mod=xl4-data, enum=0                                                                 
    
    INF:uconf:get_next_nameid:a new mod=xl4-extmod, enum=1                                                               
    
    INF:uconf:uc_hwal_open:                                                                                              
    
    INF:cbase:cb_rawsock_open:combase-1.1.3                                                                              
    
    INF:cbase:cb_rawsock_open:dmaTxChId=-1 numRxChannels=1 dmaRxChId=-1 nTxPkts=0 nRxPkts=0 pktSize=0                    
    
    INF:uconf:get_next_nameid:a new mod=ietf-interfaces, enum=2                                                          
    
    INF:uconf:get_next_nameid:a new mod=ieee1588-ptp-tt, enum=3                                                          
    
    INF:uconf:get_next_nameid:a new mod=ieee802-dot1q-bridge, enum=4                                                     
    
    INF:uconf:get_next_nameid:a new mod=excelfore-tsn-remote, enum=5                                                     
    
    INF:uconf:get_next_nameid:a new mod=excelfore-netconf-server, enum=6                                                 
    
    INF:uconf:get_next_nameid:a new mod=ietf-netconf-monitoring, enum=7                                                  
    
    INF:uconf:get_next_nameid:a new mod=ietf-yang-library, enum=8                                                        
    
    INF:uconf:get_next_nameid:a new mod=ieee802-dot1ab-lldp, enum=9                                                      
    
    INF:uconf:get_EnetApp_gptpYangConfig:domain=0                                                                        
    
    Start: gptp2d_task                                                                                                   
    
    Start: estapp_task                                                                                                   
    
    EnetApp_initTsn:TSN app start done!                                                                                  
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_SINGLE_CLOCK_MODE=1                                                     
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_USE_HW_PHASE_ADJUSTMENT=1                                               
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_FREQ_OFFSET_IIR_ALPHA_START_VALUE=1                                     
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_FREQ_OFFSET_IIR_ALPHA_STABLE_VALUE=4                                    
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_PHASE_OFFSET_IIR_ALPHA_START_VALUE=1                                    
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_PHASE_OFFSET_IIR_ALPHA_STABLE_VALUE=4                                   
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_MAX_DOMAIN_NUMBER=1                                                     
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_SKIP_FREQADJ_COUNT_MAX=0                                                
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_CLOCK_COMPUTE_INTERVAL_MSEC=100                                         
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_PHASE_OFFSET_ADJUST_BY_FREQ=100000                                      
    
    CPSW_ALE_IOCTL_ADD_VLAN: 110                                                                                         
    
    INF:cbase:cb_lld_task_create: gptp2d_task stack_size=16384                                                           
    
    INF:cbase:cb_lld_task_create: estapp_task stack_size=16384                                                           
    
    INF:uconf:get_next_nameid:a new extmod=xl4gptp, enum=0                                                               
    
    INF:uconf:create_semname_with_dbname:null dbname is specified.                                                       
    
    INF:gptp:gptpman_run:max_domains=1, max_ports=2                                                                      
    
    INF:cbase:cb_rawsock_open:combase-1.1.3                                                                              
    
    INF:cbase:cb_rawsock_open:dmaTxChId=1 numRxChannels=1 dmaRxChId=1 nTxPkts=8 nRxPkts=2 pktSize=1536                   
    
    INF:cbase:rxChId 1 has owner dmaRxShared 0                                                                           
    
    INF:gptp:dev:tilld0 open success                                                                                     
    
    INF:cbase:tilld1: alloc mac: 70:FF:76:1F:A4:D2                                                                       
    
    INF:gptp:dev:tilld1 open success                                                                                     
    
    INF:gptp:gptpnet_init:supportRtNotice=0 tout_interval=125000000Ns                                                    
    
    INF:gptp:gptpnet_init:Open lldtsync OK!                                                                              
    
    INF:gptp:IEEE1588-2019 performance monitoring disabled.                                                              
    
    INF:gptp:pp_glb_init: use-mgt-log-gptp-cap-interval=0                                                                
    
    INF:gptp:current-log-gptp-cap-interval=3 initial-log-gptp-cap-interval=3                                             
    
    INF:gptp:pp_glb_init: use-mgt-log-gptp-cap-interval=0                                                                
    
    INF:gptp:current-log-gptp-cap-interval=3 initial-log-gptp-cap-interval=3                                             
    
    INF:gptp:pINF:gptp:000000-629172:domainIndex=0, GM changed old=00:00:00:00:00:00:00:00, new=1C:63:49:FF:FE:25:1E:4F  
    
    INF:gptp:gptpclock_set_gmsync:gptpInstanceIndex=0, domainIndex=0, gmstate=2                                          
    
          5.383s : CPU load =  14.03 %                                                                                   
    
    domain=0, offset=0nsec, hw-adjrate=0ppb                                                                              
    
            gmsync=true, last_setts64=0nsec                                                                              
    
         10.384s : CPU load =   2.49 %                                                                                   
    
         15.385s : CPU load =   1.84 %                                                                                   
    
    domain=0, offset=0nsec, hw-adjrate=0ppb                                                                              
    
            gmsync=true, last_setts64=0nsec                                                                              
    
         20.386s : CPU load =   2.50 %                                                                                   
    
         25.387s : CPU load =   1.84 %   


    AM243x 2 :
    ==========================                                                                                           
    
           TSN CPSW App                                                                                                  
    
    ==========================                                                                                           
    
    Enabling clocks!                                                                                                     
    
    start to open driver.                                                                                                
    
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 2                        
    
                                                                                                                         
    
    Init all configs                                                                                                     
    
    ----------------------------------------------                                                                       
    
    sitara-cpsw: init config                                                                                             
    
    Mdio_open: MDIO Manual_Mode enabled                                                                                  
    
    Open MAC port 1                                                                                                      
    
    EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK                                             
    
    Open MAC port 2                                                                                                      
    
    EnetPhy_bindDriver: PHY 15: OUI:080028 Model:0f Ver:03 <-> 'DP83869' : OK                                            
    
    PHY 3 is alive                                                                                                       
    
    PHY 15 is alive                                                                                                      
    
    sitara-cpsw: Create RX task for regular traffic                                                                      
    
    initQs() txFreePktInfoQ initialized with 4 pkts                                                                      
    
    MAC port addr: 1c:63:49:25:1e:4f                                                                                     
    
    Start: uniconf_task                                                                                                  
    
    sitara-cpsw: default RX flow started                                                                                 
    
    EnetApp_uniconfTask: dbname: NULL                                                                                    
    
    Logger_task: started                                                                                                 
    
    unibase-1.1.4                                                                                                        
    
    INF:cbase:tilld0: has mac: 1C:63:49:25:1E:4F                                                                         
    
    INF:cbase:tilld1: has mac: 00:00:00:00:00:00                                                                         
    
    INF:cbase:cb_lld_task_create: uniconf_task stack_size=16384                                                          
    
    INF:uconf:simpledb_open:no data is imported                                                                          
    
    INF:uconf:get_next_nameid:a new mod=xl4-data, enum=0                                                                 
    
    INF:uconf:get_next_nameid:a new mod=xl4-extmod, enum=1                                                               
    
    INF:uconf:uc_hwal_open:                                                                                              
    
    INF:cbase:cb_rawsock_open:combase-1.1.3                                                                              
    
    INF:cbase:cb_rawsock_open:dmaTxChId=-1 numRxChannels=1 dmaRxChId=-1 nTxPkts=0 nRxPkts=0 pktSize=0                    
    
    INF:uconf:get_next_nameid:a new mod=ietf-interfaces, enum=2                                                          
    
    INF:uconf:get_next_nameid:a new mod=ieee1588-ptp-tt, enum=3                                                          
    
    INF:uconf:get_next_nameid:a new mod=ieee802-dot1q-bridge, enum=4                                                     
    
    INF:uconf:get_next_nameid:a new mod=excelfore-tsn-remote, enum=5                                                     
    
    INF:uconf:get_next_nameid:a new mod=excelfore-netconf-server, enum=6                                                 
    
    INF:uconf:get_next_nameid:a new mod=ietf-netconf-monitoring, enum=7                                                  
    
    INF:uconf:get_next_nameid:a new mod=ietf-yang-library, enum=8                                                        
    
    INF:uconf:get_next_nameid:a new mod=ieee802-dot1ab-lldp, enum=9                                                      
    
    INF:uconf:get_EnetApp_gptpYangConfig:domain=0                                                                        
    
    Start: gptp2d_task                                                                                                   
    
    Start: estapp_task                                                                                                   
    
    EnetApp_initTsn:TSN app start done!                                                                                  
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_SINGLE_CLOCK_MODE=1                                                     
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_USE_HW_PHASE_ADJUSTMENT=1                                               
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_FREQ_OFFSET_IIR_ALPHA_START_VALUE=1                                     
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_FREQ_OFFSET_IIR_ALPHA_STABLE_VALUE=4                                    
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_PHASE_OFFSET_IIR_ALPHA_START_VALUE=1                                    
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_PHASE_OFFSET_IIR_ALPHA_STABLE_VALUE=4                                   
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_MAX_DOMAIN_NUMBER=1                                                     
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_SKIP_FREQADJ_COUNT_MAX=0                                                
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_CLOCK_COMPUTE_INTERVAL_MSEC=100                                         
    
    EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_PHASE_OFFSET_ADJUST_BY_FREQ=100000                                      
    
    CPSW_ALE_IOCTL_ADD_VLAN: 110                                                                                         
    
    INF:cbase:cb_lld_task_create: gptp2d_task stack_size=16384                                                           
    
    INF:cbase:cb_lld_task_create: estapp_task stack_size=16384                                                           
    
    INF:uconf:get_next_nameid:a new extmod=xl4gptp, enum=0                                                               
    
    INF:uconf:create_semname_with_dbname:null dbname is specified.                                                       
    
    INF:gptp:gptpman_run:max_domains=1, max_ports=2                                                                      
    
    INF:cbase:cb_rawsock_open:combase-1.1.3                                                                              
    
    INF:cbase:cb_rawsock_open:dmaTxChId=1 numRxChannels=1 dmaRxChId=1 nTxPkts=8 nRxPkts=2 pktSize=1536                   
    
    INF:cbase:rxChId 1 has owner dmaRxShared 0                                                                           
    
    INF:gptp:dev:tilld0 open success                                                                                     
    
    INF:cbase:tilld1: alloc mac: 70:FF:76:1F:A4:D2                                                                       
    
    INF:gptp:dev:tilld1 open success                                                                                     
    
    INF:gptp:gptpnet_init:supportRtNotice=0 tout_interval=125000000Ns                                                    
    
    INF:gptp:gptpnet_init:Open lldtsync OK!                                                                              
    
    INF:gptp:IEEE1588-2019 performance monitoring disabled.                                                              
    
    INF:gptp:pp_glb_init: use-mgt-log-gptp-cap-interval=0                                                                
    
    INF:gptp:current-log-gptp-cap-interval=3 initial-log-gptp-cap-interval=3                                             
    
    INF:gptp:pp_glb_init: use-mgt-log-gptp-cap-interval=0                                                                
    
    INF:gptp:current-log-gptp-cap-interval=3 initial-log-gptp-cap-interval=3                                             
    
    INF:gptp:pINF:gptp:000000-629172:domainIndex=0, GM changed old=00:00:00:00:00:00:00:00, new=1C:63:49:FF:FE:25:1E:4F  
    
    INF:gptp:gptpclock_set_gmsync:gptpInstanceIndex=0, domainIndex=0, gmstate=2                                          
    
          5.383s : CPU load =  14.03 %                                                                                   
    
    domain=0, offset=0nsec, hw-adjrate=0ppb                                                                              
    
            gmsync=true, last_setts64=0nsec                                                                              
    
         10.384s : CPU load =   2.49 %                                                                                   
    
         15.385s : CPU load =   1.84 %                                                                                   
    
    domain=0, offset=0nsec, hw-adjrate=0ppb                                                                              
    
            gmsync=true, last_setts64=0nsec                                                                              
    
         20.386s : CPU load =   2.50 %                                                                                   
    
         25.387s : CPU load =   1.84 %   



    As I don't have a PC which have hardware timestamping capability I could not try out on the host PC. Although I did try connecting AM243x to an AM64x having Linux RT, PHY turn up on both the boards. But I'm unaware as to how to configure AM64x which is different issue : RE: PROCESSOR-SDK-AM64X: How to verify the TSN EST on AM64x while AM243x acts as a listener.


    Please let me know if you need further clarification from my end.

    Regards,

    Solomon

  • Hi Solomon,

    The motive for asking to try with a PC is to eliminate chances of bad physical link between the two endpoints. From the thread you mentioned with AM64x, I see that AM243x is getting a link up. This suggests something could be wrong with the connection between the two AM243 boards. 

    One more observation I made is, both the logs are showing that the MAC address of them to be same. This would prevent packet transmission from happening between the boards. Can you please ensure that both the boards are loaded, and running? If the partner board is not running any networking enabled example, it wouldn't configure the PHY, and that will lead to link not being established. 

    Please share the details once this test is done. We can look into next steps based on the results.

    Thanks and regards,
    Teja.