LPC55S69 : freertos_slave_spi example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S69 : freertos_slave_spi example

816 Views
EugeneHiihtaja
Senior Contributor I

Hello !

Do you have freertos enabled example for SPI slave ?

Looks like fsl_spi_freertos is targeted for SPI master only.

Regards,

Eugene

Labels (1)
0 Kudos
4 Replies

659 Views
Alexis_A
NXP TechSupport
NXP TechSupport

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

0 Kudos

659 Views
EugeneHiihtaja
Senior Contributor I

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

0 Kudos

659 Views
Alexis_A
NXP TechSupport
NXP TechSupport

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

0 Kudos

659 Views
EugeneHiihtaja
Senior Contributor I

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

0 Kudos