Hello Ladies and Gents,
my Goal is to add the SPI functionality to the pplcount_16xx DemoSoftware found in the IndustrialToolbox. I want to achieve this to send the People_Count via SPI to an external Device (LoRaWAN module). But I have got kinda some Problems so tried different approaches.
First of all I have tried to use the ProjectSpec I did find in this Forum made by ej99 just to test the SPI functionality via the SPI_DemoSoftware.
https://e2e.ti.com/support/sensors/f/1023/p/686601/2532025
After Importing the ProjectSpec and rebuilding it I get some Errors as seen in Picture 1. After solving these by replacing the MMWAVE_L3RAM_SIZE Define with an actual Integer Value I have found in several other DemoProjects(as seen in Picture 2) the Code is running without any Errors... But as soon as I flash the Code to my IWR1642_BOOST DS1 does glow red. (This should indicate an actual HW Error) Is this caused due to my change I have made to the MMWAVE_L3RAM_SIZE? Or do I have some other issues with this Software/my Hardware?
After not achieving anything in quiet some time I also tried to add the SPI to the pplcount_16xx DemoSoftware by adding Code to the mss_main.c. Since the Project has two Mains I did some researchand I did find some information that I need to add the Code only to the mss section. Is this right?
So I just gave it a try and added the PINMUX settings just as like in the SPI Driver to my mss_main.c (pplcount_16xx_mss) then I added the SPI_Init() and afterwards the Master/Slave parameters andthe SPI_Open() just like in the Doxygen Documentary to my MmwDemo_mssInitTask. (Did I miss anything important already?) Till this point I had no Errors nor any issues with the Functionality of the pplcount_16xx.
Since I want to add the SPI but keep the UART still remaining and also the GUI I tried to add the SPI_Transfer() Function beneath the UART_WRITE() in the task_mbox.c. The reason why I added the SPI_Transfer()there is because I believe that this is the easiest way I might get the right Data (amount of detected Objects/People) since I did not find any other parameters except the target List I do send via UART containing the amount of Ppl. But by adding the SPI_Transfer() my Program just crashes after a short amount of time and the GUI does not respond anymore. So it seems just like the SPI_Transfer() might result in adeadlock due to some issues. So here is the Question do I miss anything important and what do I need to do to make it work? Or is it not possible to run UART and SPI at the same time?
Thanks!
Greets Oliver.

