Other Parts Discussed in Thread: IWRL6844, SYSCONFIG
Tool/software:
Hi team,
Currently I am using the mmwave demo for the IWRL6844 device from the mmwave low power sdk: 06_00_04_01.
My requirement is to transfer the processed data through the SPI.
I added the belo code in the MmwDemo_transmitProcessedOutputTask()
This was done in reference provided in the path: <TI_INSTALL_DIR>\MMWAVE_L_SDK_06_00_04_01\mmwave_l_sdk_06_00_04_01\examples\drivers\mcspi\mcspi_loopback\mcspi_loopback.c
The build and flash was successful, but the firmware is stuck after the sensorStart 0 0 0 0 command.
The steps involved as per the example provided are:
1. PiN muxing
2. MCSPI open
3. MCSPI_transactionInit
4. MCSPI Transfer after modifying the transaction structure.
Since pin muxing and the driver open are already done, I added only the following code:
char txBuffer[10] = {'H','e','l','l','o'};
MCSPI_Transaction spiTransaction;
uint transferOK;
MCSPI_Transaction_init(&spiTransaction);
spiTransaction.channel = gConfigMcspi0ChCfg[0].chNum;
spiTransaction.dataSize = 8;
spiTransaction.csDisable = TRUE;
spiTransaction.count = 10 / (spiTransaction.dataSize/8);
spiTransaction.txBuf = (void *)txBuffer;
spiTransaction.rxBuf = NULL;
spiTransaction.args = NULL;
transferOK = MCSPI_transfer(gMmwMssMCB.mcspiHandle, &spiTransaction);
CLI_write("TOK: %d\n",transferOK);
I also tried to print the transferOK variable, and nothing appears in the console.
Upon debugging the code, the code is stuck into an infinite loop when stepped inside the MCSPI_Transfer() function.
Help in resolving the issue,
Thanks in advance,
Poorneka T.