Hi,
I have integrated SPIM interface using the default QSPI pins and have received 16MHz speed.
I would like to evaluate the high speed SPIM that runs at 32MHz for my application. Can you please provide a sample code for the same ?
regards,
Vinu
Hi,
I have integrated SPIM interface using the default QSPI pins and have received 16MHz speed.
I would like to evaluate the high speed SPIM that runs at 32MHz for my application. Can you please provide a sample code for the same ?
regards,
Vinu
H Vinu,
This is the SPIM sample available in NCS: https://github.com/too1/ncs-spi-master-slave-example/tree/master
You can set 32mbps in hardware while running at 128 MHZ.

Adding the following code in main() function can turn on the 128 MHz clock on CPU app
/* Use this to turn on 128 MHz clock for cpu_app */
nrfx_clock_divider_set(NRF_CLOCK_DOMAIN_HFCLK,
NRF_CLOCK_HFCLK_DIV_1);
Ok thanks. I will check it out. What is the default clock frequency of CPU app ?
Hi Vinu,
The default clock frequency is 64Mhz.
Regards,
Swathy
Thanks. Do we have to change the default SPI pins to dedicated high speed SPI pins ( P0.8, P0.9, P0.10) ?
regards,
Vinu
Hi Vinu,
Yes.. Dedicated pins are recommended to be used: https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html
Best Regards,
Swathy