S32G3 EthCtrlConfigShaper

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G3 EthCtrlConfigShaper

Jump to solution
1,223 Views
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 Kudos
Reply
1 Solution
1,175 Views
disrupt-user01
Contributor II

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

View solution in original post

0 Kudos
Reply
3 Replies
1,176 Views
disrupt-user01
Contributor II

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

0 Kudos
Reply
1,186 Views
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 Kudos
Reply
1,178 Views
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 Kudos
Reply
%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%3EI%20have%20s32g3%20gold%20box%2C%20and%20I%20have%20this%20project%26nbsp%3Blwip_FreeRTOS_S32G399A_M7_rtd402.%20I%20am%20adding%20a%26nbsp%3BEthCtrlConfigShaper%20to%20Fifo_1%2C%20and%20setting%20max%20value%20to%26nbsp%3BEthCtrlConfigShaperIdleSlope%20which%20is%26nbsp%3B750000000.%20I%20don't%20see%20these%20values%20generated%20in%20Gmac_Ip_Sa_PBcfg.c%3CBR%20%2F%3Ewhat%20I%20am%20getting%20is%3A%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%3EI%20would%20want%20the%20idlescopecredit%2C%20sendslopecredit%20and%20queueopmode%20be%20updated%20accordingly%20but%20its%20not%20happening.%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%3EHi%20Joey%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20the%20reply.%20Yes%20I%20did%20change%20the%20values%20in%20the%20config%20tool.%20The%20config%20tool%20only%20provides%20idleslopecredit%2C%20locredit%20and%20hicredit%20values%20to%20be%20modified.%20But%20these%20changes%20are%20not%20reflected%20when%20code%20is%20generated.%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%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%3EHi%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20contacting%20us.%3C%2FP%3E%0A%3CP%3EDo%20you%20have%20changed%20these%20values%20of%20(%3CSPAN%3E%26nbsp%3Bidlescopecredit%2C%20sendslopecredit%20and%20queueopmode)%20in%20Config%20Tool%3F%20But%20do%26nbsp%3Byou%20not%20find%20these%20values%20be%20modified%20in%20the%20code%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EJoey%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%3EThe%20problem%20is%20solved%2C%26nbsp%3B%3CSPAN%3Ein%20the%20EthCtrlConfigSchedulerPredecessorRef%20destination%20we%20had%20to%20set%20the%20shaper%20instead%20of%20fifo.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E