Hi,
I was wondering if there was example code for SPI (serial peripheral communication), SPIM(serial peripheral communication master) and SPIS(serial peripheral communication slave) for nRF5340 SoC.
Thanks & Regards,
Chris
Hi,
I was wondering if there was example code for SPI (serial peripheral communication), SPIM(serial peripheral communication master) and SPIS(serial peripheral communication slave) for nRF5340 SoC.
Thanks & Regards,
Chris
Hi Chris,
There is an unofficial sample, SPI master and slave async example, made by one of my colleagues.
There are also two more SPI samples:
https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_spim
https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_spim_spis
Best regards,
Håkon
Thank you this helped alot! I am having one issue where it seems my write command isnt going to register correctly. I am trying to write hA300 to my device (AD7380) and doesnt seem to be storing into the device properly. The waveform looks good to me wondering if is related to the drivers.
Thanks,
Chris
Chris Westerhoff said:Thank you this helped alot!
Great to hear!
Chris Westerhoff said:I am trying to write hA300 to my device (AD7380) and doesnt seem to be storing into the device properly.
How do you tell it does not work properly? Sorry, I do not fully understand. Perhaps you could add a few words? I will in any case take another look tomorrow morning.
I figured out what was wrong the clock phase was set incorrectly on my end.
Thank you for your help!
-Chris
Thank you for the update. Great to hear that you figured it out!