Other Parts Discussed in Thread: CC1200
Hi,
I am working with Starterware 02.00.01.01, CCS5 Version: 5.4.0.00091, BeagleBone White rev A6 and ADS1278EVM.
I have modified the McASP playback example to run in beaglebone and perform data acquisition using the ADS1278EVM.
The first version of the application uses the serial interface to transmit the data to a Matlab script where I plot the data. That works fine!
In the second version of the application, I have modified the echoserver example of LWIP to send the data through ethernet interface. After lowering the priority of the interrupts in the LWIP side (0 to 1, see below in blue), I could set the connection, send commands and receive the data buffer.
/* Set the priority */
IntPrioritySet(SYS_INT_3PGSWTXINT0, 1, AINTC_HOSTINT_ROUTE_IRQ);//Priority level was 0 in the original
IntPrioritySet(SYS_INT_3PGSWRXINT0, 1, AINTC_HOSTINT_ROUTE_IRQ);//Priority level was 0 in the original
The problem is the data is corrupted. The first points are ok, but, after these, all the data is corrupted, missing bits, displaced etc. It seems that something in LWIP is interfering with the McASP activity. I have even disabled the interrupts at the LWIP side before calling the data acquisition function (see below in blue), but it didn't solve the problem.
IntSystemDisable(SYS_INT_3PGSWTXINT0);
IntSystemDisable(SYS_INT_3PGSWRXINT0);
AcquireADS1278();
IntSystemEnable(SYS_INT_3PGSWTXINT0);
IntSystemEnable(SYS_INT_3PGSWRXINT0);
A plot example showing good data versus bad data is below.
Any help, suggestion or insight is highly appreciated!!
Thanks in advance!
