Hi,
I am trying to update the 3D People Counting demo to include an SPI task. However this causes a crash when I try to allocate memory.
I have added the following to initialise the SPI task (around line 2430):
Task_Params_init(&taskParams); taskParams.priority = SPI_TASK_PRIORITY; taskParams.stackSize = 6*1024; Task_create(spi_msg_task, &taskParams, NULL);
The SPI initialises correctly using SPI_init(), however it crashes when memory is being allocated for the point clouds (around line 1240):
pointCloudSize = MAX_RESOLVED_OBJECTS_PER_FRAME * sizeof(DPIF_PointCloudSpherical); gMmwMssMCB.pointCloudFromDSP = (DPIF_PointCloudSpherical *)MemoryP_ctrlAlloc(pointCloudSize, sizeof(float));
Do you have a suggestion of how to update the memory allocations for the point cloud, so that I can get this to run? (Note: this works with the Sense & Direct demo).
Note: This is a question from my colleague, but they cant post because of the changes to company emails (although they are using the same company domain). Is there someone we can contact to sort this out?