I have some questions:
1. Can I use AM2434 EVM board change MII mode run gptp_icssg_app_am243x-evm demo?
2. There are many RGMII functions in icssg.c(path:C:\ti\mcu_plus_sdk_am243x_09_01_00_41\source\networking\enet\core\src\per\).
I don't know if I use MII mode , shall I change these RGMII funcitons to MII?
I just modified three areas in function Icssg_initCfg().
Three areas are as follow:
icssgInitCfg->mii.layerType = ENET_MAC_LAYER_GMII;
icssgInitCfg->mii.sublayerType = ENET_MAC_SUBLAYER_REDUCED;
icssgInitCfg->mii.variantType = ENET_MAC_VARIANT_NONE;
3. I use custom board,PHY chip is DP83826,MII mode, run gptp_icssg_app_am243x-lp demo ,but the print log is not expected.
I can't find the reason.
The log is as follow:
==========================
gPTP App
==========================
Enabling clocks!
start to open driver.
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 2
[2024-03-08 16:56:23.282]# RECV ASCII>
Mdio_open: MDIO Manual_Mode enabled
sitara-icssg: Open port 1
EnetPhy_bindDriver: PHY 4: OUI:080028 Model:13 Ver:01 <-> 'dp83826' : OK
sitara-icssg: Open port 2
EnetPhy_bindDriver: PHY 2: OUI:080028 Model:13 Ver:01 <-> 'dp83826' : OK
PHY 2 is alive
PHY 4 is alive
sitara-icssg: Create RX task for regular traffic
initQs() txFreePktInfoQ initialized with 8 pkts
MAC port addr: 3c:e0:64:62:e3:46
unibase-1.1.4
INF:cbase:tilld0: has mac: 3C:E0:64:62:E3:46
INF:cbase:tilld1: has mac: 00:00:00:00:00:00
Start: uniconf_task
sitara-icssg: default RX flow started
EnetApp_uniconfTask: dbname: NULL
INF:uconf:simpledb_open:no data is imported
INF:uconf:uc_hwal_open:
INF:cbase:cb_rawsock_open:combase-1.1.3
INF:cbase:cb_rawsock_open:dmaTxChId=-1 numRxChannels=0 dmaRxChId=-1 nTxPkts=0 nRxPkts=0 pktSize=0
[2024-03-08 16:56:23.470]# RECV ASCII>
INF:uconf:create_semname_with_dbname:null dbname is specified.
INF:cbase:cb_lld_task_create:alloc stack size=16384
INF:uconf:000000-278030:uniconf_main:uniconf started
EnetApp_gptpYangConfig:domain=0
INF:uconf:get_exmodid_in_db:first xl4gptp:exmodid=0
INF:uconf:create_semname_with_dbname:null dbname is specified.
EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_SINGLE_CLOCK_MODE=1
EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_USE_HW_PHASE_ADJUSTMENT=1
EnetApp_gptpNonYangConfig:XL4_EXTMOD_XL4GPTP_CLOCK_COMPUTE_INTERVAL_MSEC=100
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
Sta
[2024-03-08 16:56:23.642]# RECV ASCII>
rt: gptp2d_task
EnetApp_initTsn:TSN app start done!
INF:cbase:cbl_query_response:tilld0 link DOWN !!!!
INF:cbase:cbl_query_response:tilld1 link DOWN !!!!
INF:cbase:tilld1: alloc mac: 02:00:00:00:00:00
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=2 dmaRxChId=1 nTxPkts=8 nRxPkts=8 pktSize=1536
INF:cbase:rxChId 1 has owner dmaRxShared 0
INF:cbase:rxChId 3 has owner dmaRxShared 0
For ICSSG, EthType and VlanId are not used to match the packet only dest addr is used
For ICSSG, EthType and VlanId are not used to match the packet only dest addr is used
INF:gptp:dev:tilld0 open success
INF:gptp:dev:tilld1 open success
INF:gptp:gptpnet_init:Open lldtsync OK!
INF:gptp:IEEE1588-2019 performance monitoring disabled.
INF:uconf:ydbi_get_item_ifk3vk0:no data
INF:uconf:ydbi_get_item_ifk3vk0:no data
INF:gptp:onenet_activate:tilld0 status=0, duplex=1, speed=0Mbps
INF:uconf:ydbi_get_item_ifk3vk0:no data
INF:uconf:
[2024-03-08 16:56:23.720]# RECV ASCII>
ydbi_get_item_ifk3vk0:no data
INF:gptp:onenet_activate:tilld1 status=0, duplex=1, speed=0Mbps
INF:ubase:GPTP_MEDIUM_ALLOC: fragsize=16 fragused/fragnum=830/921 (90%)
INF:ubase:GPTP_SMALL_ALLOC: fragsize=4 fragused/fragnum=19/71 (26%)
INF:ubase:SM_DATA_INST: fragsize=8 fragused/fragnum=2002/2002 (100%)
INF:gptp:gptpman_run:GPTPNET_INTERVAL_TIMEOUT_NSEC=125000000
[2024-03-08 16:56:23.845]# RECV ASCII>
INF:gptp:000000-627998:domainIndex=0, GM changed old=00:00:00:00:00:00:00:00, new=3C:E0:64:FF:FE:62:E3:46
INF:gptp:gptpclock_set_gmsync:gptpInstanceIndex=0, domainIndex=0, gmstate=2
INF:gptp:set_phase_offsetGM:domainIndex=0, New adjustment(New GM?)
[2024-03-08 16:56:25.485]# RECV ASCII>
Icssg_handleLinkUp: icssg1: Port 1: Link up: 100-Mbps Full-Duplex
INF:cbase:cbl_query_response:tilld0: link UP, speed=100, duplex=1 !!!!
[2024-03-08 16:56:25.594]# RECV ASCII>
INF:gptp:index=1 speed=100, duplex=full, ptpdev=tilld0
WRN:gptp:000002-377316:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=12546943
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable
[2024-03-08 16:56:26.422]# RECV ASCII>
INF:gptp:md_pdelay_resp_sm_recv_req:port=1, set receivedNonCMLDSPdelayReq=1
[2024-03-08 16:56:26.594]# RECV ASCII>
WRN:gptp:000003-374777:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=511225307
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable
[2024-03-08 16:56:27.594]# RECV ASCII>
WRN:gptp:computePropTime: computed PropTime is out of range = 1011224747, set 0
WRN:gptp:000004-378901:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=0
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable
[2024-03-08 16:56:28.610]# RECV ASCII>
WRN:gptp:computePropTime: computed PropTime is out of range = 1511224227, set 0
WRN:gptp:000005-378893:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=0
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable
5.393s : CPU load = 4.99 %
[2024-03-08 16:56:29.594]# RECV ASCII>
WRN:gptp:000006-374777:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=99884555
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable
[2024-03-08 16:56:30.594]# RECV ASCII>
WRN:gptp:000007-374778:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=599884955
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable
[2024-03-08 16:56:31.593]# RECV ASCII>
WRN:gptp:computePropTime: computed PropTime is out of range = 1099883833, set 0
WRN:gptp:000008-378896:waiting_for_pdelay_interval_timer_proc:portIndex=1, sourcePortIdentity=00:9D:0C:FF:FE:00:00:11, thisClock=3C:E0:64:FF:FE:62:E3:46, neighborPropDelay=0
INF:gptp:waiting_for_pdelay_interval_timer_proc:portIndex=1, not asCapable