Qspi flash sample project error

Hello, I am trying to use the spi_flash sample project with a laird bl654 dvk. When I run the project however, dev->state->init_res = 19 and will not run for me. It recognizes the device and if I manually set the error code to 0 the project runs correctly. Any idea why this is occurring. The output is 

JEDEC QSPI-NOR SPI flash testing
==========================
SPI flash driver MX25R64 was not found!

This is a onboard flash that supposedly should work from this post https://devzone.nordicsemi.com/f/nordic-q-a/64769/qspi-flash-sample-in-zephyr. I am using sdk 1.9.1.

Parents Reply
  • Hi,

     

    This is the physical GPIO mapping on the nRF52840-DK:

     

    Which corresponds to this in DTS:

    &qspi {
    	status = "okay";
    	sck-pin = <19>;
    	io-pins = <20>, <21>, <22>, <23>;
    	csn-pins = <17>;
    	...
    };

     

    Are you certain that your DTS setup is correct as per the bl654 schematic?

    sck-pin should be 19, csn should be 17, and io-pins should be 20-23, atleast how I read their schematic.

     

    Kind regards,

    Håkon

Children
Related