Hello !
Do you have freertos enabled example for SPI slave ?
Looks like fsl_spi_freertos is targeted for SPI master only.
Regards,
Eugene
Hi Eugene,
The fsl_spi_freertos just have the SPI_master functions, but there is an example in the SDK call freertos_spi, where you can see how configure for SPI_Slave. The configuration and initialization is in the slave_task function.
Regards,
Alexis Andalon
Hi Alexis !
This example is not look as completed and dosn't work.
Interrupts for slave and nvic interrupts are not enabled.
or it should work ?
Regards,
Eugene
Hello Eugene,
I have test this example and didn't have any issue, please check in the doc folder the readme.txt file to know how to connect the board. Also, if you check the function SPI_SlaveTransferCreateHandle you will see that inside it they enable the IRQ to call the SPI_SlaveUserCallback.
Let me know if this helps you.
Best Regards,
Alexis Andalon
Hi Alexis !
Thank you !
I also can see that SDK driver is not so adopted for be used with UserPrivileges.
NVIC calls should be done in Privileged only mode bur typical FreeRTOS task decomposition is expect that all tasks running with User privileges. In theory drivers should be split to nonprivileged and privileged part for have decent secure design.
Now we have extra gated from TZ and basically all SDK drivers need some refactoring and splitting.
Or what was in mind if drivers are published like now ?
Regards,
Eugene