Other Parts Discussed in Thread: DCA1000EVM
Tool/software: Code Composer Studio
Hi all,
I have modify the SRR code and I am able to output some data through LVDS and DCA1000 to my PC while running the demo
1. My question is that what is the size limit of array gSwUserBuffer in mss_main.c ?
I can change the size of the array from volatile uint16_t gSwUserBuffer[2048] to volatile uint16_t gSwUserBuffer[4096] And it works fine I can get the amount of data I want
But however when I change the size to volatile uint16_t gSwUserBuffer[8192] I can’t even run the demo, opening the GUI will have a error saying that I can’t open the COM port while the COM port is normal with the array size 2048 and 4096
is there any way I am able to set the array to gSwUserBuffer[8192] ?
2. The second quesion is how to calculate sizeof(gSwUserBuffer)?
in mss_main.c:SRR_MSS_configureStreaming(), sessionCfg.u.swCfg.userBufferInfo[0].size = sizeof(gSwUserBuffer)/2;
while volatile uint16_t gSwUserBuffer[2048]
in my concept the array size should be 2048 * 2 Bytes = 4096 Bytes
but when the sessionCfg.u.swCfg.userBufferInfo[0].size is set as sizeof(gSwUserBuffer)/2, I will get a data of size 4096 Bytes per frame, shouldn't it be 4096/2 = 2048 Bytes?
I have the problem above because I wish to send out 32KB of Data per frame
Since the size of gSwUserBuffer[2048]/2 is 4096 , so the size of gSwUserBuffer[8192] will be 32KB and it will be able to output the amount of data I need
Or is there any way I can try to output 32KB of data per mailbox read?