Interfacing serial flash W25Q32 with nRF52833dk

Hi,

I am trying to develop an nCS application with serial flash interface, I am using an nRF52833dk & I observed that under the nCS path "v1.8.0\zephyr\drivers\flash"
There is zephyr provided drivers for serial flash, namely "spi_nor".

Though i found a lack of samples or examples utilizing this spi_nor driver, hence  I am having trouble getting started.

Request you kindly to point me or work out and share a project for serial flash interface, I need to refer the prj.conf, .overlay and the main.c to understand the serial flash operations.

Thanking you in advance,

Parents Reply
  • Hello ,

    Many Thanks,

    This is what I needed:

    &spi3 {
    	compatible = "nordic,nrf-spim";
    	status = "okay";
    	sck-pin = < 11 >;
    	mosi-pin = < 9 >;
    	miso-pin = < 28 >;
    	cs-gpios = < &gpio0 7 GPIO_ACTIVE_LOW >;
    	w25q32jv: w25q32jv@0 {
    		compatible = "jedec,spi-nor";
    		label = "W25Q32JV";
    		reg = < 0 >;
    		spi-max-frequency = < 40000000 >;
    		wp-gpios = < &gpio0 8 GPIO_ACTIVE_LOW >;
    		hold-gpios = < &gpio0 10 GPIO_ACTIVE_LOW >;
    		size = < 0x2000000 >;
    		has-dpd;
    		t-enter-dpd = < 3000 >;
    		t-exit-dpd = < 30000 >;
    		jedec-id = [ ef 40 16  ];
    	};

    1. Can you kindly point me on how the dts declaration will change, if I am using "IS25LQ040B"..?

    2. Please help me with the main.c code as well for serial flash operations, I couldn't find it in 

    Can you take a look at this thread?

    Thanks,

    Ubaid

Children
Related