LPC55S69 : freertos_slave_spi example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S69 : freertos_slave_spi example

1,604件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,447件の閲覧回数
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 件の賞賛
返信

1,447件の閲覧回数
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 件の賞賛
返信

1,447件の閲覧回数
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 件の賞賛
返信

1,447件の閲覧回数
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 件の賞賛
返信