Hi,
working around the studio_CLI s/w and looking at continuous mode:
studio_CLI has been very useful! I have almost all I need working, but have a question - which leads to a problem.
I have a TASK which waits for GPIO_1 to go high, to use as an external trigger. This all works fine, but I need to start/stop continuous mode (or enable/disable chirpAvail interrupts?) from within this task, to control data collection.
Firstly: what code do I use for this: In studio_CLI MSS code I can see these functions:
in: MmwDemo_dataPathOpen
//start continuousMode
gMmwMssMCB.adcBufHandle = Mmw_ADCBufOpen(gMmwMssMCB.socHandle, 1);
and
//stop continuous mode
gMmwMssMCB.adcBufHandle = Mmw_ADCBufOpen(gMmwMssMCB.socHandle, 0);
in: MmwDemo_startSensor
retVal = MmwaveLink_ContMode(1);
and presumably
retVal = MmwaveLink_ContMode(0);
in: MmwDemo_dataPathStart
ADCBuf_control(gMmwMssMCB.adcBufHandle, ADCBufMMWave_CMD_START_CONTINUOUS_MODE, \
(void *)&gCLICmdCfg.cliCtrlCfg.u.continuousModeCfg.dataTransSize);
However, when I try to use these inside my TASK, it crashes:
Exception occurred in ThreadType_Task.
Task handle: 0x8006cd8.
Task stack base: 0x8006d38.
Task stack size: 0x800.
R0 = 0x00000000 R8 = 0xffffffff
R1 = 0x00000005 R9 = 0xffffffff
R2 = 0x00000000 R10 = 0xffffffff
R3 = 0xe59ff018 R11 = 0xffffffff
R4 = 0x0800d820 R12 = 0x00000000
R5 = 0x00000000 SP(R13) = 0x08007508
R6 = 0x00000001 LR(R14) = 0x00017e5f
R7 = 0xffffffff PC(R15) = 0x00010318
PSR = 0x000c019f
DFSR = 0x0000000d IFSR = 0x00000000
DFAR = 0xe59ff01c IFAR = 0x00000000
{module#44}: line 205: error {id:0x1a0000, args:[0x10318, 0x17e5f]}
xdc.r
So - what is the correct method for controlling continuosMode, from within the TASK ?
many thanks
Alan Milne