I have integrated e-paper display nrf9160 dk but when test on the feather board v1 it doesn’t work. I want to check if the pin configuration is correct.

#define SCK_pin 19
#define MISO_pin 22
#define MOSI_pin 21
#define DC_pin 0 // digital pin pwm pin numbered 4
#define RESET_pin 2 // digital pin pwm pin numbered 6
#define BUSY_pin 29 // digital pin pwm pin numbered 2
#define CSS_pin 4 // digital pin pwm pin numbered 8

[dts](https://circuitdojo_feather_nrf9160_common.dts) is this a correct pin layout

Do I need to enable any configuration from the pro.config or kconfig apart of &gpio0

    AMG you will need to define an .overlay file that has the e-paper display within it. For instance it should look similar to what the external flash definition looks like for the nRF9160 Feather:

    	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  ];
    	};
    };

    You’ll have to obviously match your .overlay to match the DTS binding. Sounds like you may already have a working configuration so I would steal from that overlay if there is one. If your project doesn’t have boards/circuitojo_feather_nrf9160ns.overlay you may need to make one and make your edits there. You’ll have to rebuild with the -p flag when you add a new overlay.

    Also it’s important to note that P0.30/D3 P0.29/D2 are connected to the accelerometer in newer versions. The accelerometer has push/pull outputs so that may cause issues if you want to use them elsewhere (unless you cut the jumpers)

    P0.13/A0 is also used for switching the power supply mode. Again you can cut the jumper here if you don’t need that functionality.

    (Side note: P0.XX refers to the pin number on the nRF9160. The /XX refers to the labeled pins on the board)

    I copied the overlay file which is working on the nrf9160DK and adjusted it. Not sure why it is not working, will keep you updated with the progress.

    Terms and Conditions | Privacy Policy