This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Replies: 5
Views: 222
Part Number: IWR1443BOOST
Tool/software: TI-RTOS
Hi,
I've added SPI code to the demo for IWR1443 (C:\ti\mmwave_sdk_02_01_00_04\packages\ti\demo\xwr14xx\mmw). The demo itself is able to run fine, and I added SPI initialization and transaction code to it. I just want to be able to see the SPI clock turn on and be able to probe the signal on the pin on the dev board. The code compiles fine but when I execute the program I run into errors, and the output shows that SPI did not open. I've attached a screenshot with the relevant code and console output. I'd appreciate any help I can get on this. Thanks.
In reply to Charles Oladimeji:
Hi Charles,
I believe I've just running R4F (we're just using the IWR1443 not IWR1642). I've only modified main.c in the demo, which I've attached here.
5554.main.c
In reply to Sabrina Chang:
Hi, I've tried opening DMA in the updated code I had in the other post. Here it is again.
Additionally, when I try commenting out the code that opens UART, the project does not build. Why?
Thank you, we're in a hurry to get SPI working.3858.main.c
I've figured this out last week. For anyone who wants to add SPI to the demo code in the future, here's my procoess. I linked the SPI driver in the file path, followed https://e2e.ti.com/support/sensors/f/1023/t/611282?IWR1443BOOST-capture-the-range-data-from-IWR1443BOOST-via-serial-port to add SPI in the appropriate places, and put data on txBuf. It does not work if txBuf is NULL (not explicitly said anywhere). I've also linked my code here. The SPI clock turns on in bursts of 32 cycles due to the while(1) loop in MmwDemo_dataPathTask.8306.main.c