Details
Description
Default stack size for midsys task is 1024 DWORDS, but we reduce to 512 DWORD, whcih causes a stack overflow on netX100 if a certain packet is sent to the midsys (as described in the linked ticket.
Please increase stack size (just remove the reducing).
This should be done for all platforms.
Also, please check older releases.
Also, please check the V2 stack.
--- rcx_common/Config.c (revision 88646) +++ rcx_common/Config.c (working copy) @@ -1196,7 +1196,7 @@ g_ulMidSysQueueElements = MID_SYS_QUEUE_ELEMENTS; g_ulMidSysPoolElements = MID_SYS_POOL_ELEMENTS; g_ulMidSysMaxPacketSize = MID_SYS_MAX_PACKET_SIZE; - g_ulMidsysStackSize = MID_SYS_STACK_SIZE; + /* MidSys task stack size remains at the default value of 1024 DWORDS */ g_ulDrvHifPacketsPerChannel = DRV_HIF_PCK_PER_CHANNEL; #ifdef HEAP_ANALYSER Index: rcx_common/Config.h =================================================================== --- rcx_common/Config.h (revision 88646) +++ rcx_common/Config.h (working copy) @@ -32,7 +32,7 @@ #define MID_SYS_QUEUE_ELEMENTS 8 /* Default 32 */ #define MID_SYS_POOL_ELEMENTS 8 /* Default 32 */ #define MID_SYS_MAX_PACKET_SIZE 1600 /* Default 2048 */ -#define MID_SYS_STACK_SIZE 512 /* Default 2048 */ + #define DRV_HIF_PCK_PER_CHANNEL 8 /* Default 16 */ #define EIP_INSTANCE 0