Hi,
I'm trying to run only the test_sock9 with 64KB data payload (the maximum possible for FType 9)
in the SRIO_Loopback.
I succeeded to run modify it up to 4K bytes, but no more.
The changes I made in the file test_main.c are:
#define MULTISEGMENT_DATA_SIZE 5120
/* Initialize the OSAL */
if (Osal_dataBufferInitMemory(MULTISEGMENT_DATA_SIZE) < 0)
{
System_printf ("Error: Unable to initialize the OSAL. \n");
return;
}
/* Setup the SRIO Driver Managed Configuration. */
drvCfg.bAppManagedConfig = FALSE;
/* Driver Managed: Receive Configuration */
drvCfg.u.drvManagedCfg.bIsRxCfgValid = 1;
drvCfg.u.drvManagedCfg.rxCfg.rxMemRegion = Qmss_MemRegion_MEMORY_REGION0;
drvCfg.u.drvManagedCfg.rxCfg.numRxBuffers = 4;
drvCfg.u.drvManagedCfg.rxCfg.rxMTU = MULTISEGMENT_DATA_SIZE;
/* Driver Managed: Transmit Configuration */
drvCfg.u.drvManagedCfg.bIsTxCfgValid = 1;
drvCfg.u.drvManagedCfg.txCfg.txMemRegion = Qmss_MemRegion_MEMORY_REGION0;
drvCfg.u.drvManagedCfg.txCfg.numTxBuffers = 4;
drvCfg.u.drvManagedCfg.txCfg.txMTU = MULTISEGMENT_DATA_SIZE;
The changes in the file test_sock9.c are:
#define SRIO_TYPE9_MESSAGE_SIZE 4096
My questions are:
1.- If I define the MULTISEGMENT_DATA_SIZE exactly of 4096 the test doesn't work. Please,
could you tell me why MULTISEGMENT_DATA_SIZE must be greather than SRIO_TYPE9_MESSAGE_SIZE?
2.- For testing 4K bytes with FType 9, I needed to redefine the heap0 of 256KB in ti.sysbios.heaps.HeapMem.
Why if I'm talking about 4 KB, I need to do define heap0 of 256KB?
3.- What do I need to modify in order to achieve 64KB data of payload using FType 9?
4.- What do I need to modify in the sysbios in order to achieve the 64KB mentioned above?
Thanks in advance.
Shmulik.