Hi,
could you provide me an example codes for SPI (serial peripheral communication), SPIM(serial peripheral communication master) and SPIS(serial peripheral communication slave) for nRF5340 SoC.
Thanks & Regards,
Srinivas.
Hi,
could you provide me an example codes for SPI (serial peripheral communication), SPIM(serial peripheral communication master) and SPIS(serial peripheral communication slave) for nRF5340 SoC.
Thanks & Regards,
Srinivas.
You get that error because you did not add the changes mentioned in the second thread I linked.
As per your mentioned , I have added changes . now it's compiled . i have a one doubt why we need to add separately manual isr setup function. is it implemented in the SPI driver?
No, the driver will only enable the interrupt, you need to connect the handler to the interrupt.
Note that there is also a built-in SPI driver in Zephyr that you can use, if you do not want to use the nrfx_spim/spis drivers directly.
No, the driver will only enable the interrupt, you need to connect the handler to the interrupt.
Note that there is also a built-in SPI driver in Zephyr that you can use, if you do not want to use the nrfx_spim/spis drivers directly.
Do you have any example codes with built-in SPI driver in Zephyr ? .
please let me know how can we do SPI configuration and pin settings.
See this post.
we have two ports for nRF5340 which port 0 and port 1.
In SPI master code , where port is defined in the code.
NRFX_PRS_ENABLED macro is disabled in nrfx_spim.c file.
I am getting below error, if I enable this macro using nrfx_config_nrf5340_application.h file.
undefined reference to `nrfx_prs_acquire'
May I know why it is disabled in nrf connect SDK and I didn't face this issue when Iam work with nRF5 SDK for nrf52832
Hi,
SRINI said:we have two ports for nRF5340 which port 0 and port 1.
In SPI master code , where port is defined in the code.
Do you mean GPIO port 0 and port 1?
Which SPI master code are you using now? The nrfx_spim example, or the one using the native Zephyr SPI API?
SRINI said:NRFX_PRS_ENABLED macro is disabled in nrfx_spim.c file.
I am getting below error, if I enable this macro using nrfx_config_nrf5340_application.h file.undefined reference to `nrfx_prs_acquire'
May I know why it is disabled in nrf connect SDK and I didn't face this issue when Iam work with nRF5 SDK for nrf52832
You can enable PRS in NCS by adding the Kconfig CONFIG_NRFX_PRS=y to your prj.conf file (or an overlay file).
Best regards,
Jørgen