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.
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
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
Hi,
Thanks for the response.
My problem is resolved. I am confused in pin connection. After change the pin connections it's working fine.
Regards,
Srinivas Rao