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

QSPI does not work in quad mode on NRF52840

Hello,

I am trying to use the QSPI example from NRF SDK 17.0.2. I am using a NRF52840 dongle with W25Q32 SPI flash.
The example works with Fast Read and PP but when I try to use in quad mode (Quad read and Quad Write) it does not work.

I can see the data being transferred but i cannot seem to figure out whats the issue.

I have enabled the quad mode of W25Q32 as well by sending 0x31 0x02.

The image below shows the reset enable, reset and QSPI enable transfers. The decoding at the bottom may not be correct.

Parents
  • Hi

    Have you modified the parameters in nrf_serial_params.c in the SDK? When using an external flash different to the one on the MX25R6435F which is on the nRF52840 DK by default, you will likely also have to edit the parameters of your nrf_serial_params.c file to make it fit the parameters of the one W25Q32. Please make sure that the read ID, capabilites, size, and erase/program sizes are correct according to the external flash chip's datasheet.

    Best regards,

    Simon

  • Hello Simon,

    I changed the params in nrf_serial_flash_params.c to

    .read_id = { 0xEF, 0x40, 0x16 },
    .capabilities = 0x00,
    .size = 32 * 1024 * 1024,
    .erase_size = 4 * 1024,
    .program_size = 256,
    

    but still it does not work.

    I am using the examples/peripheral/qspi

Reply Children
No Data
Related