Hi,
I am on LAB03 of the instapsin labs in the newer motorcontrol SDK.
I'm using CCS 9.0.1.
The datalog buffer size is 400 samples, but all of the buffer values always show zero except [399]
The same is true for datalogBuff1, datalogBuff2, datalogBuff3, datalogBuff4. For example, here is a readout in realtime from the expression viewer when debugging:
Inspecting the code, here is where in main i am assigning the desired variable addresses to the datalog pointers:
(for example, iptr[0] is now the foc angle.)
In the mainISR, DATALOG_updateWithDMA is called from datalog.h
In datalog.h, it seems like a value is only being assigned to datalogBuff1[399] because number is always = 399, and nothing happens with the other 399 values. Please help, am I missing something?