This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF9160 SPI Clock Frequency Config

1. Using Zephyr, trying to config SPI_3 of nrf9160 more than 1MHz for flash interface.

2. Ending up in faults.

3. We need to configure SPI_3 as master with freq > 2MHz

4.  could you help us out (or) provide an alternate

5. Code snippet as below

""

#define EFLASH_SPI_FREQ 2000000 // 2MHz

eFlash_spi_cfg.operation = ( SPI_WORD_SET(8) | SPI_TRANSFER_MSB | SPI_OP_MODE_MASTER);// | SPI_MODE_CPOL | SPI_MODE_CPHA );
eFlash_spi_cfg.frequency = EFLASH_SPI_FREQ;
eFlash_spi_cfg.slave = 0;
eFlash_spi_cfg.cs = &eFlash_spi_css;

spi_transceive(eFlash_spi_dev, &eFlash_spi_cfg, &eFlash_tx, &eFlash_rx);

""

Advance Thanks

[email protected]

Parents Reply Children
No Data
Related