S32G3 EthCtrlConfigShaper

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32G3 EthCtrlConfigShaper

跳至解决方案
1,328 次查看
disrupt-user01
Contributor II

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.

0 项奖励
回复
1 解答
1,280 次查看
disrupt-user01
Contributor II

The problem is solved, in the EthCtrlConfigSchedulerPredecessorRef destination we had to set the shaper instead of fifo.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,281 次查看
disrupt-user01
Contributor II

The problem is solved, in the EthCtrlConfigSchedulerPredecessorRef destination we had to set the shaper instead of fifo.

0 项奖励
回复
1,291 次查看
Joey_z
NXP Employee
NXP Employee

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

0 项奖励
回复
1,283 次查看
disrupt-user01
Contributor II

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,

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2331243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G3%20EthCtrlConfigShaper%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2331243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%20s32g3%20gold%20box%EF%BC%8C%E6%88%91%E6%9C%89%E8%BF%99%E4%B8%AA%E9%A1%B9%E7%9B%AE%20lwip_FreeRTOS_S32G399A_M7_rtd402%E3%80%82%E6%88%91%E5%9C%A8%20Fifo_1%20%E4%B8%AD%E6%B7%BB%E5%8A%A0%E4%BA%86%E4%B8%80%E4%B8%AA%20EthCtrlConfigShaper%EF%BC%8C%E5%B9%B6%E5%B0%86%E6%9C%80%E5%A4%A7%E5%80%BC%E8%AE%BE%E7%BD%AE%E4%B8%BA%20EthCtrlConfigShaperIdleSlope%EF%BC%8C%E5%8D%B3%20750000000%E3%80%82%E6%88%91%E5%9C%A8%20Gmac_Ip_Sa_PBcfg.c%20%E4%B8%AD%E6%B2%A1%E6%9C%89%E7%9C%8B%E5%88%B0%E7%94%9F%E6%88%90%E7%9A%84%E8%BF%99%E4%BA%9B%E5%80%BC%3CBR%20%2F%3E%E6%88%91%E5%BE%97%E5%88%B0%E7%9A%84%E4%BF%A1%E6%81%AF%E6%98%AF%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%2F*.weight%20%3D%20*%2F0U%2C%3CBR%20%2F%3E%2F*.idleSlopeCredit%20%3D%20*%2F0U%2C%3CBR%20%2F%3E%2F*.sendSlopeCredit%20%3D%20*%2F0U%2C%3CBR%20%2F%3E%2F*.hiCredit%20%3D%20*%2F0U%2C%3CBR%20%2F%3E%2F*.loCredit%20%3D%20*%2F0%2C%3CBR%20%2F%3E%2F*.ringDesc%20%3D%20*%2FGMAC_0_TxRing_1_DescBuffer%2C%3CBR%20%2F%3E%2F*.callback%20%3D%20*%2FEth_TxIrqCallback%2C%3CBR%20%2F%3E%2F*.buffer%20%3D%20*%2FGMAC_0_TxRing_1_DataBuffer%2C%3CBR%20%2F%3E%2F*.interrupts%20%3D%20*%2F(uint32)GMAC_CH_INTERRUPT_TI%2C%3CBR%20%2F%3E%2F*.bufferLen%20%3D%20*%2F1536U%2C%3CBR%20%2F%3E%2F*.ringSize%20%3D%20*%2F4U%2C%3CBR%20%2F%3E%2F*.priorityMask%20%3D%20*%2F(uint8)GMAC_VLAN_PRIORITY_4%20%7C%20(uint8)GMAC_VLAN_PRIORITY_5%20%7C%20(uint8)GMAC_VLAN_PRIORITY_6%20%7C%20(uint8)GMAC_VLAN_PRIORITY_7%2C%3CBR%20%2F%3E%2F*.dmaBurstLength%20%3D%20*%2F64U%2C%3CBR%20%2F%3E%2F*.queueOpMode%20%3D%20*%2FGMAC_OP_MODE_DCB_GEN%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%E6%88%91%E5%B8%8C%E6%9C%9B%20idlescopecredit%E3%80%81sendslopecredit%20%E5%92%8C%20queueopmode%20%E4%B9%9F%E8%83%BD%E7%9B%B8%E5%BA%94%E6%9B%B4%E6%96%B0%EF%BC%8C%E4%BD%86%E8%BF%99%E4%B8%80%E5%88%87%E9%83%BD%E6%B2%A1%E6%9C%89%E5%8F%91%E7%94%9F%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2332199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20EthCtrlConfigShaper%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2332199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%EF%BC%8C%E4%B9%94%E4%BC%8A%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E7%AD%94%E5%A4%8D%E3%80%82%E6%98%AF%E7%9A%84%EF%BC%8C%E6%88%91%E7%A1%AE%E5%AE%9E%E6%9B%B4%E6%94%B9%E4%BA%86%E9%85%8D%E7%BD%AE%E5%B7%A5%E5%85%B7%E4%B8%AD%E7%9A%84%E5%80%BC%E3%80%82%E9%85%8D%E7%BD%AE%E5%B7%A5%E5%85%B7%E5%8F%AA%E6%8F%90%E4%BE%9B%20idleslopecredit%E3%80%81locredit%20%E5%92%8C%20hicredit%20%E5%80%BC%E4%BE%9B%E4%BF%AE%E6%94%B9%E3%80%82%E4%BD%86%E8%BF%99%E4%BA%9B%E6%9B%B4%E6%94%B9%E4%B8%8D%E4%BC%9A%E5%9C%A8%E7%94%9F%E6%88%90%E4%BB%A3%E7%A0%81%E6%97%B6%E5%8F%8D%E6%98%A0%E5%87%BA%E6%9D%A5%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%B0%A2%E8%B0%A2%E3%80%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2332100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20EthCtrlConfigShaper%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2332100%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E4%B8%8E%E6%88%91%E4%BB%AC%E8%81%94%E7%B3%BB%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E6%98%AF%E5%90%A6%3CSPAN%3E%20%E5%9C%A8%E9%85%8D%E7%BD%AE%E5%B7%A5%E5%85%B7%E4%B8%AD%3C%2FSPAN%3E%E4%BF%AE%E6%94%B9%E4%BA%86%E8%BF%99%E4%BA%9B%E5%80%BC%EF%BC%88%20idlescopecredit%E3%80%81senslopecredit%20%E5%92%8C%20queueopmode%EF%BC%89%EF%BC%9F%E4%BD%86%E4%BD%A0%E5%9C%A8%E4%BB%A3%E7%A0%81%E4%B8%AD%E6%B2%A1%E6%9C%89%E5%8F%91%E7%8E%B0%E8%BF%99%E4%BA%9B%E5%80%BC%E8%A2%AB%E4%BF%AE%E6%94%B9%E8%BF%87%E5%90%97%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E4%B9%94%E4%BC%8A%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2332395%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20EthCtrlConfigShaper%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2332395%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E4%BA%86%EF%BC%8C%3CSPAN%3E%E5%9C%A8%20EthCtrlConfigSchedulerPredecessorRef%20%E7%9B%AE%E6%A0%87%E5%9C%B0%E5%9D%80%E4%B8%AD%EF%BC%8C%E6%88%91%E4%BB%AC%E5%BF%85%E9%A1%BB%E8%AE%BE%E7%BD%AE%E6%95%B4%E5%BD%A2%E5%99%A8%E8%80%8C%E4%B8%8D%E6%98%AF%20fifo%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E