What can I do if I get this error? Can I increase the number of buffers?
Hi Mike_d
The default value for large buffer is 0, you can increase this value according to your requirement.
Please refer to file mqx/source/bsp/[frdmk64f]/init_enet.c, I assume you are using frdmK64 board, the parameter is next to last, bold
const ENET_PARAM_STRUCT ENET_default_params[BSP_ENET_DEVICE_COUNT] = {
{
&ENET_0,
Auto_Negotiate,
ENET_OPTION_RMII | ENET_OPTION_PTP_MASTER_CLK
#if BSPCFG_ENET_HW_TX_IP_CHECKSUM
| ENET_OPTION_HW_TX_IP_CHECKSUM
#endif
#if BSPCFG_ENET_HW_TX_PROTOCOL_CHECKSUM
| ENET_OPTION_HW_TX_PROTOCOL_CHECKSUM
#endif
#if BSPCFG_ENET_HW_RX_IP_CHECKSUM
| ENET_OPTION_HW_RX_IP_CHECKSUM
#endif
#if BSPCFG_ENET_HW_RX_PROTOCOL_CHECKSUM
| ENET_OPTION_HW_RX_PROTOCOL_CHECKSUM
#endif
#if BSPCFG_ENET_HW_RX_MAC_ERR
| ENET_OPTION_HW_RX_MAC_ERR
#endif
,
BSPCFG_TX_RING_LEN, // # tx ring entries
BSPCFG_TX_RING_LEN, // # large tx packets
ENET_FRAMESIZE, // tx packet size
BSPCFG_RX_RING_LEN, // # rx ring entries
BSPCFG_RX_RING_LEN, // # normal rx packets - must be >= rx ring entries
ENET_FRAMESIZE, // ENET_FRAMESIZE, // rx packet size
BSPCFG_RX_RING_LEN, // # rx PCBs - should be >= large rx packets.
0, // Daniel, please change this value according to your requirement.
0
},
};
I hope it helps.
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Have a great day,
Daniel