nrf_drv_qspi_write taking around 500 micro sec ( long time to write ) . How to optimize nrf_drv_qspi_write time.?
nrf_drv_qspi_write taking around 500 micro sec ( long time to write ) . How to optimize nrf_drv_qspi_write time.?
Hi,
How much data are you writing in nrf_drv_qspi_write()? When you called nrf_drv_qspi_init(&config, ...), what was the parameter for config.phy_if.sck_freq?
-Amanda H.
Hi,
We are using 32 Mhz clock still getting 600 micro sec per transaction. Isnt it huge?
Hi,
Not sure about your calculations, but it is 32Mb/s * 4 = 128Mbps, so 512 bytes should take 4µs. However, that means that 600µs is even longer.
May I know how you measure the time, and what other things your application is doing? Are you using BLE? If so the softdevice may be busy using the radio. Do you get 600µs every time or sometimes only? If only sometimes, it may suggest that the softdevice keeps the CPU busy. Do you have an event handler or a blocking call to the tx function?
-Amanda H.
Yes 32Mbits / sec * 4 = 128 MBits/sec = 128/8 Mbytes/sec = 16 Mbytes / sec. Ideally 512 bytes of transfer should take 32 micro sec. I am seeing 600 micro sec consistently. Yes we are using BLE. We have an event handler in nand_flash_init function? Which event handler are you talking about?
Are drivers API's tested with 32Mhz clock frequency ?
Hi,
I got the following info. form the internal:
From the hardware side, I can say that that there is some overhead for sending the WriteEnable command, checking the status register, writing the address, and then mainly the Page Program Cycle Time from the Flash memory (which can be found in the Flash memory datasheet).
ARPITHA CHANDRASHEKAR said:Which event handler are you talking about?
An event handler or a blocking call to the tx function
-Amanda H.
ble_nus_data_send is it blocking call? You mean to say Internally Flash controller there is overhead in issuing write enable command mentioned in data sheet?
ble_nus_data_send is it blocking call? You mean to say Internally Flash controller there is overhead in issuing write enable command mentioned in data sheet?