I have s32g3 gold box, and I have this project lwip_FreeRTOS_S32G399A_M7_rtd402. I am adding a EthCtrlConfigShaper to Fifo_1, and setting max value to EthCtrlConfigShaperIdleSlope which is 750000000. I don't see these values generated in Gmac_Ip_Sa_PBcfg.c
what I am getting is:
{
/*.weight = */0U,
/*.idleSlopeCredit = */0U,
/*.sendSlopeCredit = */0U,
/*.hiCredit = */0U,
/*.loCredit = */0,
/*.ringDesc = */GMAC_0_TxRing_1_DescBuffer,
/*.callback = */Eth_TxIrqCallback,
/*.buffer = */GMAC_0_TxRing_1_DataBuffer,
/*.interrupts = */(uint32)GMAC_CH_INTERRUPT_TI,
/*.bufferLen = */1536U,
/*.ringSize = */4U,
/*.priorityMask = */(uint8)GMAC_VLAN_PRIORITY_4 | (uint8)GMAC_VLAN_PRIORITY_5 | (uint8)GMAC_VLAN_PRIORITY_6 | (uint8)GMAC_VLAN_PRIORITY_7,
/*.dmaBurstLength = */64U,
/*.queueOpMode = */GMAC_OP_MODE_DCB_GEN
}
I would want the idlescopecredit, sendslopecredit and queueopmode be updated accordingly but its not happening.
Hi Joey,
Thank you for the reply. Yes I did change the values in the config tool. The config tool only provides idleslopecredit, locredit and hicredit values to be modified. But these changes are not reflected when code is generated.
Regards,
Hi,
Thank you for contacting us.
Do you have changed these values of ( idlescopecredit, sendslopecredit and queueopmode) in Config Tool? But do you not find these values be modified in the code?
BR
Joey
The problem is solved, in the EthCtrlConfigSchedulerPredecessorRef destination we had to set the shaper instead of fifo.