how to connnect external flash(w25qxx) to nrf52833dk board and validate that it the spi communication has been enabled

hi i'm new to developing nrf applications i have practised the sampled examples from https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/ but i'm unable to connect using the spi interface. I am currently using nrf connect sdk v2.2.0. It would be really helpful if you can help me establish spi communication with my external flash. 

Parents
  • Hello,

    I am not sure with the configuration you are following because I haven't worked with this external flash and I can't test this here. But have you configured your Chip select pin properly in the overlay file?

    Can you share the project? I will try to build it here. Please attach the Zip file using insert tab.

    Kind Regards,

    Abhijith

  • this is my overlay file it's building perfectly but i my board is not visible 
    / {
        aliases {
            spi-flash0 = &w25q32jv;
        };
    };
    
    &spi1 {
        
        compatible = "nordic,nrf-spim";
    	status = "okay";
    	
    	cs-gpios = 	< &gpio0 4 GPIO_ACTIVE_LOW>;
    	
    	w25q32jv:w25q32jv@0 {
    		compatible = "jedec,spi-nor";
    		status = "okay";
    		//label = "W25Q";
    		spi-max-frequency = <8000000>;
    		reg = <0>;
            jedec-id = [EF 40 16]; 
    		size = <4194304>;
    		/*sfdp-bfp = [
    			e5 20 fb ff  ff ff ff 3f  44 eb 08 6b  08 3b 04 bb
    			fe ff ff ff  ff ff 00 ff  ff ff 44 eb  0c 20 0f 52
    			10 d8 00 ff  d6 49 c5 00  82 df 04 e3  44 03 67 38
    			30 b0 30 b0  f7 bd d5 5c  4a 9e 29 ff  f0 50 f9 85
    		];*/
    	};
    };
Reply
  • this is my overlay file it's building perfectly but i my board is not visible 
    / {
        aliases {
            spi-flash0 = &w25q32jv;
        };
    };
    
    &spi1 {
        
        compatible = "nordic,nrf-spim";
    	status = "okay";
    	
    	cs-gpios = 	< &gpio0 4 GPIO_ACTIVE_LOW>;
    	
    	w25q32jv:w25q32jv@0 {
    		compatible = "jedec,spi-nor";
    		status = "okay";
    		//label = "W25Q";
    		spi-max-frequency = <8000000>;
    		reg = <0>;
            jedec-id = [EF 40 16]; 
    		size = <4194304>;
    		/*sfdp-bfp = [
    			e5 20 fb ff  ff ff ff 3f  44 eb 08 6b  08 3b 04 bb
    			fe ff ff ff  ff ff 00 ff  ff ff 44 eb  0c 20 0f 52
    			10 d8 00 ff  d6 49 c5 00  82 df 04 e3  44 03 67 38
    			30 b0 30 b0  f7 bd d5 5c  4a 9e 29 ff  f0 50 f9 85
    		];*/
    	};
    };
Children
No Data
Related